Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001454/0.001454, allocations: 156.5 kB / 7.632 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.582/1.582, allocations: 170.6 MB / 178.7 MB, free: 7.043 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001502/0.001502, allocations: 101.1 kB / 218 MB, free: 15.35 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.21/0.21, allocations: 37.98 MB / 295.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.46e-05/1.464e-05, allocations: 0 / 350 MB, free: 32.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.3327, allocations: 48.69 MB / 398.7 MB, free: 6.055 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.4499, allocations: 77.81 MB / 476.5 MB, free: 5.324 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.4502, allocations: 59.98 kB / 476.6 MB, free: 5.266 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01855/0.4687, allocations: 5.875 MB / 482.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4688, allocations: 0 / 482.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.261e-05/0.4688, allocations: 8 kB / 482.5 MB, free: 15.39 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001702/0.4705, allocations: 0.7463 MB / 483.2 MB, free: 14.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.4706, allocations: 12.03 kB / 483.2 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.4708, allocations: 43.53 kB / 483.3 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.4711, allocations: 206.5 kB / 483.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-05/0.4711, allocations: 16 kB / 483.5 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-05/0.4712, allocations: 28 kB / 483.5 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005458/0.4718, allocations: 229.5 kB / 483.7 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005736/0.4724, allocations: 286.1 kB / 484 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.4724, allocations: 0 / 484 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.134e-05/0.4724, allocations: 7.984 kB / 484 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.4725, allocations: 11.98 kB / 484 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.4747, allocations: 0.87 MB / 484.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009549/0.4757, allocations: 391.2 kB / 485.3 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.476, allocations: 145.2 kB / 485.4 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.476, allocations: 8.328 kB / 485.4 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004577/0.4765, allocations: 289.6 kB / 485.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 2.855e-06/0.4765, allocations: 0 / 485.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.0007458/0.4772, allocations: 384.6 kB / 486.1 MB, free: 11.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.4774, allocations: 166.7 kB / 486.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.4776, allocations: 190 kB / 486.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.984e-05/0.4777, allocations: 41.69 kB / 486.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.4778, allocations: 176.8 kB / 486.7 MB, free: 10.94 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.478, allocations: 106.7 kB / 486.8 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.215e-05/0.478, allocations: 0 / 486.8 MB, free: 10.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4781, allocations: 342.8 kB / 487.1 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/0.4784, allocations: 129.1 kB / 487.2 MB, free: 10.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.4786, allocations: 127.9 kB / 487.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.4789, allocations: 102.1 kB / 487.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.4789, allocations: 0 / 487.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009496/0.4799, allocations: 427.5 kB / 487.9 MB, free: 9.715 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.293e-05/0.48, allocations: 114.8 kB / 488 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.48, allocations: 3.984 kB / 488 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001615/0.4802, allocations: 40.78 kB / 488 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.4804, allocations: 39.91 kB / 488.1 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.4819, allocations: 1.392 MB / 489.4 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.4822, allocations: 59.95 kB / 489.5 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.4823, allocations: 16 kB / 489.5 MB, free: 7.91 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002537/0.4825, allocations: 203.3 kB / 489.7 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-05/0.4826, allocations: 31.66 kB / 489.7 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.278e-05/0.4827, allocations: 43.36 kB / 489.8 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.4827, allocations: 4 kB / 489.8 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4827, allocations: 0 / 489.8 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.852e-06/0.4827, allocations: 3.984 kB / 489.8 MB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.4838, allocations: 0.8034 MB / 490.6 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4838, allocations: 0 / 490.6 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.484, allocations: 39.91 kB / 490.6 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.484, allocations: 0 / 490.6 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.484, allocations: 15.94 kB / 490.7 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4841, allocations: 0 / 490.7 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.4841, allocations: 0 / 490.7 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006905/0.4848, allocations: 0.492 MB / 491.1 MB, free: 6.199 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.4849, allocations: 136.7 kB / 491.3 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.057e-05/0.485, allocations: 16 kB / 491.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005269/0.4855, allocations: 67.89 kB / 491.4 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.4858, allocations: 67.67 kB / 491.4 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.193e-05/0.4859, allocations: 19.98 kB / 491.4 MB, free: 5.879 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000174/0.486, allocations: 131.7 kB / 491.6 MB, free: 5.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4861, allocations: 0 / 491.6 MB, free: 5.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008046/0.4869, allocations: 111.8 kB / 491.7 MB, free: 5.641 MB / 346.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 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,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: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.0004032/0.4873, allocations: 166.1 kB / 491.8 MB, free: 5.465 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008976/0.4882, allocations: 0.6607 MB / 492.5 MB, free: 4.746 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4882, allocations: 0 / 492.5 MB, free: 4.746 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003887/0.4886, allocations: 327.1 kB / 492.8 MB, free: 4.402 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.4889, allocations: 12 kB / 492.8 MB, free: 4.391 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00094/0.4898, allocations: 455.6 kB / 493.3 MB, free: 3.922 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.4903, allocations: 0.7959 MB / 494.1 MB, free: 3.102 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.4904, allocations: 35.27 kB / 494.1 MB, free: 3.066 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.4905, allocations: 27.42 kB / 494.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4905, allocations: 0 / 494.1 MB, free: 3.039 MB / 346.7 MB Notification: Performance of Templates: time 0.009243/0.4998, allocations: 3.839 MB / 498 MB, free: 15.21 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe 2>&1)