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.01093/0.01093, allocations: 174.3 kB / 15.12 MB, free: 5.973 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.778/1.778, allocations: 194.5 MB / 210.3 MB, free: 8.594 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.001704/0.001704, allocations: 112.7 kB / 255.6 MB, free: 11.21 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2129/0.2129, allocations: 40 MB / 340.8 MB, free: 11.54 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004548/0.0004549, allocations: 15.53 kB / 406.2 MB, free: 51.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1215, allocations: 54.87 MB / 461 MB, free: 3.441 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4159/0.5374, allocations: 84.94 MB / 0.5332 GB, free: 26.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.5377, allocations: 63.97 kB / 0.5332 GB, free: 26.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01812/0.5558, allocations: 5.958 MB / 0.5391 GB, free: 26 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.5559, allocations: 0 / 0.5391 GB, free: 26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.985e-05/0.5559, allocations: 8.188 kB / 0.5391 GB, free: 26 MB / 378.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.001507/0.5574, allocations: 0.7766 MB / 0.5398 GB, free: 25.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.5575, allocations: 8.688 kB / 0.5398 GB, free: 25.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.5576, allocations: 47.95 kB / 0.5399 GB, free: 25.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.5578, allocations: 205.5 kB / 0.5401 GB, free: 25.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.049e-05/0.5579, allocations: 30.88 kB / 0.5401 GB, free: 25.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.298e-05/0.558, allocations: 42.62 kB / 0.5401 GB, free: 25.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009105/0.5589, allocations: 426.4 kB / 0.5405 GB, free: 25.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.5589, allocations: 0 / 0.5405 GB, free: 25.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.559, allocations: 20.05 kB / 0.5406 GB, free: 25.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.559, allocations: 12.7 kB / 0.5406 GB, free: 25.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000726/0.5598, allocations: 318.6 kB / 0.5409 GB, free: 25.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.5615, allocations: 0.9459 MB / 0.5418 GB, free: 24.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.5627, allocations: 453.8 kB / 0.5422 GB, free: 24.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.5627, allocations: 8.344 kB / 0.5422 GB, free: 24.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006035/0.5633, allocations: 351.4 kB / 0.5426 GB, free: 24.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 1.933e-06/0.5633, allocations: 1.375 kB / 0.5426 GB, free: 24.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.00151/0.5648, allocations: 0.8439 MB / 0.5434 GB, free: 24.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.902e-05/0.5649, allocations: 197.6 kB / 0.5436 GB, free: 24.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.5651, allocations: 199.9 kB / 0.5438 GB, free: 23.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.173e-05/0.5652, allocations: 50.08 kB / 0.5438 GB, free: 23.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.5653, allocations: 169.6 kB / 0.544 GB, free: 23.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.294e-05/0.5654, allocations: 115.4 kB / 0.5441 GB, free: 23.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-05/0.5654, allocations: 9.719 kB / 0.5441 GB, free: 23.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.5655, allocations: 346.8 kB / 0.5444 GB, free: 23.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000377/0.5659, allocations: 169 kB / 0.5446 GB, free: 23.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004475/0.5664, allocations: 212.3 kB / 0.5448 GB, free: 23.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000409/0.5668, allocations: 245.3 kB / 0.545 GB, free: 23.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5668, allocations: 0 / 0.545 GB, free: 23.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001091/0.5679, allocations: 0.5797 MB / 0.5456 GB, free: 23.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.9e-05/0.568, allocations: 116.4 kB / 0.5457 GB, free: 22.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.568, allocations: 2.109 kB / 0.5457 GB, free: 22.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.5681, allocations: 6.359 kB / 0.5457 GB, free: 22.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.5683, allocations: 47.67 kB / 0.5458 GB, free: 22.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.5683, allocations: 4.828 kB / 0.5458 GB, free: 22.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.5687, allocations: 78.48 kB / 0.5459 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.519e-05/0.5687, allocations: 16.47 kB / 0.5459 GB, free: 22.91 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000252/0.569, allocations: 244.7 kB / 0.5461 GB, free: 22.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/0.569, allocations: 28.12 kB / 0.5461 GB, free: 22.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.751e-05/0.5691, allocations: 38.89 kB / 0.5462 GB, free: 22.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.5691, allocations: 8.453 kB / 0.5462 GB, free: 22.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.5691, allocations: 0 / 0.5462 GB, free: 22.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.5692, allocations: 5 kB / 0.5462 GB, free: 22.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0015/0.5707, allocations: 1.032 MB / 0.5472 GB, free: 22.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.5707, allocations: 1.062 kB / 0.5472 GB, free: 22.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001417/0.5708, allocations: 38.31 kB / 0.5472 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.5708, allocations: 2.438 kB / 0.5472 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.882e-05/0.5709, allocations: 15.39 kB / 0.5472 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5709, allocations: 3.625 kB / 0.5472 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.5709, allocations: 0 / 0.5472 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.572, allocations: 0.6554 MB / 0.5479 GB, free: 22.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.961e-05/0.5721, allocations: 104.5 kB / 0.548 GB, free: 21.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.768e-05/0.5721, allocations: 13.56 kB / 0.548 GB, free: 21.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003525/0.5725, allocations: 77.19 kB / 0.5481 GB, free: 21.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.5727, allocations: 70.22 kB / 0.5481 GB, free: 21.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.483e-05/0.5727, allocations: 22.91 kB / 0.5482 GB, free: 21.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000127/0.5729, allocations: 144.7 kB / 0.5483 GB, free: 21.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5729, allocations: 5.75 kB / 0.5483 GB, free: 21.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005399/0.5734, allocations: 115.2 kB / 0.5484 GB, free: 21.86 MB / 378.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) * Number of clocked states: 0 () * 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.0002907/0.5737, allocations: 171.9 kB / 0.5486 GB, free: 21.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.5749, allocations: 0.6487 MB / 0.5492 GB, free: 21.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5749, allocations: 4.5 kB / 0.5492 GB, free: 21.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006923/0.5756, allocations: 376.6 kB / 0.5496 GB, free: 21.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.5759, allocations: 27.52 kB / 0.5496 GB, free: 21.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.5772, allocations: 0.7301 MB / 0.5503 GB, free: 20.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.5775, allocations: 0.7977 MB / 0.5511 GB, free: 20.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.5776, allocations: 25.16 kB / 0.5511 GB, free: 20.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.5777, allocations: 29.89 kB / 0.5511 GB, free: 20.25 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5777, allocations: 0 / 0.5511 GB, free: 20.25 MB / 378.7 MB Notification: Performance of Templates: time 0.007764/0.5855, allocations: 3.898 MB / 0.5549 GB, free: 19.98 MB / 378.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)