Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.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.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",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.0009818/0.000982, allocations: 98.23 kB / 16.99 MB, free: 5.941 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.001257/0.001257, allocations: 183.4 kB / 17.87 MB, free: 5.609 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.409/1.409, allocations: 223.2 MB / 241.8 MB, free: 388 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.1997/0.1997, allocations: 44.23 MB / 337.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004175/0.0004176, allocations: 8.688 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1351, allocations: 61.91 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002119/0.1373, allocations: 1.538 MB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.1386, allocations: 0.9322 MB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.666e-05/0.1387, allocations: 0 / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005564/0.1393, allocations: 163.6 kB / 474.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/0.1395, allocations: 111.7 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004027/0.1399, allocations: 159 kB / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002072/0.1401, allocations: 163.7 kB / 474.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.1402, allocations: 25.67 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1404, allocations: 91.73 kB / 474.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.1405, allocations: 95.64 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.1405, allocations: 8 kB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.1406, allocations: 47.84 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.155e-05/0.1407, allocations: 51.89 kB / 474.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.211e-05/0.1408, allocations: 65.58 kB / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.141, allocations: 203.8 kB / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.141, allocations: 0 / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.141, allocations: 0 / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.141, allocations: 0 / 475.2 MB, free: 10.02 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.0007735/0.1418, allocations: 0.626 MB / 475.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1419, allocations: 15.97 kB / 475.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.259e-05/0.1419, allocations: 46.48 kB / 475.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.142, allocations: 27.72 kB / 475.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.1423, allocations: 261.7 kB / 476.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.958e-05/0.1424, allocations: 93.05 kB / 476.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.1424, allocations: 23.94 kB / 476.2 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.1427, allocations: 159.9 kB / 476.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1428, allocations: 0 / 476.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.1428, allocations: 4 kB / 476.4 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1428, allocations: 7.984 kB / 476.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.143, allocations: 95.88 kB / 476.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008046/0.1438, allocations: 0.6102 MB / 477.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.1442, allocations: 179.9 kB / 477.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.1442, allocations: 4 kB / 477.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004685/0.1447, allocations: 437.2 kB / 477.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.402e-06/0.1447, allocations: 0 / 477.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009067/0.1456, allocations: 0.6698 MB / 478.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.1457, allocations: 217.6 kB / 478.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/0.1461, allocations: 316.9 kB / 478.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/0.1461, allocations: 33.7 kB / 479 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1462, allocations: 132.7 kB / 479.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.365e-05/0.1463, allocations: 55.34 kB / 479.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.787e-06/0.1463, allocations: 0 / 479.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1464, allocations: 342.8 kB / 479.5 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.1466, allocations: 64.09 kB / 479.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1468, allocations: 143.2 kB / 479.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.147, allocations: 157 kB / 479.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.147, allocations: 4 kB / 479.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005235/0.1475, allocations: 346.2 kB / 480.2 MB, free: 4.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.4e-05/0.1476, allocations: 97.09 kB / 480.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1476, allocations: 0 / 480.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1476, allocations: 4 kB / 480.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.1478, allocations: 23.92 kB / 480.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.1478, allocations: 4 kB / 480.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.1479, allocations: 36.05 kB / 480.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.1479, allocations: 12 kB / 480.3 MB, free: 4.262 MB / 350.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.0002299/0.1482, allocations: 269.4 kB / 480.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.226e-05/0.1482, allocations: 27.72 kB / 480.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.684e-05/0.1483, allocations: 25.7 kB / 480.7 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.1483, allocations: 4 kB / 480.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.1483, allocations: 4 kB / 480.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.1483, allocations: 3.938 kB / 480.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.1486, allocations: 301.3 kB / 481 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1486, allocations: 0 / 481 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.978e-05/0.1487, allocations: 4.188 kB / 481 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1487, allocations: 11.94 kB / 481 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.1487, allocations: 4 kB / 481 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.1487, allocations: 4 kB / 481 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1487, allocations: 3.938 kB / 481 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000621/0.1493, allocations: 470.8 kB / 481.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.062e-05/0.1494, allocations: 104.8 kB / 481.6 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/0.1495, allocations: 8 kB / 481.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.1496, allocations: 27.98 kB / 481.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.019e-05/0.1497, allocations: 15.98 kB / 481.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.1497, allocations: 15.94 kB / 481.6 MB, free: 2.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002243/0.15, allocations: 232.5 kB / 481.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.15, allocations: 4 kB / 481.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.1503, allocations: 67.92 kB / 481.9 MB, free: 2.535 MB / 350.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.001771/0.1521, allocations: 1.472 MB / 483.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005256/0.1526, allocations: 390 kB / 483.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1526, allocations: 0 / 483.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000341/0.153, allocations: 350.5 kB / 484.1 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.1533, allocations: 48.34 kB / 484.2 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.1562, allocations: 2.816 MB / 487 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.1566, allocations: 0.756 MB / 487.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.1567, allocations: 33.52 kB / 487.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1568, allocations: 59.42 kB / 487.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1568, allocations: 4 kB / 487.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.1753, allocations: 5.366 MB / 493.2 MB, free: 7.285 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002402/0.1756, allocations: 192.7 kB / 493.4 MB, free: 7.051 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.057, allocations: 7.922 kB / 493.4 MB, free: 7.043 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat