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.001002/0.001002, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.001115/0.001115, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.84/1.84, allocations: 205.4 MB / 222.1 MB, free: 5.512 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.3724/0.3724, allocations: 40 MB / 310.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.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.0006203/0.0006205, allocations: 12 kB / 378.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1557, allocations: 57.95 MB / 436.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004027/0.1598, allocations: 2.286 MB / 439.1 MB, free: 264 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.1628, allocations: 1.241 MB / 440.3 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004561/0.1633, allocations: 8 kB / 440.3 MB, free: 15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.1643, allocations: 303.1 kB / 440.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006867/0.165, allocations: 187.3 kB / 440.8 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.1662, allocations: 307.5 kB / 441.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008747/0.1671, allocations: 0.5621 MB / 441.7 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003511/0.1674, allocations: 182.7 kB / 441.8 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/0.1678, allocations: 207 kB / 442 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000291/0.1681, allocations: 246.9 kB / 442.3 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.1681, allocations: 20 kB / 442.3 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.1683, allocations: 63.95 kB / 442.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.1685, allocations: 123.5 kB / 442.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.1686, allocations: 105.4 kB / 442.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004874/0.1691, allocations: 467.1 kB / 443 MB, free: 12.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1691, allocations: 0 / 443 MB, free: 12.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1691, allocations: 3.938 kB / 443 MB, free: 12.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1692, allocations: 0 / 443 MB, free: 12.25 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.00173/0.1709, allocations: 0.9056 MB / 444 MB, free: 11.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.1709, allocations: 8.031 kB / 444 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.1711, allocations: 63.25 kB / 444 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005547/0.1716, allocations: 405.8 kB / 444.4 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.807e-05/0.1717, allocations: 37 kB / 444.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.328e-05/0.1718, allocations: 44 kB / 444.5 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008577/0.1726, allocations: 463.7 kB / 445 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1727, allocations: 0 / 445 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.226e-05/0.1727, allocations: 23.95 kB / 445 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.71e-05/0.1727, allocations: 8 kB / 445 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007472/0.1735, allocations: 335.8 kB / 445.3 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.1753, allocations: 1.114 MB / 446.4 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.1764, allocations: 497.7 kB / 446.9 MB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003934/0.1768, allocations: 194.1 kB / 447.1 MB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.606e-05/0.1768, allocations: 4.438 kB / 447.1 MB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006405/0.1775, allocations: 301.1 kB / 447.4 MB, free: 7.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.244e-06/0.1775, allocations: 0 / 447.4 MB, free: 7.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001445/0.179, allocations: 0.6313 MB / 448 MB, free: 7.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.496e-05/0.179, allocations: 133 kB / 448.2 MB, free: 6.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005975/0.1797, allocations: 0.5094 MB / 448.7 MB, free: 6.395 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.479e-05/0.1797, allocations: 49.7 kB / 448.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.1799, allocations: 245.4 kB / 449 MB, free: 6.094 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.18, allocations: 134.3 kB / 449.1 MB, free: 5.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.1801, allocations: 8 kB / 449.1 MB, free: 5.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003765/0.1805, allocations: 362.8 kB / 449.4 MB, free: 5.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000386/0.1808, allocations: 177 kB / 449.6 MB, free: 5.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004649/0.1813, allocations: 260.9 kB / 449.9 MB, free: 5.137 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.1817, allocations: 154.1 kB / 450 MB, free: 4.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1817, allocations: 0 / 450 MB, free: 4.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009405/0.1826, allocations: 498.4 kB / 450.5 MB, free: 4.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.1827, allocations: 4 kB / 450.5 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1827, allocations: 11.94 kB / 450.5 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1827, allocations: 0 / 450.5 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.183, allocations: 71.83 kB / 450.6 MB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.183, allocations: 4 kB / 450.6 MB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.1833, allocations: 95.56 kB / 450.7 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.1834, allocations: 16 kB / 450.7 MB, free: 4.293 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 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,$PRE.pre1.u,pre1.u,pre1.y,$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.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.u,$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 (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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.0002531/0.1837, allocations: 230.9 kB / 450.9 MB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.65e-05/0.1837, allocations: 51.34 kB / 451 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.184, allocations: 65.17 kB / 451.1 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.184, allocations: 7.938 kB / 451.1 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.184, allocations: 0 / 451.1 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.184, allocations: 0 / 451.1 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.1858, allocations: 1.103 MB / 452.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1858, allocations: 0 / 452.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.186, allocations: 39.91 kB / 452.2 MB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.186, allocations: 4 kB / 452.2 MB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.186, allocations: 15.98 kB / 452.2 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.186, allocations: 0 / 452.2 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.1861, allocations: 4 kB / 452.2 MB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009931/0.1871, allocations: 0.5813 MB / 452.8 MB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.1872, allocations: 128.5 kB / 452.9 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.483e-05/0.1872, allocations: 16 kB / 452.9 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003342/0.1876, allocations: 67.94 kB / 453 MB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.1878, allocations: 76.31 kB / 453.1 MB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.843e-05/0.1878, allocations: 23.98 kB / 453.1 MB, free: 1.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003921/0.1882, allocations: 355.1 kB / 453.5 MB, free: 1.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.1882, allocations: 4 kB / 453.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004464/0.1887, allocations: 123.7 kB / 453.6 MB, free: 1.316 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 (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.001098/0.1898, allocations: 457.1 kB / 454 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009286/0.1907, allocations: 453.6 kB / 454.5 MB, free: 472 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1908, allocations: 0 / 454.5 MB, free: 472 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004646/0.1912, allocations: 234.5 kB / 454.7 MB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005467/0.1918, allocations: 97.45 kB / 454.8 MB, free: 144 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2511/0.4429, allocations: 1.001 MB / 455.8 MB, free: 48.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.4433, allocations: 0.8679 MB / 456.7 MB, free: 47.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003395/0.4437, allocations: 73.78 kB / 456.7 MB, free: 47.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.4438, allocations: 45.19 kB / 456.8 MB, free: 47.78 MB / 382.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4438, allocations: 0 / 456.8 MB, free: 47.78 MB / 382.1 MB Notification: Performance of Templates: time 0.01155/0.4554, allocations: 6.066 MB / 462.8 MB, free: 47.46 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: