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.001512/0.001512, allocations: 114.2 kB / 17.33 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001715/0.001715, allocations: 209.8 kB / 18.27 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 46.11 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 78.81 kB / 417.2 MB, free: 20.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1136, allocations: 62.44 MB / 479.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004556/0.1182, allocations: 2.878 MB / 482.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002806/0.121, allocations: 1.617 MB / 484.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003711/0.1214, allocations: 7.938 kB / 484.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.1225, allocations: 311.1 kB / 484.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007543/0.1232, allocations: 254.3 kB / 484.6 MB, free: 476 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008622/0.1241, allocations: 331.5 kB / 485 MB, free: 144 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000812/0.1249, allocations: 0.6754 MB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003845/0.1253, allocations: 231 kB / 485.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004746/0.1258, allocations: 298.9 kB / 486.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003915/0.1262, allocations: 322.6 kB / 486.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1263, allocations: 52 kB / 486.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002662/0.1266, allocations: 119.9 kB / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.1268, allocations: 175.4 kB / 486.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002964/0.1271, allocations: 286.3 kB / 487.1 MB, free: 14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007566/0.1278, allocations: 0.6659 MB / 487.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1279, allocations: 0 / 487.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1279, allocations: 0 / 487.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.149e-05/0.1279, allocations: 0 / 487.8 MB, free: 13.34 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.002055/0.13, allocations: 1.03 MB / 488.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.13, allocations: 8.031 kB / 488.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.1301, allocations: 82.7 kB / 488.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002788/0.1304, allocations: 80.08 kB / 489 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005855/0.131, allocations: 446.6 kB / 489.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.127e-05/0.131, allocations: 33.38 kB / 489.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.092e-05/0.1311, allocations: 47.94 kB / 489.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000908/0.132, allocations: 476.6 kB / 489.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1321, allocations: 0 / 489.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.29e-05/0.1321, allocations: 23.98 kB / 490 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.1321, allocations: 8 kB / 490 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000762/0.1329, allocations: 327.8 kB / 490.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.1349, allocations: 1.2 MB / 491.5 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.1362, allocations: 497.6 kB / 492 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004395/0.1366, allocations: 194.9 kB / 492.2 MB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.345e-05/0.1367, allocations: 12.36 kB / 492.2 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007697/0.1375, allocations: 345.8 kB / 492.5 MB, free: 8.352 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 3.436e-06/0.1375, allocations: 0 / 492.5 MB, free: 8.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.001592/0.1391, allocations: 0.6389 MB / 493.2 MB, free: 7.707 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.407e-05/0.1392, allocations: 166.7 kB / 493.3 MB, free: 7.508 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006629/0.1399, allocations: 0.5523 MB / 493.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.054e-05/0.14, allocations: 49.69 kB / 493.9 MB, free: 6.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.1402, allocations: 253.4 kB / 494.2 MB, free: 6.641 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.1403, allocations: 130.3 kB / 494.3 MB, free: 6.512 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.1405, allocations: 126.3 kB / 494.4 MB, free: 6.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1407, allocations: 366.8 kB / 494.8 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004492/0.1411, allocations: 177.2 kB / 494.9 MB, free: 5.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005261/0.1417, allocations: 271.5 kB / 495.2 MB, free: 5.547 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007613/0.1424, allocations: 326.9 kB / 495.5 MB, free: 5.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1425, allocations: 3.938 kB / 495.5 MB, free: 5.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001085/0.1436, allocations: 0.4982 MB / 496 MB, free: 4.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1436, allocations: 6.656 kB / 496 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.1436, allocations: 4 kB / 496 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1436, allocations: 7.938 kB / 496.1 MB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.1439, allocations: 59.89 kB / 496.1 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.1439, allocations: 7.938 kB / 496.1 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004165/0.1444, allocations: 99.55 kB / 496.2 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.1444, allocations: 16 kB / 496.2 MB, free: 4.508 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.0002834/0.1447, allocations: 223 kB / 496.4 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.38e-05/0.1448, allocations: 55.28 kB / 496.5 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/0.1449, allocations: 61.42 kB / 496.6 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.1449, allocations: 8 kB / 496.6 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.145, allocations: 3.938 kB / 496.6 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.145, allocations: 3.984 kB / 496.6 MB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.147, allocations: 1.119 MB / 497.7 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.147, allocations: 240 / 497.7 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.1472, allocations: 39.91 kB / 497.7 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1472, allocations: 0 / 497.7 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.1472, allocations: 15.98 kB / 497.8 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.1472, allocations: 0 / 497.8 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1472, allocations: 12.05 kB / 497.8 MB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.1483, allocations: 0.593 MB / 498.4 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.1485, allocations: 124.5 kB / 498.5 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.772e-05/0.1486, allocations: 12 kB / 498.5 MB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004035/0.149, allocations: 63.92 kB / 498.6 MB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.1492, allocations: 80.22 kB / 498.6 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.795e-05/0.1492, allocations: 23.98 kB / 498.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004172/0.1497, allocations: 379.1 kB / 499 MB, free: 1.609 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1497, allocations: 4 kB / 499 MB, free: 1.605 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004844/0.1502, allocations: 147.5 kB / 499.2 MB, free: 1.461 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.002352/0.1525, allocations: 1.468 MB / 0.4889 GB, free: 112 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.1537, allocations: 478.5 kB / 0.4894 GB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1537, allocations: 12 kB / 0.4894 GB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005103/0.1542, allocations: 242.3 kB / 0.4896 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006719/0.1549, allocations: 112.2 kB / 0.4897 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006952/0.1619, allocations: 4.914 MB / 0.4945 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004796/0.1624, allocations: 0.88 MB / 0.4954 GB, free: 9.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000289/0.1627, allocations: 72.34 kB / 0.4954 GB, free: 9.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.163, allocations: 203.4 kB / 0.4956 GB, free: 9.066 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.163, allocations: 3.938 kB / 0.4956 GB, free: 9.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2023/0.3654, allocations: 12.13 MB / 0.5075 GB, free: 42.69 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001359/0.3656, allocations: 216.3 kB / 0.5077 GB, free: 42.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.181/2.546, allocations: 0 / 0.5077 GB, free: 42.44 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)