Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Logical.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 196.8 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009035/0.0009037, allocations: 104.3 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.395/0.395, allocations: 44.82 MB / 394.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003224, allocations: 8 kB / 467.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3944/0.3947, allocations: 62.96 MB / 0.5184 GB, free: 37.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.5307, allocations: 95.76 MB / 0.6119 GB, free: 9.527 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.531, allocations: 75.89 kB / 0.612 GB, free: 9.457 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03951/0.5705, allocations: 14.06 MB / 0.6257 GB, free: 11.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5706, allocations: 4 kB / 0.6257 GB, free: 11.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.071e-05/0.5706, allocations: 12 kB / 0.6257 GB, free: 11.35 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002073/0.5727, allocations: 0.9467 MB / 0.6267 GB, free: 10.33 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.5728, allocations: 12.03 kB / 0.6267 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003449/0.5731, allocations: 80.17 kB / 0.6268 GB, free: 10.24 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008674/0.574, allocations: 450.7 kB / 0.6272 GB, free: 9.762 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.961e-05/0.5741, allocations: 37.38 kB / 0.6272 GB, free: 9.727 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.869e-05/0.5742, allocations: 44.38 kB / 0.6273 GB, free: 9.684 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009282/0.5751, allocations: 468.1 kB / 0.6277 GB, free: 9.207 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.5751, allocations: 4 kB / 0.6277 GB, free: 9.203 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.5752, allocations: 20 kB / 0.6277 GB, free: 9.184 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.5752, allocations: 8 kB / 0.6277 GB, free: 9.176 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008343/0.576, allocations: 347.7 kB / 0.6281 GB, free: 8.836 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/0.5783, allocations: 1.13 MB / 0.6292 GB, free: 7.656 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.5795, allocations: 0.5068 MB / 0.6297 GB, free: 7.145 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004765/0.58, allocations: 198.1 kB / 0.6299 GB, free: 6.949 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.138e-05/0.5801, allocations: 8.422 kB / 0.6299 GB, free: 6.938 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006184/0.5807, allocations: 293.3 kB / 0.6301 GB, free: 6.637 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 4.368e-06/0.5807, allocations: 4 kB / 0.6302 GB, free: 6.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001538/0.5823, allocations: 0.6506 MB / 0.6308 GB, free: 5.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.853e-05/0.5824, allocations: 140.9 kB / 0.6309 GB, free: 5.812 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007431/0.5831, allocations: 0.5251 MB / 0.6314 GB, free: 5.281 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.951e-05/0.5832, allocations: 45.7 kB / 0.6315 GB, free: 5.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.5834, allocations: 253.3 kB / 0.6317 GB, free: 4.977 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.5835, allocations: 126.5 kB / 0.6318 GB, free: 4.852 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-05/0.5836, allocations: 8 kB / 0.6318 GB, free: 4.844 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.5838, allocations: 370.8 kB / 0.6322 GB, free: 4.473 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004168/0.5842, allocations: 169 kB / 0.6324 GB, free: 4.309 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004799/0.5847, allocations: 276.9 kB / 0.6326 GB, free: 4.016 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007014/0.5854, allocations: 329.2 kB / 0.6329 GB, free: 3.68 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.5854, allocations: 0 / 0.6329 GB, free: 3.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001026/0.5865, allocations: 498.4 kB / 0.6334 GB, free: 3.191 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.5865, allocations: 8 kB / 0.6334 GB, free: 3.184 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5865, allocations: 7.922 kB / 0.6334 GB, free: 3.176 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.5865, allocations: 7.938 kB / 0.6334 GB, free: 3.168 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.5868, allocations: 67.83 kB / 0.6335 GB, free: 3.102 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.5868, allocations: 8 kB / 0.6335 GB, free: 3.094 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003936/0.5872, allocations: 83.78 kB / 0.6336 GB, free: 3.012 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.5873, allocations: 16 kB / 0.6336 GB, free: 2.996 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.u2,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003245/0.5876, allocations: 218.9 kB / 0.6338 GB, free: 2.773 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.5877, allocations: 51.34 kB / 0.6339 GB, free: 2.723 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.5889, allocations: 0.525 MB / 0.6344 GB, free: 2.188 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.5889, allocations: 19.98 kB / 0.6344 GB, free: 2.168 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.5889, allocations: 0 / 0.6344 GB, free: 2.168 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.5889, allocations: 0 / 0.6344 GB, free: 2.168 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/0.5909, allocations: 1.154 MB / 0.6355 GB, free: 0.957 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.5909, allocations: 4 kB / 0.6355 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.5911, allocations: 43.84 kB / 0.6356 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.5911, allocations: 4 kB / 0.6356 GB, free: 0.9062 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.5912, allocations: 15.98 kB / 0.6356 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.5912, allocations: 4 kB / 0.6356 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5912, allocations: 0 / 0.6356 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.5923, allocations: 0.5892 MB / 0.6362 GB, free: 292 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.5924, allocations: 148.4 kB / 0.6363 GB, free: 124 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.102e-05/0.5925, allocations: 16 kB / 0.6363 GB, free: 108 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.5929, allocations: 71.94 kB / 0.6364 GB, free: 36 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/0.5931, allocations: 72.39 kB / 0.6365 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.5931, allocations: 23.98 kB / 0.6365 GB, free: 15.93 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004726/0.5936, allocations: 363.1 kB / 0.6368 GB, free: 15.58 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5936, allocations: 0 / 0.6368 GB, free: 15.58 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0005692/0.5942, allocations: 139.8 kB / 0.637 GB, free: 15.44 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 (and1.u2,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,change1.u,fallingEdge.not_u,edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001108/0.5953, allocations: 463 kB / 0.6374 GB, free: 15.13 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.5964, allocations: 473.7 kB / 0.6379 GB, free: 14.66 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5965, allocations: 3.938 kB / 0.6379 GB, free: 14.66 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005113/0.597, allocations: 246.3 kB / 0.6381 GB, free: 14.42 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006065/0.5976, allocations: 90.86 kB / 0.6382 GB, free: 14.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.5994, allocations: 1.056 MB / 0.6392 GB, free: 13.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004705/0.5999, allocations: 0.8724 MB / 0.6401 GB, free: 12.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002921/0.6002, allocations: 75.41 kB / 0.6401 GB, free: 12.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.6003, allocations: 47.42 kB / 0.6402 GB, free: 12.22 MB / 458.7 MB Notification: Performance of SimCode: time 6.41e-07/0.6003, allocations: 0 / 0.6402 GB, free: 12.22 MB / 458.7 MB Notification: Performance of Templates: time 0.01301/0.6134, allocations: 6.483 MB / 0.6465 GB, free: 5.77 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Logical/Logical.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches