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/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.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 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, 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.001954/0.001954, allocations: 191.4 kB / 16.13 MB, free: 6.699 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.68/1.68, allocations: 205.1 MB / 222 MB, free: 4.996 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3343/0.3343, allocations: 39.94 MB / 309.3 MB, free: 9.23 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.2. 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.001374/0.001374, allocations: 63.91 kB / 376.9 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1391, allocations: 56.9 MB / 433.8 MB, free: 4.203 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004066/0.1432, allocations: 2.752 MB / 436.6 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002168/0.1454, allocations: 1.299 MB / 437.9 MB, free: 124 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.1456, allocations: 7.938 kB / 437.9 MB, free: 116 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008442/0.1465, allocations: 307.1 kB / 438.2 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005078/0.147, allocations: 211.3 kB / 438.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000785/0.1478, allocations: 339.5 kB / 438.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005308/0.1484, allocations: 0.6089 MB / 439.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003416/0.1487, allocations: 223 kB / 439.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.149, allocations: 246.9 kB / 439.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.1493, allocations: 286.7 kB / 440.1 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.838e-05/0.1494, allocations: 32 kB / 440.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.1496, allocations: 83.91 kB / 440.2 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.1498, allocations: 147.5 kB / 440.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002299/0.15, allocations: 250.4 kB / 440.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005586/0.1506, allocations: 0.6036 MB / 441.2 MB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1506, allocations: 0 / 441.2 MB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1506, allocations: 0 / 441.2 MB, free: 12.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1506, allocations: 0 / 441.2 MB, free: 12.81 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.00182/0.1524, allocations: 0.9834 MB / 442.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1525, allocations: 8.031 kB / 442.1 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.1526, allocations: 64.19 kB / 442.2 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005126/0.1531, allocations: 422.5 kB / 442.6 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.115e-05/0.1532, allocations: 33 kB / 442.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/0.1533, allocations: 51.98 kB / 442.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008831/0.1541, allocations: 455.7 kB / 443.2 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1542, allocations: 0 / 443.2 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.32e-05/0.1542, allocations: 19.98 kB / 443.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.1542, allocations: 8 kB / 443.2 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000734/0.155, allocations: 319.8 kB / 443.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.1567, allocations: 1.086 MB / 444.6 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.1579, allocations: 481.1 kB / 445 MB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.1584, allocations: 186 kB / 445.2 MB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.465e-05/0.1584, allocations: 8.438 kB / 445.2 MB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006397/0.1591, allocations: 281.3 kB / 445.5 MB, free: 8.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 1.984e-06/0.1591, allocations: 4 kB / 445.5 MB, free: 8.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001478/0.1606, allocations: 0.6116 MB / 446.1 MB, free: 7.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.783e-05/0.1607, allocations: 133 kB / 446.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005551/0.1612, allocations: 0.5133 MB / 446.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.1613, allocations: 41.7 kB / 446.8 MB, free: 6.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.1615, allocations: 257.3 kB / 447.1 MB, free: 6.648 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.1616, allocations: 122.4 kB / 447.2 MB, free: 6.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.1618, allocations: 126.2 kB / 447.3 MB, free: 6.398 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.162, allocations: 362.8 kB / 447.7 MB, free: 6.035 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/0.1624, allocations: 165 kB / 447.8 MB, free: 5.875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004594/0.1628, allocations: 256.9 kB / 448.1 MB, free: 5.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006541/0.1635, allocations: 301.2 kB / 448.4 MB, free: 5.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.1635, allocations: 7.938 kB / 448.4 MB, free: 5.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00106/0.1646, allocations: 478.2 kB / 448.8 MB, free: 4.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.1646, allocations: 8 kB / 448.8 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1646, allocations: 0 / 448.8 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.1647, allocations: 4 kB / 448.9 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002968/0.165, allocations: 63.83 kB / 448.9 MB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.165, allocations: 8.062 kB / 448.9 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003453/0.1654, allocations: 75.53 kB / 449 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.036e-05/0.1654, allocations: 20 kB / 449 MB, free: 4.641 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.0002748/0.1657, allocations: 222.9 kB / 449.2 MB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.942e-05/0.1658, allocations: 47.44 kB / 449.3 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.1659, allocations: 61.19 kB / 449.3 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.1659, allocations: 4 kB / 449.3 MB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.1659, allocations: 3.984 kB / 449.3 MB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.166, allocations: 4 kB / 449.4 MB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/0.1677, allocations: 1.084 MB / 450.4 MB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.1677, allocations: 3.938 kB / 450.4 MB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.1679, allocations: 35.91 kB / 450.5 MB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1679, allocations: 4 kB / 450.5 MB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.113e-05/0.168, allocations: 11.98 kB / 450.5 MB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.168, allocations: 7.938 kB / 450.5 MB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.168, allocations: 4 kB / 450.5 MB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.169, allocations: 0.5502 MB / 451.1 MB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.494e-05/0.1691, allocations: 128.5 kB / 451.2 MB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.835e-05/0.1692, allocations: 16 kB / 451.2 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003466/0.1695, allocations: 55.94 kB / 451.2 MB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.1697, allocations: 68.34 kB / 451.3 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.1698, allocations: 15.98 kB / 451.3 MB, free: 2.223 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003729/0.1701, allocations: 367 kB / 451.7 MB, free: 1.863 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1702, allocations: 4 kB / 451.7 MB, free: 1.859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004377/0.1706, allocations: 127.7 kB / 451.8 MB, free: 1.734 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.001073/0.1717, allocations: 466 kB / 452.3 MB, free: 1.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009246/0.1726, allocations: 429.6 kB / 452.7 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1726, allocations: 0 / 452.7 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004409/0.1731, allocations: 230.4 kB / 452.9 MB, free: 0.668 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005596/0.1736, allocations: 89.36 kB / 453 MB, free: 0.582 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2043/0.3779, allocations: 1.055 MB / 454.1 MB, free: 51.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.3783, allocations: 0.8643 MB / 454.9 MB, free: 50.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003562/0.3787, allocations: 67.8 kB / 455 MB, free: 50.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.3788, allocations: 46.83 kB / 455 MB, free: 50.67 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3788, allocations: 0 / 455 MB, free: 50.67 MB / 382.1 MB Notification: Performance of Templates: time 0.01063/0.3895, allocations: 6.356 MB / 461.4 MB, free: 50.38 MB / 382.1 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)