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.001156/0.001156, allocations: 93.95 kB / 16.98 MB, free: 6.398 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.001399/0.001399, allocations: 184.1 kB / 17.87 MB, free: 5.957 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.501/1.501, allocations: 223.2 MB / 241.8 MB, free: 14.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2119/0.2119, allocations: 44.23 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003213/0.0003215, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1257, allocations: 61.93 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.003885/0.1296, allocations: 2.263 MB / 473.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002713/0.1324, allocations: 1.279 MB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002649/0.1327, allocations: 7.938 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008909/0.1336, allocations: 283.1 kB / 475.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004412/0.134, allocations: 199.5 kB / 475.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009023/0.1349, allocations: 320.7 kB / 475.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005109/0.1354, allocations: 380.2 kB / 476.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003842/0.1358, allocations: 178.7 kB / 476.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003183/0.1362, allocations: 207.1 kB / 476.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002872/0.1365, allocations: 230.9 kB / 476.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.1365, allocations: 23.94 kB / 476.9 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.1367, allocations: 59.91 kB / 476.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.1369, allocations: 115.6 kB / 477 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.137, allocations: 109.4 kB / 477.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004832/0.1375, allocations: 463.2 kB / 477.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1375, allocations: 0 / 477.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1375, allocations: 0 / 477.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1375, allocations: 0 / 477.6 MB, free: 7.578 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.001755/0.1393, allocations: 0.9056 MB / 478.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.1393, allocations: 12.03 kB / 478.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.1395, allocations: 78.52 kB / 478.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.1396, allocations: 71.25 kB / 478.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006277/0.1402, allocations: 401.8 kB / 479.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.1403, allocations: 44.89 kB / 479.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.956e-05/0.1403, allocations: 40 kB / 479.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008502/0.1412, allocations: 459.8 kB / 479.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1412, allocations: 0 / 479.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.1413, allocations: 16 kB / 479.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.1413, allocations: 12 kB / 479.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007642/0.142, allocations: 335.8 kB / 479.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.1439, allocations: 1.118 MB / 481.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.1452, allocations: 497.7 kB / 481.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1452, allocations: 8.422 kB / 481.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006105/0.1458, allocations: 297.3 kB / 481.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.204e-06/0.1458, allocations: 0 / 481.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001495/0.1473, allocations: 0.635 MB / 482.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.891e-05/0.1474, allocations: 141 kB / 482.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005951/0.148, allocations: 0.5055 MB / 483.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/0.1481, allocations: 45.7 kB / 483.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.1483, allocations: 245.4 kB / 483.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.1484, allocations: 122.4 kB / 483.5 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.758e-05/0.1485, allocations: 12 kB / 483.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1486, allocations: 370.7 kB / 483.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/0.149, allocations: 169 kB / 484.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004569/0.1495, allocations: 260.9 kB / 484.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.1499, allocations: 158.1 kB / 484.5 MB, free: 416 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1499, allocations: 0 / 484.5 MB, free: 416 kB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009326/0.1508, allocations: 490.3 kB / 485 MB, free: 15.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1509, allocations: 4 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.567e-06/0.1509, allocations: 7.984 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1509, allocations: 0 / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.1512, allocations: 75.89 kB / 485 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.1512, allocations: 7.938 kB / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003677/0.1516, allocations: 103.5 kB / 485.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.181e-05/0.1516, allocations: 16 kB / 485.2 MB, free: 15.71 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.0002494/0.1519, allocations: 215.5 kB / 485.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/0.152, allocations: 47.44 kB / 485.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.1521, allocations: 69.17 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.1521, allocations: 4 kB / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.1521, allocations: 0 / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.1521, allocations: 3.984 kB / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001728/0.1539, allocations: 1.103 MB / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1539, allocations: 11.94 kB / 486.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001664/0.1541, allocations: 47.91 kB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.1541, allocations: 4 kB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.159e-05/0.1541, allocations: 15.98 kB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.1541, allocations: 0 / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1541, allocations: 0 / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1551, allocations: 0.5737 MB / 487.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.1552, allocations: 128.4 kB / 487.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.651e-05/0.1553, allocations: 16 kB / 487.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.1557, allocations: 75.94 kB / 487.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.1559, allocations: 72.31 kB / 487.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.1559, allocations: 19.98 kB / 487.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003916/0.1563, allocations: 359.1 kB / 487.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1563, allocations: 0 / 487.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004233/0.1568, allocations: 127.6 kB / 488 MB, free: 12.74 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.002238/0.159, allocations: 1.464 MB / 489.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009952/0.16, allocations: 449.5 kB / 489.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.16, allocations: 0 / 489.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004855/0.1605, allocations: 242.5 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.161, allocations: 72.59 kB / 490.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004765/0.1658, allocations: 3.165 MB / 493.4 MB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005128/0.1663, allocations: 0.8759 MB / 494.3 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002754/0.1666, allocations: 75.39 kB / 494.4 MB, free: 6.465 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003072/0.1669, allocations: 187.4 kB / 494.5 MB, free: 6.281 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.167, allocations: 0 / 494.5 MB, free: 6.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.1935, allocations: 10.52 MB / 0.4932 GB, free: 11.91 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/0.1938, allocations: 196.6 kB / 0.4934 GB, free: 11.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.054/2.248, allocations: 0 / 0.4934 GB, free: 11.67 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