Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001055/0.001055, allocations: 95 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 202.6 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.7 MB / 247.4 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002624, allocations: 8 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.08766, allocations: 51.52 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002256/0.08995, allocations: 1.607 MB / 361.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.0919, allocations: 1.169 MB / 362.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.09206, allocations: 0 / 362.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005544/0.09263, allocations: 135.6 kB / 362.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003874/0.09303, allocations: 143.6 kB / 363 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.09356, allocations: 151 kB / 363.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002759/0.09384, allocations: 191.4 kB / 363.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.09397, allocations: 33.52 kB / 363.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.0941, allocations: 63.72 kB / 363.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.09423, allocations: 67.62 kB / 363.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.09426, allocations: 8 kB / 363.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.09441, allocations: 43.97 kB / 363.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.152e-05/0.09449, allocations: 39.83 kB / 363.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.831e-05/0.09458, allocations: 93.12 kB / 363.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.09481, allocations: 155.9 kB / 363.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.09482, allocations: 0 / 363.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.09483, allocations: 4 kB / 363.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.09484, allocations: 0 / 363.8 MB, free: 9.406 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006991/0.09555, allocations: 492.3 kB / 364.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.09559, allocations: 12.02 kB / 364.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.466e-05/0.09567, allocations: 20.66 kB / 364.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.09604, allocations: 270.8 kB / 364.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.09607, allocations: 4.375 kB / 364.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.09609, allocations: 8.125 kB / 364.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.09641, allocations: 154.7 kB / 364.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.09643, allocations: 0 / 364.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.09645, allocations: 4 kB / 364.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.09646, allocations: 3.938 kB / 364.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.09657, allocations: 35.92 kB / 364.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004822/0.09706, allocations: 358.4 kB / 365.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.09729, allocations: 107.9 kB / 365.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.778e-05/0.09738, allocations: 50.5 kB / 365.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.09741, allocations: 0 / 365.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.09757, allocations: 75.38 kB / 365.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.09758, allocations: 0 / 365.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003629/0.09795, allocations: 141.6 kB / 365.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/0.09804, allocations: 136.5 kB / 365.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.09833, allocations: 272.9 kB / 365.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.09835, allocations: 29.7 kB / 365.9 MB, free: 7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.346e-05/0.09844, allocations: 116.2 kB / 366 MB, free: 6.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.603e-05/0.09847, allocations: 23.73 kB / 366.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.09851, allocations: 17.72 kB / 366.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.09863, allocations: 338.8 kB / 366.4 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.981e-05/0.0987, allocations: 27.92 kB / 366.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.799e-05/0.0988, allocations: 62 kB / 366.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.09893, allocations: 80.25 kB / 366.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.09894, allocations: 0 / 366.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002073/0.09915, allocations: 109.6 kB / 366.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.09918, allocations: 8 kB / 366.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.09919, allocations: 8.047 kB / 366.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.09921, allocations: 4 kB / 366.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.706e-05/0.09929, allocations: 20.06 kB / 366.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.0993, allocations: 0 / 366.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.302e-05/0.09938, allocations: 11.94 kB / 366.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.0994, allocations: 7.984 kB / 366.7 MB, free: 6.121 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001238/0.09953, allocations: 145.8 kB / 366.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.937e-05/0.09962, allocations: 65.36 kB / 366.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.783e-05/0.09967, allocations: 29.64 kB / 367 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.09968, allocations: 4.062 kB / 367 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.09969, allocations: 0 / 367 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.0997, allocations: 7.938 kB / 367 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.09989, allocations: 225.5 kB / 367.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.0999, allocations: 0 / 367.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.635e-05/0.09994, allocations: 4 kB / 367.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.09995, allocations: 4 kB / 367.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.09997, allocations: 4 kB / 367.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.09998, allocations: 0 / 367.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.09999, allocations: 7.938 kB / 367.2 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002349/0.1002, allocations: 162.4 kB / 367.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.028e-05/0.1003, allocations: 108.9 kB / 367.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.1004, allocations: 4 kB / 367.5 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.395e-05/0.1004, allocations: 4 kB / 367.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.1005, allocations: 11.97 kB / 367.5 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.1005, allocations: 7.938 kB / 367.5 MB, free: 5.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001939/0.1007, allocations: 204.5 kB / 367.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1007, allocations: 0 / 367.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.101, allocations: 28 kB / 367.7 MB, free: 5.004 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009591/0.1019, allocations: 420.9 kB / 368.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001927/0.1021, allocations: 63.92 kB / 368.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1021, allocations: 4.25 kB / 368.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.859e-05/0.1022, allocations: 23.92 kB / 368.2 MB, free: 4.633 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004206/0.1027, allocations: 65.5 kB / 368.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005762/0.1032, allocations: 393.7 kB / 368.7 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.1036, allocations: 0.7283 MB / 369.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.353e-05/0.1036, allocations: 23.42 kB / 369.4 MB, free: 3.367 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1036, allocations: 0 / 369.4 MB, free: 3.367 MB / 302.1 MB Notification: Performance of Templates: time 0.004889/0.1085, allocations: 2.619 MB / 372.1 MB, free: 0.7617 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches