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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+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 Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 193 kB / 16.13 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3434/0.3434, allocations: 37.98 MB / 307.3 MB, free: 10.09 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.91 kB / 374.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1469, allocations: 56.47 MB / 431 MB, free: 7.098 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004868/0.1519, allocations: 2.748 MB / 433.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1542, allocations: 1.318 MB / 435.1 MB, free: 3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/0.1545, allocations: 7.938 kB / 435.1 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.1556, allocations: 303.2 kB / 435.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004323/0.156, allocations: 211.2 kB / 435.6 MB, free: 2.488 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008064/0.1568, allocations: 343.5 kB / 435.9 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006664/0.1575, allocations: 0.6089 MB / 436.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000396/0.1579, allocations: 215.4 kB / 436.7 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002938/0.1582, allocations: 246.9 kB / 437 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.1585, allocations: 286.7 kB / 437.3 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.775e-05/0.1586, allocations: 28 kB / 437.3 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.1588, allocations: 91.89 kB / 437.4 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.1589, allocations: 143.5 kB / 437.5 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.1592, allocations: 246.5 kB / 437.8 MB, free: 316 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005969/0.1598, allocations: 0.6072 MB / 438.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.1598, allocations: 0 / 438.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1598, allocations: 4 kB / 438.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1598, allocations: 0 / 438.4 MB, free: 15.7 MB / 382.1 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.001841/0.1617, allocations: 0.9757 MB / 439.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1617, allocations: 8.031 kB / 439.3 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.1618, allocations: 72.09 kB / 439.4 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.1623, allocations: 418.8 kB / 439.8 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.597e-05/0.1624, allocations: 41.3 kB / 439.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.516e-05/0.1625, allocations: 47.94 kB / 439.9 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009045/0.1634, allocations: 455.7 kB / 440.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.1634, allocations: 0 / 440.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.153e-05/0.1635, allocations: 20 kB / 440.4 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.1635, allocations: 11.98 kB / 440.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007593/0.1642, allocations: 315.8 kB / 440.7 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.1661, allocations: 1.083 MB / 441.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.1672, allocations: 477 kB / 442.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003992/0.1676, allocations: 178.1 kB / 442.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.903e-05/0.1677, allocations: 12.42 kB / 442.4 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006361/0.1684, allocations: 297.1 kB / 442.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 1.753e-06/0.1684, allocations: 0 / 442.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001501/0.1699, allocations: 0.6039 MB / 443.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/0.17, allocations: 137 kB / 443.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000593/0.1706, allocations: 0.5133 MB / 444 MB, free: 9.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.871e-05/0.1706, allocations: 45.7 kB / 444 MB, free: 9.785 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.1708, allocations: 253.3 kB / 444.3 MB, free: 9.531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.171, allocations: 126.3 kB / 444.4 MB, free: 9.406 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.1711, allocations: 118.2 kB / 444.5 MB, free: 9.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.1713, allocations: 366.8 kB / 444.9 MB, free: 8.918 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/0.1717, allocations: 165 kB / 445 MB, free: 8.758 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004754/0.1722, allocations: 256.9 kB / 445.3 MB, free: 8.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006604/0.1729, allocations: 301.2 kB / 445.6 MB, free: 8.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1729, allocations: 0 / 445.6 MB, free: 8.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009186/0.1738, allocations: 482.3 kB / 446 MB, free: 7.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1739, allocations: 4 kB / 446 MB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1739, allocations: 4 kB / 446 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.1739, allocations: 3.984 kB / 446.1 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.1742, allocations: 67.83 kB / 446.1 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.1742, allocations: 0 / 446.1 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003178/0.1745, allocations: 83.62 kB / 446.2 MB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.1746, allocations: 16 kB / 446.2 MB, free: 7.527 MB / 382.1 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 ($PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,timer.entryTime,$PRE.timer.entryTime,timer.u,triggeredTrapezoid.T,triggeredTrapezoid.rate,triggeredTrapezoid.endValue,onOffController.y,$PRE.onOffController.y,hysteresis.y,$PRE.hysteresis.y,logicalSwitch.y,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,lessEqual.y,less.y,greaterEqual.y,greater.y,lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,change1.y,change1.u,$PRE.change1.u,fallingEdge.not_u,$PRE.fallingEdge.not_u,fallingEdge.y,edge1.y,edge1.u,$PRE.edge1.u,pre1.y,pre1.u,$PRE.pre1.u,nand.y,nor.y,xor.y,and1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002289/0.1748, allocations: 214.9 kB / 446.4 MB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.313e-05/0.1749, allocations: 55.28 kB / 446.5 MB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.175, allocations: 65.17 kB / 446.5 MB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.175, allocations: 8 kB / 446.5 MB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.175, allocations: 0 / 446.5 MB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.175, allocations: 0 / 446.5 MB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.1768, allocations: 1.088 MB / 447.6 MB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.1768, allocations: 4.062 kB / 447.6 MB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.177, allocations: 39.91 kB / 447.7 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.177, allocations: 7.938 kB / 447.7 MB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.177, allocations: 11.98 kB / 447.7 MB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.177, allocations: 0 / 447.7 MB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.177, allocations: 0 / 447.7 MB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.1781, allocations: 0.5618 MB / 448.3 MB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.935e-05/0.1782, allocations: 132.4 kB / 448.4 MB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.715e-05/0.1783, allocations: 12 kB / 448.4 MB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003295/0.1786, allocations: 59.92 kB / 448.5 MB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.1788, allocations: 68.34 kB / 448.5 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.335e-05/0.1788, allocations: 19.98 kB / 448.5 MB, free: 5.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003541/0.1792, allocations: 355.1 kB / 448.9 MB, free: 4.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1792, allocations: 4 kB / 448.9 MB, free: 4.738 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004147/0.1796, allocations: 119.7 kB / 449 MB, free: 4.621 MB / 382.1 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 (timer.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,pre1.u,pre1.y,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.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,fallingEdge.not_u,edge1.u,change1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001022/0.1806, allocations: 467.2 kB / 449.5 MB, free: 4.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009884/0.1816, allocations: 437.5 kB / 449.9 MB, free: 3.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1816, allocations: 0 / 449.9 MB, free: 3.754 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004727/0.1821, allocations: 230.5 kB / 450.1 MB, free: 3.527 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005608/0.1827, allocations: 89.36 kB / 450.2 MB, free: 3.441 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.1842, allocations: 1.051 MB / 451.3 MB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.1846, allocations: 0.8682 MB / 452.1 MB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002293/0.1848, allocations: 75.39 kB / 452.2 MB, free: 1.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.185, allocations: 43.42 kB / 452.2 MB, free: 1.359 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.185, allocations: 4 kB / 452.3 MB, free: 1.355 MB / 382.1 MB Notification: Performance of Templates: time 0.2181/0.4031, allocations: 6.333 MB / 458.6 MB, free: 52.91 MB / 382.1 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)