Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001047/0.001047, allocations: 181.1 kB / 12.74 MB, free: 2.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.47/1.47, allocations: 194.3 MB / 207.5 MB, free: 3.438 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001604/0.001604, allocations: 97.89 kB / 252.6 MB, free: 4.816 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2077/0.2077, allocations: 39.94 MB / 337.5 MB, free: 476 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.423e-05/3.425e-05, allocations: 4 kB / 400.3 MB, free: 69.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08908/0.08913, allocations: 54.86 MB / 455.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3544/0.4436, allocations: 84.86 MB / 0.5273 GB, free: 6.766 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00017/0.4438, allocations: 62.16 kB / 0.5274 GB, free: 6.734 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01507/0.4589, allocations: 5.937 MB / 0.5332 GB, free: 1.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4589, allocations: 0 / 0.5332 GB, free: 1.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.459, allocations: 4 kB / 0.5332 GB, free: 1.516 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.001131/0.4601, allocations: 0.7546 MB / 0.5339 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.4602, allocations: 11.97 kB / 0.5339 GB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.58e-05/0.4603, allocations: 47.48 kB / 0.534 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.4604, allocations: 203.6 kB / 0.5342 GB, free: 428 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.687e-05/0.4605, allocations: 33.91 kB / 0.5342 GB, free: 404 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.771e-05/0.4606, allocations: 42.75 kB / 0.5343 GB, free: 376 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.4612, allocations: 383.1 kB / 0.5346 GB, free: 88 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.4612, allocations: 0 / 0.5346 GB, free: 88 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.4613, allocations: 14.88 kB / 0.5346 GB, free: 84 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.4613, allocations: 15.95 kB / 0.5347 GB, free: 68 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004619/0.4618, allocations: 252.3 kB / 0.5349 GB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.4637, allocations: 0.9514 MB / 0.5358 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009034/0.4646, allocations: 412.1 kB / 0.5362 GB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.4649, allocations: 156.6 kB / 0.5364 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.4649, allocations: 4.328 kB / 0.5364 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004798/0.4654, allocations: 311.6 kB / 0.5367 GB, free: 14.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.114e-06/0.4654, allocations: 0 / 0.5367 GB, free: 14.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.0007847/0.4662, allocations: 458.6 kB / 0.5371 GB, free: 14.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.4663, allocations: 200 kB / 0.5373 GB, free: 13.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.4666, allocations: 203.7 kB / 0.5375 GB, free: 13.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.421e-05/0.4667, allocations: 44.64 kB / 0.5375 GB, free: 13.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.4668, allocations: 181.7 kB / 0.5377 GB, free: 13.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.467, allocations: 109 kB / 0.5378 GB, free: 13.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.436e-05/0.467, allocations: 7.125 kB / 0.5378 GB, free: 13.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.4672, allocations: 345.2 kB / 0.5381 GB, free: 13.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.4675, allocations: 136 kB / 0.5383 GB, free: 12.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.4678, allocations: 188 kB / 0.5385 GB, free: 12.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.468, allocations: 220.8 kB / 0.5387 GB, free: 12.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4681, allocations: 0 / 0.5387 GB, free: 12.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008992/0.469, allocations: 0.5563 MB / 0.5392 GB, free: 12.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.951e-05/0.4691, allocations: 117.9 kB / 0.5393 GB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.4691, allocations: 4 kB / 0.5393 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001736/0.4693, allocations: 46.17 kB / 0.5394 GB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.4694, allocations: 31.55 kB / 0.5394 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.4709, allocations: 1.427 MB / 0.5408 GB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004187/0.4713, allocations: 77.52 kB / 0.5409 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/0.4714, allocations: 23 kB / 0.5409 GB, free: 10.32 MB / 362.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.0002405/0.4716, allocations: 216.3 kB / 0.5411 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-05/0.4717, allocations: 27.72 kB / 0.5411 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.021e-05/0.4718, allocations: 43.83 kB / 0.5412 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.4718, allocations: 4 kB / 0.5412 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4718, allocations: 3.938 kB / 0.5412 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4718, allocations: 0 / 0.5412 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.473, allocations: 0.9633 MB / 0.5421 GB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.473, allocations: 7.984 kB / 0.5421 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.4732, allocations: 31.3 kB / 0.5421 GB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.4732, allocations: 3.938 kB / 0.5422 GB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.4733, allocations: 18.61 kB / 0.5422 GB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4733, allocations: 4 kB / 0.5422 GB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4733, allocations: 4 kB / 0.5422 GB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007142/0.474, allocations: 0.5899 MB / 0.5428 GB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.425e-05/0.4741, allocations: 108.7 kB / 0.5429 GB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.4741, allocations: 11.5 kB / 0.5429 GB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003643/0.4745, allocations: 74.94 kB / 0.5429 GB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.4747, allocations: 66.27 kB / 0.543 GB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.251e-05/0.4747, allocations: 19.61 kB / 0.543 GB, free: 8.371 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001179/0.4749, allocations: 143 kB / 0.5432 GB, free: 8.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4749, allocations: 0 / 0.5432 GB, free: 8.246 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005242/0.4754, allocations: 129.2 kB / 0.5433 GB, free: 8.133 MB / 362.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.0002866/0.4757, allocations: 168.2 kB / 0.5434 GB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008767/0.4766, allocations: 0.6952 MB / 0.5441 GB, free: 7.336 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4766, allocations: 0 / 0.5441 GB, free: 7.336 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004068/0.477, allocations: 340.8 kB / 0.5444 GB, free: 7.059 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.4773, allocations: 30.41 kB / 0.5445 GB, free: 7.035 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009151/0.4782, allocations: 465.6 kB / 0.5449 GB, free: 6.637 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.4786, allocations: 0.8036 MB / 0.5457 GB, free: 5.809 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000131/0.4788, allocations: 26.97 kB / 0.5457 GB, free: 5.785 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.4789, allocations: 31.42 kB / 0.5458 GB, free: 5.754 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4789, allocations: 0 / 0.5458 GB, free: 5.754 MB / 362.7 MB Notification: Performance of Templates: time 0.008245/0.4871, allocations: 4.056 MB / 0.5497 GB, free: 1.73 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe 2>&1)