Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000955/0.000955, allocations: 183 kB / 18.09 MB, free: 3.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 223.3 MB / 242.1 MB, free: 10 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007607/0.0007609, allocations: 89.48 kB / 293.3 MB, free: 10.58 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2591/0.2591, allocations: 44.14 MB / 388.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.000339, allocations: 8 kB / 461.1 MB, free: 1.352 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2495, allocations: 61.87 MB / 0.5107 GB, free: 37.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09704/0.3466, allocations: 94.43 MB / 0.6029 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000178/0.3468, allocations: 75.94 kB / 0.603 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03367/0.3805, allocations: 13.09 MB / 0.6158 GB, free: 3.469 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3805, allocations: 0 / 0.6158 GB, free: 3.469 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.074e-05/0.3805, allocations: 16 kB / 0.6158 GB, free: 3.453 MB / 426.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.001649/0.3822, allocations: 0.9195 MB / 0.6167 GB, free: 2.465 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.3822, allocations: 8.031 kB / 0.6167 GB, free: 2.457 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.3824, allocations: 64.19 kB / 0.6168 GB, free: 2.395 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000692/0.3831, allocations: 434.8 kB / 0.6172 GB, free: 1.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.746e-05/0.3832, allocations: 37.38 kB / 0.6172 GB, free: 1.895 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.332e-05/0.3833, allocations: 44.31 kB / 0.6173 GB, free: 1.852 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008284/0.3841, allocations: 472.1 kB / 0.6177 GB, free: 1.371 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.3841, allocations: 0 / 0.6177 GB, free: 1.371 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.357e-05/0.3842, allocations: 23.98 kB / 0.6177 GB, free: 1.348 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.3842, allocations: 12 kB / 0.6177 GB, free: 1.336 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007341/0.3849, allocations: 339.8 kB / 0.6181 GB, free: 1.004 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.3869, allocations: 1.13 MB / 0.6192 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.3881, allocations: 0.5027 MB / 0.6197 GB, free: 15.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003982/0.3885, allocations: 194.1 kB / 0.6198 GB, free: 15.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.3885, allocations: 4.438 kB / 0.6198 GB, free: 15.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005866/0.3891, allocations: 301.2 kB / 0.6201 GB, free: 14.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 2.405e-06/0.3891, allocations: 4 kB / 0.6201 GB, free: 14.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001435/0.3906, allocations: 0.6507 MB / 0.6208 GB, free: 14.14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.041e-05/0.3907, allocations: 140.9 kB / 0.6209 GB, free: 13.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006476/0.3913, allocations: 0.5094 MB / 0.6214 GB, free: 13.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.703e-05/0.3914, allocations: 49.7 kB / 0.6215 GB, free: 13.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.3916, allocations: 245.3 kB / 0.6217 GB, free: 13.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.3917, allocations: 118.5 kB / 0.6218 GB, free: 13.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.3918, allocations: 12 kB / 0.6218 GB, free: 13.03 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3919, allocations: 366.8 kB / 0.6222 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004113/0.3923, allocations: 177 kB / 0.6223 GB, free: 12.49 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000466/0.3928, allocations: 264.9 kB / 0.6226 GB, free: 12.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006897/0.3935, allocations: 331.5 kB / 0.6229 GB, free: 11.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3935, allocations: 0 / 0.6229 GB, free: 11.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009796/0.3945, allocations: 0.4906 MB / 0.6234 GB, free: 11.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.3945, allocations: 7.938 kB / 0.6234 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3946, allocations: 3.938 kB / 0.6234 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.3946, allocations: 4 kB / 0.6234 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002921/0.3949, allocations: 71.83 kB / 0.6235 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.3949, allocations: 0 / 0.6235 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.3953, allocations: 87.78 kB / 0.6235 GB, free: 11.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.3953, allocations: 20 kB / 0.6236 GB, free: 11.18 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.0002658/0.3956, allocations: 218.9 kB / 0.6238 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.645e-05/0.3957, allocations: 51.34 kB / 0.6238 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.3967, allocations: 0.5249 MB / 0.6243 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3968, allocations: 8 kB / 0.6243 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3968, allocations: 0 / 0.6243 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3968, allocations: 3.984 kB / 0.6243 GB, free: 10.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.3986, allocations: 1.15 MB / 0.6255 GB, free: 9.164 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3986, allocations: 0 / 0.6255 GB, free: 9.164 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.3988, allocations: 43.91 kB / 0.6255 GB, free: 9.121 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.3988, allocations: 4 kB / 0.6255 GB, free: 9.117 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.3988, allocations: 11.98 kB / 0.6255 GB, free: 9.105 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3988, allocations: 4 kB / 0.6255 GB, free: 9.102 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3988, allocations: 4 kB / 0.6255 GB, free: 9.098 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009848/0.3998, allocations: 0.593 MB / 0.6261 GB, free: 8.484 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.4, allocations: 140.5 kB / 0.6262 GB, free: 8.328 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.767e-05/0.4001, allocations: 20.05 kB / 0.6263 GB, free: 8.309 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003539/0.4004, allocations: 75.88 kB / 0.6263 GB, free: 8.234 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.4006, allocations: 72.31 kB / 0.6264 GB, free: 8.164 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/0.4006, allocations: 19.98 kB / 0.6264 GB, free: 8.145 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003957/0.401, allocations: 359.1 kB / 0.6268 GB, free: 7.793 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.401, allocations: 0 / 0.6268 GB, free: 7.793 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000425/0.4015, allocations: 123.8 kB / 0.6269 GB, free: 7.672 MB / 442.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.0009102/0.4024, allocations: 475.7 kB / 0.6273 GB, free: 7.367 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009762/0.4034, allocations: 469.6 kB / 0.6278 GB, free: 6.914 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4034, allocations: 0 / 0.6278 GB, free: 6.914 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004765/0.4039, allocations: 250.5 kB / 0.628 GB, free: 6.672 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/0.4044, allocations: 86.53 kB / 0.6281 GB, free: 6.586 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.4059, allocations: 1.037 MB / 0.6291 GB, free: 5.523 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.4063, allocations: 0.8607 MB / 0.63 GB, free: 4.633 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002433/0.4066, allocations: 71.42 kB / 0.63 GB, free: 4.562 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.4067, allocations: 55.41 kB / 0.6301 GB, free: 4.508 MB / 442.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4067, allocations: 0 / 0.6301 GB, free: 4.508 MB / 442.7 MB Notification: Performance of Templates: time 0.01119/0.4179, allocations: 6.431 MB / 0.6364 GB, free: 14.12 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches