Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.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.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009716/0.0009715, allocations: 100.1 kB / 17.01 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001225, allocations: 197.8 kB / 17.91 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 45.91 MB / 344.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002587, allocations: 8 kB / 418.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1328, allocations: 63.47 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002281/0.1351, allocations: 1.585 MB / 483.2 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.1367, allocations: 1.096 MB / 484.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.1369, allocations: 4 kB / 484.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000599/0.1375, allocations: 171.6 kB / 484.5 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003067/0.1378, allocations: 139.5 kB / 484.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.1382, allocations: 171.2 kB / 484.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000268/0.1385, allocations: 239.3 kB / 485 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.1386, allocations: 29.67 kB / 485.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.1387, allocations: 91.62 kB / 485.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.1389, allocations: 111.6 kB / 485.3 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.1389, allocations: 8 kB / 485.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.1391, allocations: 51.91 kB / 485.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.238e-05/0.1391, allocations: 55.83 kB / 485.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.804e-05/0.1392, allocations: 61.64 kB / 485.4 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002549/0.1395, allocations: 211.8 kB / 485.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1395, allocations: 7.938 kB / 485.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.1395, allocations: 3.938 kB / 485.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.1395, allocations: 3.938 kB / 485.7 MB, free: 1.223 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008258/0.1404, allocations: 0.6143 MB / 486.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1404, allocations: 12.03 kB / 486.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.049e-05/0.1405, allocations: 42.56 kB / 486.3 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.204e-05/0.1405, allocations: 27.72 kB / 486.3 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.1409, allocations: 282.3 kB / 486.6 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.494e-05/0.141, allocations: 93.09 kB / 486.7 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.141, allocations: 19.98 kB / 486.7 MB, free: 0 / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.1414, allocations: 161.6 kB / 486.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.1414, allocations: 0 / 486.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.1414, allocations: 4 kB / 486.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.1414, allocations: 4 kB / 486.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002137/0.1416, allocations: 95.88 kB / 487 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007731/0.1424, allocations: 0.6141 MB / 487.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.1428, allocations: 168 kB / 487.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.1429, allocations: 106.5 kB / 487.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.143, allocations: 3.984 kB / 487.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003992/0.1434, allocations: 437 kB / 488.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.1434, allocations: 4 kB / 488.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007584/0.1442, allocations: 442.6 kB / 488.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.947e-05/0.1443, allocations: 221.5 kB / 489 MB, free: 13.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003123/0.1446, allocations: 326.6 kB / 489.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.1446, allocations: 37.7 kB / 489.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.702e-05/0.1447, allocations: 136.6 kB / 489.4 MB, free: 13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.644e-05/0.1448, allocations: 55.34 kB / 489.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.229e-05/0.1448, allocations: 4 kB / 489.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1449, allocations: 334.8 kB / 489.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.1451, allocations: 60.16 kB / 489.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.1453, allocations: 147.2 kB / 490 MB, free: 12.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.1455, allocations: 157.1 kB / 490.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1455, allocations: 0 / 490.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004684/0.146, allocations: 346.2 kB / 490.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.958e-05/0.146, allocations: 97.31 kB / 490.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.146, allocations: 4 kB / 490.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1461, allocations: 7.953 kB / 490.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.911e-05/0.1462, allocations: 23.92 kB / 490.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.1462, allocations: 0 / 490.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.1463, allocations: 31.83 kB / 490.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.1463, allocations: 16 kB / 490.7 MB, free: 11.63 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002101/0.1466, allocations: 273.3 kB / 491 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.1466, allocations: 31.72 kB / 491 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.926e-05/0.1467, allocations: 25.7 kB / 491 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1467, allocations: 0 / 491 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.1467, allocations: 7.953 kB / 491 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.1467, allocations: 0 / 491 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.1469, allocations: 297.4 kB / 491.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.147, allocations: 0 / 491.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.806e-05/0.147, allocations: 7.938 kB / 491.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.147, allocations: 8.031 kB / 491.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.147, allocations: 11.98 kB / 491.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.147, allocations: 4 kB / 491.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.147, allocations: 0 / 491.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.1476, allocations: 451.3 kB / 491.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.182e-05/0.1477, allocations: 108.8 kB / 491.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.1478, allocations: 12 kB / 491.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1479, allocations: 19.98 kB / 491.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.318e-05/0.148, allocations: 31.86 kB / 492 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.148, allocations: 8 kB / 492 MB, free: 10.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000225/0.1482, allocations: 241.9 kB / 492.2 MB, free: 10 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1483, allocations: 0 / 492.2 MB, free: 10 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.1486, allocations: 71.91 kB / 492.3 MB, free: 9.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.001633/0.1502, allocations: 1.295 MB / 493.6 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005128/0.1507, allocations: 390 kB / 494 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1507, allocations: 0 / 494 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003394/0.1511, allocations: 346.5 kB / 494.3 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.1514, allocations: 55.78 kB / 494.3 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.1538, allocations: 1.513 MB / 495.9 MB, free: 6.266 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.1542, allocations: 0.7521 MB / 496.6 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.616e-05/0.1543, allocations: 29.78 kB / 496.6 MB, free: 5.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.1544, allocations: 67.41 kB / 496.7 MB, free: 5.395 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1544, allocations: 3.938 kB / 496.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01676/0.1712, allocations: 5.481 MB / 0.4904 GB, free: 20 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002793/0.1715, allocations: 216.9 kB / 0.4906 GB, free: 15.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.123, allocations: 0 / 0.4906 GB, free: 15.77 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat