Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008607/0.000861, allocations: 98.97 kB / 17 MB, free: 6.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000798/0.0007981, allocations: 181.6 kB / 17.89 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 223.2 MB / 241.9 MB, free: 368 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2307/0.2307, allocations: 44.22 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002997, allocations: 12 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1136, allocations: 61.92 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.002989/0.1166, allocations: 2.282 MB / 473.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.1187, allocations: 1.306 MB / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.1189, allocations: 8 kB / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007921/0.1197, allocations: 286.2 kB / 475.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004162/0.1202, allocations: 199.3 kB / 475.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008031/0.121, allocations: 332.6 kB / 476 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005899/0.1216, allocations: 0.5581 MB / 476.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.1219, allocations: 174.7 kB / 476.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002713/0.1222, allocations: 215.1 kB / 477 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.1224, allocations: 246.9 kB / 477.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.688e-05/0.1225, allocations: 16 kB / 477.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.1227, allocations: 67.91 kB / 477.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.1228, allocations: 115.6 kB / 477.4 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1229, allocations: 117.4 kB / 477.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000484/0.1234, allocations: 463.1 kB / 478 MB, free: 7.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1234, allocations: 0 / 478 MB, free: 7.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1234, allocations: 0 / 478 MB, free: 7.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.958e-06/0.1235, allocations: 4 kB / 478 MB, free: 7.254 MB / 350.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.001713/0.1252, allocations: 0.9056 MB / 478.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.1252, allocations: 8.031 kB / 478.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.1254, allocations: 82.52 kB / 479 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.1255, allocations: 63.25 kB / 479 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.1261, allocations: 405.8 kB / 479.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.571e-05/0.1261, allocations: 36.95 kB / 479.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.54e-05/0.1262, allocations: 47.98 kB / 479.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008705/0.1271, allocations: 459.8 kB / 480 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.1271, allocations: 0 / 480 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.21e-05/0.1271, allocations: 16 kB / 480 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.1272, allocations: 16 kB / 480 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007715/0.1279, allocations: 339.7 kB / 480.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.1297, allocations: 1.106 MB / 481.4 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.1309, allocations: 497.7 kB / 481.9 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004148/0.1313, allocations: 190.1 kB / 482.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.825e-05/0.1314, allocations: 8.438 kB / 482.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006266/0.132, allocations: 297.3 kB / 482.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 3.496e-06/0.132, allocations: 3.984 kB / 482.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001452/0.1335, allocations: 0.6389 MB / 483.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.939e-05/0.1336, allocations: 137 kB / 483.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005696/0.1342, allocations: 0.5094 MB / 483.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.261e-05/0.1342, allocations: 49.64 kB / 483.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.1344, allocations: 249.4 kB / 484 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.1346, allocations: 118.5 kB / 484.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.842e-05/0.1346, allocations: 16 kB / 484.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1348, allocations: 358.8 kB / 484.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.1352, allocations: 173 kB / 484.6 MB, free: 328 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.1356, allocations: 272.9 kB / 484.9 MB, free: 32 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003726/0.136, allocations: 146.2 kB / 485.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.136, allocations: 0 / 485.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009477/0.137, allocations: 0.4905 MB / 485.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.137, allocations: 4 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.137, allocations: 0 / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.1371, allocations: 4 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.1374, allocations: 71.83 kB / 485.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.1374, allocations: 4 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.1377, allocations: 103.5 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.1378, allocations: 19.95 kB / 485.7 MB, free: 15.18 MB / 366.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 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,$PRE.pre1.u,pre1.u,pre1.y,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.u,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00026/0.138, allocations: 219.5 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.1381, allocations: 47.44 kB / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.1382, allocations: 65.23 kB / 486.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.1383, allocations: 12 kB / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1383, allocations: 0 / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1383, allocations: 3.984 kB / 486.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.1401, allocations: 1.103 MB / 487.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1401, allocations: 0 / 487.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.1402, allocations: 43.91 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.1403, allocations: 0 / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.1403, allocations: 15.98 kB / 487.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1403, allocations: 4 kB / 487.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1403, allocations: 0 / 487.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009769/0.1413, allocations: 0.5697 MB / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.1414, allocations: 132.4 kB / 487.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.327e-05/0.1415, allocations: 12 kB / 488 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.1418, allocations: 75.94 kB / 488 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.142, allocations: 80.25 kB / 488.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.1421, allocations: 23.92 kB / 488.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003753/0.1424, allocations: 359.1 kB / 488.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1425, allocations: 0 / 488.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004188/0.1429, allocations: 123.7 kB / 488.6 MB, free: 12.22 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002103/0.145, allocations: 1.465 MB / 490.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009315/0.1459, allocations: 457.5 kB / 490.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.1459, allocations: 0 / 490.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004701/0.1464, allocations: 234.5 kB / 490.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.147, allocations: 85.5 kB / 490.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004592/0.1516, allocations: 2.906 MB / 493.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.152, allocations: 0.8643 MB / 494.6 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.1523, allocations: 71.41 kB / 494.7 MB, free: 6.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002778/0.1526, allocations: 191.3 kB / 494.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1526, allocations: 0 / 494.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/0.1762, allocations: 10.55 MB / 0.4936 GB, free: 11.64 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002845/0.1765, allocations: 205.3 kB / 0.4938 GB, free: 11.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.219/2.396, allocations: 0 / 0.4938 GB, free: 11.39 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat