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.0009269/0.0009268, allocations: 94.55 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 202.2 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1961/0.1961, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000451/0.0004512, allocations: 11.98 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1309, allocations: 63.56 MB / 483.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.003409/0.1344, allocations: 2.492 MB / 485.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003053/0.1375, allocations: 1.586 MB / 487.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004505/0.138, allocations: 11.94 kB / 487.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.139, allocations: 302.9 kB / 487.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008349/0.1398, allocations: 247.1 kB / 487.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.1409, allocations: 326.7 kB / 488.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.142, allocations: 0.6598 MB / 488.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004925/0.1425, allocations: 203 kB / 489 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005802/0.1431, allocations: 238.9 kB / 489.2 MB, free: 14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004783/0.1436, allocations: 258.7 kB / 489.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.1437, allocations: 24 kB / 489.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002708/0.144, allocations: 75.91 kB / 489.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.1442, allocations: 135.4 kB / 489.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000324/0.1446, allocations: 272 kB / 490 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007355/0.1453, allocations: 0.6228 MB / 490.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1453, allocations: 4 kB / 490.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1453, allocations: 0 / 490.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.344e-05/0.1453, allocations: 0 / 490.6 MB, free: 12.61 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.001942/0.1473, allocations: 0.9446 MB / 491.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.1474, allocations: 8.875 kB / 491.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.1475, allocations: 86.66 kB / 491.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002746/0.1478, allocations: 84.08 kB / 491.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006026/0.1484, allocations: 442.7 kB / 492.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.843e-05/0.1484, allocations: 45.3 kB / 492.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/0.1485, allocations: 43.94 kB / 492.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009288/0.1495, allocations: 488.6 kB / 492.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.1495, allocations: 0 / 492.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.818e-05/0.1495, allocations: 20 kB / 492.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1496, allocations: 12 kB / 492.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008325/0.1504, allocations: 347.8 kB / 493.1 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1525, allocations: 1.219 MB / 494.3 MB, free: 8.719 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.1539, allocations: 0.525 MB / 494.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004437/0.1543, allocations: 202.9 kB / 495 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.426e-05/0.1544, allocations: 16.36 kB / 495 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000651/0.155, allocations: 353.8 kB / 495.4 MB, free: 7.594 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.335e-06/0.155, allocations: 0 / 495.4 MB, free: 7.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.001511/0.1566, allocations: 0.6662 MB / 496 MB, free: 6.922 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.353e-05/0.1567, allocations: 158.7 kB / 496.2 MB, free: 6.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006508/0.1573, allocations: 0.5524 MB / 496.7 MB, free: 6.168 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-05/0.1574, allocations: 45.7 kB / 496.8 MB, free: 6.117 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.1576, allocations: 261.3 kB / 497 MB, free: 5.859 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.1577, allocations: 134.2 kB / 497.2 MB, free: 5.727 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.1579, allocations: 77.67 kB / 497.3 MB, free: 5.645 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.158, allocations: 370.8 kB / 497.6 MB, free: 5.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004367/0.1585, allocations: 181.2 kB / 497.8 MB, free: 5.098 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005057/0.159, allocations: 291.5 kB / 498.1 MB, free: 4.781 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007495/0.1597, allocations: 342.9 kB / 498.4 MB, free: 4.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1598, allocations: 0 / 498.4 MB, free: 4.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001031/0.1608, allocations: 0.5099 MB / 498.9 MB, free: 3.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.1608, allocations: 8.094 kB / 498.9 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1608, allocations: 4 kB / 498.9 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.1609, allocations: 4 kB / 498.9 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.1611, allocations: 67.89 kB / 499 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1612, allocations: 7.938 kB / 499 MB, free: 3.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004191/0.1616, allocations: 111.7 kB / 499.1 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/0.1616, allocations: 20 kB / 499.1 MB, free: 3.695 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.0002681/0.1619, allocations: 235 kB / 499.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.946e-05/0.162, allocations: 55.28 kB / 499.4 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.1621, allocations: 65.41 kB / 499.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.1622, allocations: 8 kB / 499.5 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1622, allocations: 0 / 499.5 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1622, allocations: 0 / 499.5 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.164, allocations: 1.142 MB / 0.4889 GB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.164, allocations: 4 kB / 0.4889 GB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.1642, allocations: 39.84 kB / 0.4889 GB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.1642, allocations: 4 kB / 0.489 GB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.1643, allocations: 15.98 kB / 0.489 GB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1643, allocations: 4 kB / 0.489 GB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1643, allocations: 4 kB / 0.489 GB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.1653, allocations: 0.6125 MB / 0.4896 GB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1654, allocations: 136.4 kB / 0.4897 GB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.566e-05/0.1655, allocations: 12 kB / 0.4897 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004224/0.1659, allocations: 83.92 kB / 0.4898 GB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.1661, allocations: 68.34 kB / 0.4899 GB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.164e-05/0.1662, allocations: 23.98 kB / 0.4899 GB, free: 1.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004138/0.1666, allocations: 383.1 kB / 0.4902 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1666, allocations: 3.938 kB / 0.4903 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004813/0.1671, allocations: 139.6 kB / 0.4904 GB, free: 0.5781 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.002306/0.1694, allocations: 1.494 MB / 0.4918 GB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009872/0.1704, allocations: 470.5 kB / 0.4923 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1704, allocations: 4 kB / 0.4923 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.1709, allocations: 250.3 kB / 0.4925 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007128/0.1716, allocations: 106 kB / 0.4926 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00678/0.1784, allocations: 4.963 MB / 0.4975 GB, free: 9.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005675/0.179, allocations: 0.8802 MB / 0.4983 GB, free: 8.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003118/0.1793, allocations: 72.52 kB / 0.4984 GB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.1797, allocations: 207.3 kB / 0.4986 GB, free: 8.109 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1797, allocations: 0 / 0.4986 GB, free: 8.109 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2427/0.4224, allocations: 11.48 MB / 0.5098 GB, free: 39.46 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/0.4227, allocations: 217.9 kB / 0.51 GB, free: 39.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.064/2.487, allocations: 1 kB / 0.51 GB, free: 39.21 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)