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.001097/0.001097, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001553/0.001553, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2138/0.2138, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 72.97 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1189, allocations: 62.45 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.005276/0.1243, allocations: 2.85 MB / 483 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003311/0.1276, allocations: 1.629 MB / 484.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004175/0.1281, allocations: 11.94 kB / 484.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.1292, allocations: 342.7 kB / 485 MB, free: 360 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008415/0.13, allocations: 286.7 kB / 485.2 MB, free: 72 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009159/0.131, allocations: 370.9 kB / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007434/0.1317, allocations: 0.6754 MB / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003673/0.1321, allocations: 227 kB / 486.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004404/0.1325, allocations: 290.9 kB / 486.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/0.1329, allocations: 322.5 kB / 487.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.133, allocations: 52 kB / 487.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002571/0.1333, allocations: 115.9 kB / 487.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.1335, allocations: 171.5 kB / 487.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002658/0.1338, allocations: 298.2 kB / 487.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006912/0.1345, allocations: 0.6621 MB / 488.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1345, allocations: 0 / 488.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1345, allocations: 4 kB / 488.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.1345, allocations: 0 / 488.4 MB, free: 12.91 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.001911/0.1365, allocations: 1.03 MB / 489.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.1365, allocations: 12.03 kB / 489.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.422e-05/0.1366, allocations: 74.72 kB / 489.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002298/0.1368, allocations: 80.08 kB / 489.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005322/0.1374, allocations: 442.7 kB / 490 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/0.1374, allocations: 41.36 kB / 490 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.137e-05/0.1375, allocations: 51.94 kB / 490.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008229/0.1383, allocations: 472.6 kB / 490.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.1383, allocations: 0 / 490.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.037e-05/0.1384, allocations: 16 kB / 490.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.1384, allocations: 16 kB / 490.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007302/0.1391, allocations: 331.7 kB / 490.9 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.1409, allocations: 1.2 MB / 492.1 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.1421, allocations: 499.8 kB / 492.6 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004128/0.1426, allocations: 190.9 kB / 492.8 MB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.1426, allocations: 12.38 kB / 492.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006516/0.1433, allocations: 341.9 kB / 493.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 3.667e-06/0.1433, allocations: 0 / 493.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.001493/0.1448, allocations: 0.6505 MB / 493.8 MB, free: 7.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.1449, allocations: 166.7 kB / 493.9 MB, free: 7.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000669/0.1456, allocations: 0.5445 MB / 494.5 MB, free: 6.516 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.916e-05/0.1457, allocations: 45.7 kB / 494.5 MB, free: 6.465 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.1459, allocations: 253.4 kB / 494.8 MB, free: 6.215 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.146, allocations: 134.3 kB / 494.9 MB, free: 6.082 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.1462, allocations: 122.3 kB / 495 MB, free: 5.957 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1464, allocations: 366.8 kB / 495.4 MB, free: 5.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.1468, allocations: 181.1 kB / 495.6 MB, free: 5.414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004978/0.1473, allocations: 271.6 kB / 495.8 MB, free: 5.117 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007133/0.148, allocations: 322.9 kB / 496.1 MB, free: 4.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.148, allocations: 4 kB / 496.2 MB, free: 4.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001032/0.1491, allocations: 0.502 MB / 496.7 MB, free: 4.277 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.1491, allocations: 4 kB / 496.7 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1491, allocations: 0 / 496.7 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1491, allocations: 4 kB / 496.7 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002922/0.1494, allocations: 71.92 kB / 496.7 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.1494, allocations: 4 kB / 496.7 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004064/0.1499, allocations: 91.41 kB / 496.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.1499, allocations: 16 kB / 496.8 MB, free: 4.09 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.0002554/0.1502, allocations: 226.9 kB / 497.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.139e-05/0.1503, allocations: 59.28 kB / 497.1 MB, free: 3.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001227/0.1504, allocations: 65.41 kB / 497.2 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1504, allocations: 4 kB / 497.2 MB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.1504, allocations: 4 kB / 497.2 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1504, allocations: 3.984 kB / 497.2 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.1523, allocations: 1.115 MB / 498.3 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1523, allocations: 64 / 498.3 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.1525, allocations: 43.91 kB / 498.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.1525, allocations: 7.984 kB / 498.4 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.1525, allocations: 15.98 kB / 498.4 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.1526, allocations: 4 kB / 498.4 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1526, allocations: 0 / 498.4 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.1537, allocations: 0.5968 MB / 499 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1538, allocations: 124.5 kB / 499.1 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.844e-05/0.1539, allocations: 19.94 kB / 499.1 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003916/0.1543, allocations: 55.92 kB / 499.2 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.1545, allocations: 76.34 kB / 499.2 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-05/0.1545, allocations: 23.98 kB / 499.3 MB, free: 1.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004359/0.1549, allocations: 387.1 kB / 499.6 MB, free: 1.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.155, allocations: 0 / 499.6 MB, free: 1.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004668/0.1554, allocations: 139.5 kB / 499.8 MB, free: 1.039 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.002298/0.1577, allocations: 1.476 MB / 0.4895 GB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.1591, allocations: 482.3 kB / 0.49 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1591, allocations: 0 / 0.49 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005108/0.1596, allocations: 238.4 kB / 0.4902 GB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006418/0.1602, allocations: 113.2 kB / 0.4903 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007351/0.1676, allocations: 4.751 MB / 0.4949 GB, free: 9.988 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006494/0.1683, allocations: 0.88 MB / 0.4958 GB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003025/0.1686, allocations: 72.33 kB / 0.4959 GB, free: 9.012 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003734/0.169, allocations: 203.4 kB / 0.4961 GB, free: 8.812 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.169, allocations: 0 / 0.4961 GB, free: 8.812 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2542/0.4232, allocations: 12.63 MB / 0.5084 GB, free: 41.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.988/9.412, allocations: 9.234 kB / 0.5084 GB, free: 41.45 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)