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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002482/0.002482, allocations: 219 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.591/1.591, allocations: 230.6 MB / 254.8 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2355/0.2355, allocations: 44.9 MB / 355.8 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 67.91 kB / 0.4885 GB, free: 11.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1234, allocations: 65.42 MB / 0.5524 GB, free: 10.11 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.00341/0.1268, allocations: 1.915 MB / 0.5543 GB, free: 8.184 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.1289, allocations: 1.192 MB / 0.5555 GB, free: 6.984 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.926e-05/0.129, allocations: 3.938 kB / 0.5555 GB, free: 6.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006334/0.1296, allocations: 183.4 kB / 0.5556 GB, free: 6.801 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004542/0.1301, allocations: 171.3 kB / 0.5558 GB, free: 6.633 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/0.1305, allocations: 159.6 kB / 0.556 GB, free: 6.477 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003647/0.1309, allocations: 279.3 kB / 0.5562 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.131, allocations: 25.95 kB / 0.5562 GB, free: 6.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.1312, allocations: 119.6 kB / 0.5564 GB, free: 6.062 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.1313, allocations: 123.5 kB / 0.5565 GB, free: 5.941 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.013e-05/0.1314, allocations: 16 kB / 0.5565 GB, free: 5.926 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.1316, allocations: 71.95 kB / 0.5566 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.934e-05/0.1316, allocations: 55.83 kB / 0.5566 GB, free: 5.801 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.1318, allocations: 115.4 kB / 0.5567 GB, free: 5.688 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004109/0.1322, allocations: 286.8 kB / 0.557 GB, free: 5.406 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1322, allocations: 0 / 0.557 GB, free: 5.406 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1322, allocations: 0 / 0.557 GB, free: 5.406 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1322, allocations: 7.922 kB / 0.557 GB, free: 5.398 MB / 414.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.001167/0.1334, allocations: 0.6686 MB / 0.5577 GB, free: 4.656 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.1334, allocations: 8.031 kB / 0.5577 GB, free: 4.648 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.6e-05/0.1334, allocations: 8.188 kB / 0.5577 GB, free: 4.641 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.104e-05/0.1335, allocations: 46.73 kB / 0.5577 GB, free: 4.586 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.294e-05/0.1336, allocations: 28.8 kB / 0.5577 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.134, allocations: 287.7 kB / 0.558 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.1341, allocations: 101.2 kB / 0.5581 GB, free: 4.121 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.54e-05/0.1342, allocations: 16 kB / 0.5581 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003497/0.1345, allocations: 153.9 kB / 0.5583 GB, free: 3.938 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.1345, allocations: 0 / 0.5583 GB, free: 3.938 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.1345, allocations: 4 kB / 0.5583 GB, free: 3.934 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1345, allocations: 4 kB / 0.5583 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/0.1348, allocations: 99.86 kB / 0.5584 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009154/0.1357, allocations: 0.6024 MB / 0.559 GB, free: 3.172 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003792/0.1361, allocations: 159.9 kB / 0.5591 GB, free: 2.988 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.1363, allocations: 70.48 kB / 0.5592 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.318e-05/0.1363, allocations: 4 kB / 0.5592 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005263/0.1368, allocations: 429.1 kB / 0.5596 GB, free: 2.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.1368, allocations: 0 / 0.5596 GB, free: 2.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009768/0.1378, allocations: 454.4 kB / 0.56 GB, free: 1.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/0.138, allocations: 225.6 kB / 0.5603 GB, free: 1.672 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003826/0.1383, allocations: 330.5 kB / 0.5606 GB, free: 1.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.1384, allocations: 33.7 kB / 0.5606 GB, free: 1.301 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1385, allocations: 128.7 kB / 0.5607 GB, free: 1.172 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.065e-05/0.1385, allocations: 55.58 kB / 0.5608 GB, free: 1.117 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.728e-05/0.1386, allocations: 49.7 kB / 0.5608 GB, free: 1.062 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000291/0.1389, allocations: 342.8 kB / 0.5612 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.1391, allocations: 59.95 kB / 0.5612 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.1393, allocations: 142.2 kB / 0.5613 GB, free: 496 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000443/0.1397, allocations: 362.9 kB / 0.5617 GB, free: 64 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1397, allocations: 0 / 0.5617 GB, free: 64 kB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006081/0.1403, allocations: 354.3 kB / 0.562 GB, free: 15.69 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.684e-05/0.1404, allocations: 95.12 kB / 0.5621 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1404, allocations: 4 kB / 0.5621 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1405, allocations: 4 kB / 0.5621 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.1406, allocations: 23.92 kB / 0.5621 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.1406, allocations: 0 / 0.5621 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.1407, allocations: 36.09 kB / 0.5622 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.1407, allocations: 8 kB / 0.5622 GB, free: 15.51 MB / 430.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,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002525/0.141, allocations: 268 kB / 0.5624 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.213e-05/0.1411, allocations: 39.73 kB / 0.5625 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.385e-05/0.1411, allocations: 25.7 kB / 0.5625 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1411, allocations: 4 kB / 0.5625 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1411, allocations: 0 / 0.5625 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1411, allocations: 7.984 kB / 0.5625 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003229/0.1415, allocations: 297.4 kB / 0.5628 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1415, allocations: 0 / 0.5628 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.135e-05/0.1415, allocations: 7.938 kB / 0.5628 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1415, allocations: 0 / 0.5628 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.1415, allocations: 12 kB / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1415, allocations: 4 kB / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1415, allocations: 3.938 kB / 0.5628 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007032/0.1422, allocations: 450.6 kB / 0.5633 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.27e-05/0.1423, allocations: 104.9 kB / 0.5634 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.1424, allocations: 8 kB / 0.5634 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.1425, allocations: 19.98 kB / 0.5634 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.549e-05/0.1426, allocations: 23.91 kB / 0.5634 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.1426, allocations: 12 kB / 0.5634 GB, free: 14.11 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002666/0.1429, allocations: 249.9 kB / 0.5637 GB, free: 13.86 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1429, allocations: 0 / 0.5637 GB, free: 13.86 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003391/0.1432, allocations: 71.89 kB / 0.5637 GB, free: 13.79 MB / 430.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002514/0.1457, allocations: 1.304 MB / 0.565 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006286/0.1464, allocations: 353.8 kB / 0.5653 GB, free: 12.21 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1464, allocations: 4 kB / 0.5653 GB, free: 12.21 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003478/0.1467, allocations: 266.5 kB / 0.5656 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.1471, allocations: 60.47 kB / 0.5657 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.1513, allocations: 2.866 MB / 0.5685 GB, free: 8.816 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.1517, allocations: 0.7591 MB / 0.5692 GB, free: 8.031 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.1519, allocations: 21.55 kB / 0.5692 GB, free: 8.012 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.152, allocations: 67.41 kB / 0.5693 GB, free: 7.945 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.152, allocations: 4 kB / 0.5693 GB, free: 7.941 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.1763, allocations: 6.316 MB / 0.5755 GB, free: 1.699 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.616/8.793, allocations: 12 kB / 0.5755 GB, free: 1.688 MB / 430.1 MB " [Timeout remaining time 651] (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/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 --stepSize=0.00219124 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.067437555000652] Failed to read output from testmodel.py, exit status != 0: ['time', 'booleanTable.y', 'onDelay1.delaySignal', 'onDelay1.t_next', 'onDelay1.u', 'onDelay2.delaySignal', 'onDelay2.t_next', 'onDelay2.u', 'onDelay3.delaySignal', 'onDelay3.t_next', 'onDelay3.u'] 8.987634246994276 9.014821636 8.8776905 Calling exit ...