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.001301/0.001301, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 194 kB / 16.53 MB, free: 6.664 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.616/1.616, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.3672/0.3672, allocations: 39.95 MB / 309.7 MB, free: 9.305 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.0019/0.0019, allocations: 67.91 kB / 377.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1339, allocations: 56.87 MB / 434.5 MB, free: 3.711 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.005291/0.1393, allocations: 2.722 MB / 437.2 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002334/0.1417, allocations: 1.322 MB / 438.5 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.1419, allocations: 7.938 kB / 438.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.143, allocations: 334.8 kB / 438.9 MB, free: 15.3 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005616/0.1436, allocations: 238.9 kB / 439.1 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009358/0.1445, allocations: 371.2 kB / 439.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000638/0.1451, allocations: 0.6246 MB / 440.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004503/0.1456, allocations: 235 kB / 440.3 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003584/0.146, allocations: 274.9 kB / 440.6 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003524/0.1463, allocations: 294.8 kB / 440.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.28e-05/0.1464, allocations: 52 kB / 440.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002564/0.1467, allocations: 111.9 kB / 441 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.1469, allocations: 167.5 kB / 441.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.1472, allocations: 270.4 kB / 441.5 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006885/0.1479, allocations: 0.6153 MB / 442.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1479, allocations: 4 kB / 442.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1479, allocations: 0 / 442.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.1479, allocations: 0 / 442.1 MB, free: 12.08 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.002032/0.1499, allocations: 0.9869 MB / 443.1 MB, free: 11.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.15, allocations: 15.89 kB / 443.1 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.1501, allocations: 64.19 kB / 443.1 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005434/0.1507, allocations: 422.5 kB / 443.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.1507, allocations: 33 kB / 443.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-05/0.1508, allocations: 47.92 kB / 443.6 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008069/0.1516, allocations: 463.7 kB / 444.1 MB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.1517, allocations: 0 / 444.1 MB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.1517, allocations: 16 kB / 444.1 MB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.1517, allocations: 8 kB / 444.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007451/0.1525, allocations: 319.8 kB / 444.4 MB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.1542, allocations: 1.086 MB / 445.5 MB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.1555, allocations: 484.4 kB / 446 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004295/0.156, allocations: 182 kB / 446.2 MB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.976e-05/0.156, allocations: 12.42 kB / 446.2 MB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006446/0.1567, allocations: 285.3 kB / 446.4 MB, free: 7.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 1.914e-06/0.1567, allocations: 0 / 446.4 MB, free: 7.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001554/0.1583, allocations: 0.6116 MB / 447.1 MB, free: 6.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.1584, allocations: 137 kB / 447.2 MB, free: 6.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006236/0.159, allocations: 0.5094 MB / 447.7 MB, free: 6.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.946e-05/0.1591, allocations: 45.7 kB / 447.7 MB, free: 6.156 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.1593, allocations: 249.3 kB / 448 MB, free: 5.906 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.1594, allocations: 126.4 kB / 448.1 MB, free: 5.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.1596, allocations: 122.2 kB / 448.2 MB, free: 5.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.1598, allocations: 366.8 kB / 448.6 MB, free: 5.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004134/0.1602, allocations: 165 kB / 448.7 MB, free: 5.129 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.1607, allocations: 252.9 kB / 449 MB, free: 4.855 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006859/0.1614, allocations: 301.2 kB / 449.3 MB, free: 4.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1614, allocations: 3.938 kB / 449.3 MB, free: 4.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009794/0.1624, allocations: 478.3 kB / 449.8 MB, free: 4.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.1624, allocations: 8 kB / 449.8 MB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1625, allocations: 0 / 449.8 MB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1625, allocations: 4.062 kB / 449.8 MB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.1628, allocations: 67.83 kB / 449.8 MB, free: 4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.1628, allocations: 4 kB / 449.8 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.1632, allocations: 79.59 kB / 449.9 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.203e-05/0.1632, allocations: 16 kB / 449.9 MB, free: 3.902 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.0002535/0.1635, allocations: 226.9 kB / 450.2 MB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.312e-05/0.1635, allocations: 47.44 kB / 450.2 MB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.1637, allocations: 61.19 kB / 450.3 MB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.1637, allocations: 4 kB / 450.3 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.1637, allocations: 3.984 kB / 450.3 MB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.1637, allocations: 0 / 450.3 MB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.1656, allocations: 1.087 MB / 451.4 MB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1656, allocations: 3.938 kB / 451.4 MB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.1658, allocations: 39.91 kB / 451.4 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.1658, allocations: 7.938 kB / 451.4 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.1659, allocations: 15.92 kB / 451.4 MB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1659, allocations: 0 / 451.4 MB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1659, allocations: 4 kB / 451.4 MB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.1669, allocations: 0.5541 MB / 452 MB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.709e-05/0.167, allocations: 128.5 kB / 452.1 MB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.821e-05/0.1671, allocations: 12 kB / 452.1 MB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003567/0.1675, allocations: 55.94 kB / 452.2 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.1677, allocations: 68.34 kB / 452.2 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.493e-05/0.1677, allocations: 19.98 kB / 452.3 MB, free: 1.473 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000386/0.1681, allocations: 355.1 kB / 452.6 MB, free: 1.129 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1681, allocations: 4 kB / 452.6 MB, free: 1.125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004323/0.1686, allocations: 127.7 kB / 452.7 MB, free: 1 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.001019/0.1696, allocations: 462.3 kB / 453.2 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.1708, allocations: 461.5 kB / 453.6 MB, free: 124 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.1708, allocations: 0 / 453.6 MB, free: 124 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1865/0.3573, allocations: 230.2 kB / 453.9 MB, free: 52.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007802/0.3581, allocations: 91.44 kB / 454 MB, free: 52.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.3594, allocations: 0.8938 MB / 454.8 MB, free: 51.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.3597, allocations: 0.8639 MB / 455.7 MB, free: 51.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.3599, allocations: 64.98 kB / 455.8 MB, free: 51.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.36, allocations: 53.91 kB / 455.8 MB, free: 51.12 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.36, allocations: 3.906 kB / 455.8 MB, free: 51.12 MB / 382.1 MB Notification: Performance of Templates: time 0.01072/0.3708, allocations: 7.032 MB / 462.9 MB, free: 50.79 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)