Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2454/0.2454, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 76.94 kB / 416.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1424, allocations: 62.44 MB / 479.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.005501/0.148, allocations: 2.893 MB / 482.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003537/0.1515, allocations: 1.625 MB / 483.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005573/0.1521, allocations: 7.938 kB / 483.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.1534, allocations: 310.6 kB / 484.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008961/0.1543, allocations: 243.1 kB / 484.4 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.1554, allocations: 323.5 kB / 484.8 MB, free: 256 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009411/0.1563, allocations: 0.656 MB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004875/0.1568, allocations: 222.9 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000592/0.1574, allocations: 262.9 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005292/0.158, allocations: 302.6 kB / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.1581, allocations: 35.94 kB / 486.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003128/0.1584, allocations: 91.91 kB / 486.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.1587, allocations: 147.5 kB / 486.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.159, allocations: 270.2 kB / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000829/0.1598, allocations: 0.6426 MB / 487.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1599, allocations: 0 / 487.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1599, allocations: 0 / 487.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.853e-05/0.1599, allocations: 4 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.002415/0.1623, allocations: 1.026 MB / 488.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.1624, allocations: 12.88 kB / 488.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.1625, allocations: 78.66 kB / 488.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002884/0.1628, allocations: 80.08 kB / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006683/0.1635, allocations: 446.7 kB / 489 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.175e-05/0.1636, allocations: 37.38 kB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.604e-05/0.1637, allocations: 51.94 kB / 489.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.1647, allocations: 476.6 kB / 489.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.1647, allocations: 0 / 489.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.1647, allocations: 16 kB / 489.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.1648, allocations: 12 kB / 489.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008459/0.1656, allocations: 331.8 kB / 489.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.1679, allocations: 1.2 MB / 491.1 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.1692, allocations: 0.4913 MB / 491.6 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004828/0.1697, allocations: 186.9 kB / 491.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.633e-05/0.1698, allocations: 12.38 kB / 491.8 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007703/0.1706, allocations: 345.8 kB / 492.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 4.528e-06/0.1706, allocations: 0 / 492.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.001859/0.1724, allocations: 0.6427 MB / 492.8 MB, free: 8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1726, allocations: 166.7 kB / 492.9 MB, free: 7.801 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008892/0.1735, allocations: 0.5484 MB / 493.5 MB, free: 7.242 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.539e-05/0.1736, allocations: 49.64 kB / 493.5 MB, free: 7.188 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/0.1738, allocations: 249.4 kB / 493.8 MB, free: 6.941 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.174, allocations: 134.3 kB / 493.9 MB, free: 6.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.1742, allocations: 122.3 kB / 494 MB, free: 6.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.1744, allocations: 374.8 kB / 494.4 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004519/0.1749, allocations: 169.2 kB / 494.5 MB, free: 6.145 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005315/0.1754, allocations: 275.5 kB / 494.8 MB, free: 5.844 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007633/0.1762, allocations: 326.9 kB / 495.1 MB, free: 5.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1762, allocations: 0 / 495.1 MB, free: 5.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001125/0.1773, allocations: 0.502 MB / 495.6 MB, free: 5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.1773, allocations: 4 kB / 495.6 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1774, allocations: 64 / 495.6 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.1774, allocations: 8 kB / 495.6 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.1777, allocations: 67.89 kB / 495.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.1777, allocations: 12.03 kB / 495.7 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004344/0.1782, allocations: 83.47 kB / 495.8 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.1782, allocations: 19.98 kB / 495.8 MB, free: 4.809 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,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,$whenCondition4,$whenCondition5,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 72 * 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.0003074/0.1785, allocations: 227.2 kB / 496 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.1787, allocations: 63.27 kB / 496.1 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.1788, allocations: 65.42 kB / 496.2 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.1788, allocations: 4 kB / 496.2 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.1788, allocations: 4 kB / 496.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.1789, allocations: 3.984 kB / 496.2 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.1809, allocations: 1.111 MB / 497.3 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1809, allocations: 0 / 497.3 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.1811, allocations: 39.91 kB / 497.3 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.1811, allocations: 4 kB / 497.3 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.1812, allocations: 15.98 kB / 497.4 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.1812, allocations: 8 kB / 497.4 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1812, allocations: 0 / 497.4 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.1823, allocations: 0.589 MB / 497.9 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.1825, allocations: 132.5 kB / 498.1 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.437e-05/0.1826, allocations: 16 kB / 498.1 MB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003973/0.183, allocations: 55.92 kB / 498.1 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.1832, allocations: 72.34 kB / 498.2 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.967e-05/0.1832, allocations: 23.92 kB / 498.2 MB, free: 2.285 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004636/0.1837, allocations: 387.1 kB / 498.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1837, allocations: 0 / 498.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005048/0.1842, allocations: 143.5 kB / 498.8 MB, free: 1.766 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,timer.u,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,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 (55): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.002487/0.1867, allocations: 1.481 MB / 0.4885 GB, free: 412 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.1878, allocations: 446.6 kB / 0.4889 GB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.1878, allocations: 4 kB / 0.4889 GB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005527/0.1883, allocations: 250.2 kB / 0.4892 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006728/0.189, allocations: 109 kB / 0.4893 GB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007337/0.1964, allocations: 4.904 MB / 0.4941 GB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004939/0.1969, allocations: 0.8802 MB / 0.4949 GB, free: 9.676 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003019/0.1972, allocations: 72.52 kB / 0.495 GB, free: 9.602 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/0.1975, allocations: 203.4 kB / 0.4952 GB, free: 9.402 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1976, allocations: 0 / 0.4952 GB, free: 9.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2577/0.4552, allocations: 11.76 MB / 0.5067 GB, free: 41.55 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.4555, allocations: 221.5 kB / 0.5069 GB, free: 41.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.138/2.593, allocations: 0 / 0.5069 GB, free: 41.3 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe 2>&1)