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.001267/0.001267, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001804/0.001804, allocations: 192.6 kB / 16.25 MB, free: 6.156 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.596/1.596, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.3649/0.3649, allocations: 37.97 MB / 307.4 MB, free: 10.05 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.00147/0.001471, allocations: 70.34 kB / 374.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1563, allocations: 56.46 MB / 431.2 MB, free: 6.973 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.005193/0.1615, allocations: 2.755 MB / 433.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002801/0.1644, allocations: 1.302 MB / 435.2 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.1646, allocations: 8 kB / 435.3 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.1657, allocations: 311.1 kB / 435.6 MB, free: 2.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005285/0.1662, allocations: 203.3 kB / 435.8 MB, free: 2.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009243/0.1672, allocations: 355.4 kB / 436.1 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006541/0.1678, allocations: 0.6284 MB / 436.7 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004032/0.1682, allocations: 223.4 kB / 436.9 MB, free: 1.176 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003287/0.1686, allocations: 274.9 kB / 437.2 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003035/0.1689, allocations: 302.8 kB / 437.5 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.357e-05/0.169, allocations: 52 kB / 437.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002423/0.1692, allocations: 115.9 kB / 437.7 MB, free: 456 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.1694, allocations: 167.4 kB / 437.8 MB, free: 288 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002253/0.1696, allocations: 270.5 kB / 438.1 MB, free: 16 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006481/0.1703, allocations: 0.619 MB / 438.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1703, allocations: 0 / 438.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1703, allocations: 0 / 438.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.1703, allocations: 0 / 438.7 MB, free: 15.39 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.001795/0.1721, allocations: 0.9795 MB / 439.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.1722, allocations: 11.89 kB / 439.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.1724, allocations: 76.08 kB / 439.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005528/0.1729, allocations: 414.9 kB / 440.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.996e-05/0.173, allocations: 41.38 kB / 440.2 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.221e-05/0.1731, allocations: 43.94 kB / 440.3 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009111/0.174, allocations: 459.7 kB / 440.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.174, allocations: 4 kB / 440.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.425e-05/0.1741, allocations: 19.98 kB / 440.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.1741, allocations: 8 kB / 440.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00075/0.1748, allocations: 315.8 kB / 441.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.1766, allocations: 1.083 MB / 442.1 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.1778, allocations: 477.1 kB / 442.6 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/0.1782, allocations: 186.1 kB / 442.8 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.602e-05/0.1783, allocations: 4.438 kB / 442.8 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005869/0.1789, allocations: 289.1 kB / 443.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 3.296e-06/0.1789, allocations: 4 kB / 443.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001513/0.1804, allocations: 0.6078 MB / 443.7 MB, free: 10.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.1806, allocations: 140.9 kB / 443.8 MB, free: 10.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007228/0.1813, allocations: 0.5094 MB / 444.3 MB, free: 9.527 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.888e-05/0.1814, allocations: 41.7 kB / 444.4 MB, free: 9.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002593/0.1817, allocations: 261.3 kB / 444.6 MB, free: 9.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.1818, allocations: 122.3 kB / 444.8 MB, free: 9.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.182, allocations: 126.2 kB / 444.9 MB, free: 8.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002674/0.1823, allocations: 358.8 kB / 445.2 MB, free: 8.609 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004227/0.1827, allocations: 169 kB / 445.4 MB, free: 8.445 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005282/0.1833, allocations: 256.9 kB / 445.6 MB, free: 8.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006999/0.184, allocations: 297.2 kB / 445.9 MB, free: 7.871 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.184, allocations: 7.938 kB / 445.9 MB, free: 7.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001006/0.185, allocations: 478.2 kB / 446.4 MB, free: 7.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.1851, allocations: 8 kB / 446.4 MB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1851, allocations: 4.062 kB / 446.4 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.1851, allocations: 4 kB / 446.4 MB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/0.1854, allocations: 63.83 kB / 446.5 MB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.1854, allocations: 4 kB / 446.5 MB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.1858, allocations: 71.62 kB / 446.6 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.1858, allocations: 23.98 kB / 446.6 MB, free: 7.215 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.0003067/0.1861, allocations: 215 kB / 446.8 MB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.735e-05/0.1862, allocations: 59.27 kB / 446.9 MB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001416/0.1864, allocations: 61.19 kB / 446.9 MB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.1864, allocations: 4 kB / 446.9 MB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.1864, allocations: 4.062 kB / 446.9 MB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.1864, allocations: 7.984 kB / 446.9 MB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001913/0.1883, allocations: 1.084 MB / 448 MB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1883, allocations: 0 / 448 MB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.1885, allocations: 35.91 kB / 448 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.1885, allocations: 4 kB / 448.1 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.1886, allocations: 15.98 kB / 448.1 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.1886, allocations: 0 / 448.1 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.1886, allocations: 4 kB / 448.1 MB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1896, allocations: 0.5579 MB / 448.6 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.1898, allocations: 128.4 kB / 448.8 MB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.226e-05/0.1898, allocations: 15.98 kB / 448.8 MB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003401/0.1902, allocations: 47.94 kB / 448.8 MB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.1904, allocations: 68.36 kB / 448.9 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.1904, allocations: 23.98 kB / 448.9 MB, free: 4.785 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003686/0.1908, allocations: 363 kB / 449.3 MB, free: 4.434 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.1908, allocations: 0 / 449.3 MB, free: 4.434 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004506/0.1913, allocations: 123.7 kB / 449.4 MB, free: 4.312 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.001036/0.1923, allocations: 458.9 kB / 449.8 MB, free: 3.887 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.1935, allocations: 469.5 kB / 450.3 MB, free: 3.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1935, allocations: 0 / 450.3 MB, free: 3.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004881/0.194, allocations: 230.3 kB / 450.5 MB, free: 3.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006198/0.1946, allocations: 97.42 kB / 450.6 MB, free: 3.109 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.1962, allocations: 1.058 MB / 451.7 MB, free: 2.031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.1967, allocations: 0.864 MB / 452.5 MB, free: 1.141 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002494/0.1969, allocations: 71.39 kB / 452.6 MB, free: 1.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.1971, allocations: 55.36 kB / 452.7 MB, free: 1.016 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1971, allocations: 0 / 452.7 MB, free: 1.016 MB / 382.1 MB Notification: Performance of Templates: time 0.2732/0.4703, allocations: 6.639 MB / 459.3 MB, free: 52.57 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)