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.0008523/0.0008523, allocations: 92.89 kB / 17 MB, free: 6.402 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.0007921/0.0007921, allocations: 179.2 kB / 17.89 MB, free: 5.945 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.37/1.37, allocations: 223.2 MB / 241.9 MB, free: 360 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.2191/0.2191, allocations: 44.22 MB / 337.2 MB, free: 2.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.0003139, allocations: 9.219 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1325, allocations: 61.92 MB / 471.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002205/0.1348, allocations: 1.545 MB / 473.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.1363, allocations: 0.9556 MB / 474.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.1365, allocations: 3.938 kB / 474.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005904/0.1371, allocations: 167.6 kB / 474.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002883/0.1374, allocations: 115.2 kB / 474.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.1378, allocations: 159.7 kB / 474.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002654/0.1381, allocations: 243.3 kB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.1382, allocations: 21.67 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.1383, allocations: 99.66 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.1385, allocations: 107.6 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.1385, allocations: 8 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.1387, allocations: 39.98 kB / 475.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-05/0.1387, allocations: 67.73 kB / 475.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.068e-05/0.1388, allocations: 69.58 kB / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.1391, allocations: 203.8 kB / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1391, allocations: 0 / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1391, allocations: 0 / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1391, allocations: 0 / 475.4 MB, free: 9.848 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.0008937/0.14, allocations: 0.6143 MB / 476 MB, free: 9.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1401, allocations: 12.03 kB / 476 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.094e-05/0.1401, allocations: 42.56 kB / 476.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.962e-05/0.1402, allocations: 27.72 kB / 476.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.1405, allocations: 269.7 kB / 476.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.665e-05/0.1407, allocations: 93.11 kB / 476.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/0.1407, allocations: 15.95 kB / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.141, allocations: 163 kB / 476.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.141, allocations: 0 / 476.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.1411, allocations: 8 kB / 476.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.1411, allocations: 0 / 476.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002561/0.1413, allocations: 91.92 kB / 476.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008198/0.1422, allocations: 0.618 MB / 477.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003384/0.1425, allocations: 175.9 kB / 477.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.1427, allocations: 98.48 kB / 477.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.1428, allocations: 4 kB / 477.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004806/0.1433, allocations: 433.1 kB / 478.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.1433, allocations: 0 / 478.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008257/0.1441, allocations: 446.3 kB / 478.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.1442, allocations: 217.6 kB / 478.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.1446, allocations: 312.9 kB / 479 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.1446, allocations: 37.7 kB / 479 MB, free: 5.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.901e-05/0.1447, allocations: 132.7 kB / 479.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.1448, allocations: 55.34 kB / 479.2 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.1448, allocations: 7.938 kB / 479.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.145, allocations: 342.8 kB / 479.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.1451, allocations: 56.16 kB / 479.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.1453, allocations: 151.1 kB / 479.8 MB, free: 5.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.1455, allocations: 149.1 kB / 479.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1456, allocations: 4 kB / 479.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005208/0.1461, allocations: 342.2 kB / 480.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.283e-05/0.1462, allocations: 99.59 kB / 480.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1462, allocations: 4 kB / 480.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.1462, allocations: 4.219 kB / 480.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1463, allocations: 19.98 kB / 480.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.1463, allocations: 12.25 kB / 480.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.1465, allocations: 31.83 kB / 480.4 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.1465, allocations: 12 kB / 480.4 MB, free: 4.301 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.0002613/0.1468, allocations: 273.5 kB / 480.7 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.1468, allocations: 31.72 kB / 480.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.75e-05/0.1469, allocations: 29.83 kB / 480.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1469, allocations: 7.984 kB / 480.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.1469, allocations: 0 / 480.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1469, allocations: 3.938 kB / 480.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002829/0.1472, allocations: 297.3 kB / 481.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1472, allocations: 0 / 481.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.756e-05/0.1473, allocations: 4 kB / 481.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.1473, allocations: 4 kB / 481.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.1473, allocations: 4 kB / 481.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.1473, allocations: 11.98 kB / 481.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1473, allocations: 0 / 481.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006705/0.148, allocations: 455.3 kB / 481.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.829e-05/0.1481, allocations: 100.8 kB / 481.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.152e-05/0.1482, allocations: 16 kB / 481.6 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.1483, allocations: 19.98 kB / 481.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.084e-05/0.1484, allocations: 23.97 kB / 481.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.322e-05/0.1484, allocations: 11.98 kB / 481.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002376/0.1487, allocations: 232.4 kB / 481.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.1487, allocations: 0 / 481.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003401/0.149, allocations: 63.94 kB / 482 MB, free: 2.605 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.001842/0.1509, allocations: 1.31 MB / 483.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005689/0.1515, allocations: 393.9 kB / 483.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1515, allocations: 0 / 483.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003607/0.1518, allocations: 350.1 kB / 484 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.1522, allocations: 57.14 kB / 484.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002464/0.1547, allocations: 1.489 MB / 485.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.155, allocations: 0.752 MB / 486.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.1551, allocations: 29.53 kB / 486.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.1552, allocations: 67.41 kB / 486.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1553, allocations: 0 / 486.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.1727, allocations: 5.392 MB / 491.8 MB, free: 8.84 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.1729, allocations: 201.2 kB / 492 MB, free: 8.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.144, allocations: 0 / 492 MB, free: 8.602 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