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.002169/0.002169, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00219/0.00219, allocations: 212.5 kB / 24.51 MB, free: 3.914 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.491/1.491, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.2487/0.2487, allocations: 44.94 MB / 359.6 MB, free: 6.07 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.002611/0.002611, allocations: 63.89 kB / 0.4938 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3685, allocations: 65.47 MB / 0.5577 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003685/0.3722, allocations: 1.868 MB / 0.5595 GB, free: 5.684 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.3745, allocations: 1.123 MB / 0.5606 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3746, allocations: 4 kB / 0.5606 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007095/0.3754, allocations: 187.4 kB / 0.5608 GB, free: 4.367 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004606/0.3758, allocations: 175.3 kB / 0.561 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004682/0.3763, allocations: 167.2 kB / 0.5611 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.3767, allocations: 283.3 kB / 0.5614 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.3768, allocations: 27.62 kB / 0.5614 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.377, allocations: 111.6 kB / 0.5616 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.3772, allocations: 127.5 kB / 0.5617 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.394e-05/0.3773, allocations: 16 kB / 0.5617 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001917/0.3774, allocations: 75.94 kB / 0.5618 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.3776, allocations: 59.83 kB / 0.5618 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.3777, allocations: 91.52 kB / 0.5619 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000497/0.3782, allocations: 286.9 kB / 0.5622 GB, free: 2.977 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.3782, allocations: 3.938 kB / 0.5622 GB, free: 2.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3782, allocations: 4 kB / 0.5622 GB, free: 2.969 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.3782, allocations: 0 / 0.5622 GB, free: 2.969 MB / 398.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.001147/0.3794, allocations: 0.5972 MB / 0.5628 GB, free: 2.316 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.3794, allocations: 12.03 kB / 0.5628 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.499e-05/0.3794, allocations: 192 / 0.5628 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.247e-05/0.3795, allocations: 50.67 kB / 0.5628 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.3796, allocations: 28.8 kB / 0.5629 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.38, allocations: 225.5 kB / 0.5631 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/0.3801, allocations: 174.3 kB / 0.5632 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/0.3802, allocations: 16 kB / 0.5633 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004645/0.3806, allocations: 275.8 kB / 0.5635 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.3806, allocations: 0 / 0.5635 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.3807, allocations: 4 kB / 0.5635 GB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.3807, allocations: 7.984 kB / 0.5635 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.381, allocations: 181 kB / 0.5637 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009392/0.382, allocations: 0.5586 MB / 0.5642 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004401/0.3824, allocations: 245 kB / 0.5645 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.3827, allocations: 155.6 kB / 0.5646 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.3827, allocations: 4 kB / 0.5646 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006466/0.3833, allocations: 0.5177 MB / 0.5651 GB, free: 15.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.3833, allocations: 0 / 0.5651 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001103/0.3844, allocations: 0.6219 MB / 0.5657 GB, free: 14.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/0.3846, allocations: 221.6 kB / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004847/0.3851, allocations: 329.8 kB / 0.5663 GB, free: 14.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.3851, allocations: 33.7 kB / 0.5663 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.3853, allocations: 136.6 kB / 0.5664 GB, free: 14.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.267e-05/0.3853, allocations: 47.59 kB / 0.5665 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.3854, allocations: 57.69 kB / 0.5665 GB, free: 13.97 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3856, allocations: 338.8 kB / 0.5669 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.3858, allocations: 141.1 kB / 0.567 GB, free: 13.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003503/0.3862, allocations: 298 kB / 0.5673 GB, free: 13.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004632/0.3867, allocations: 366.6 kB / 0.5676 GB, free: 12.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3867, allocations: 0 / 0.5676 GB, free: 12.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006768/0.3873, allocations: 451.6 kB / 0.5681 GB, free: 12.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.152e-05/0.3874, allocations: 97.08 kB / 0.5681 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.3874, allocations: 4 kB / 0.5682 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.3875, allocations: 4 kB / 0.5682 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.3876, allocations: 27.92 kB / 0.5682 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3876, allocations: 0 / 0.5682 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.3877, allocations: 27.88 kB / 0.5682 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.3878, allocations: 16.22 kB / 0.5682 GB, free: 12.02 MB / 414.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.0002832/0.388, allocations: 261.9 kB / 0.5685 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.3881, allocations: 43.78 kB / 0.5685 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004812/0.3886, allocations: 234.7 kB / 0.5687 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3886, allocations: 0 / 0.5687 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3886, allocations: 4 kB / 0.5687 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3886, allocations: 3.984 kB / 0.5687 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003792/0.389, allocations: 244.5 kB / 0.569 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.389, allocations: 4 kB / 0.569 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.389, allocations: 8 kB / 0.569 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.389, allocations: 0 / 0.569 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.999e-05/0.3891, allocations: 12 kB / 0.569 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3891, allocations: 0 / 0.569 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3891, allocations: 7.938 kB / 0.569 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008739/0.3899, allocations: 0.5354 MB / 0.5695 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.408e-05/0.39, allocations: 31.73 kB / 0.5696 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.95e-05/0.3901, allocations: 12 kB / 0.5696 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.3902, allocations: 19.98 kB / 0.5696 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.958e-05/0.3903, allocations: 23.97 kB / 0.5696 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.3903, allocations: 8 kB / 0.5696 GB, free: 10.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002998/0.3906, allocations: 241.2 kB / 0.5699 GB, free: 10.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3906, allocations: 7.938 kB / 0.5699 GB, free: 10.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003593/0.391, allocations: 63.94 kB / 0.5699 GB, free: 10.12 MB / 414.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,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * 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.002858/0.3938, allocations: 1.437 MB / 0.5713 GB, free: 8.801 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008469/0.3947, allocations: 0.5391 MB / 0.5719 GB, free: 8.188 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3947, allocations: 0 / 0.5719 GB, free: 8.188 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004322/0.3951, allocations: 363.2 kB / 0.5722 GB, free: 7.777 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.3955, allocations: 62.94 kB / 0.5723 GB, free: 7.719 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004482/0.4, allocations: 3.337 MB / 0.5755 GB, free: 4.113 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.4002, allocations: 141.1 kB / 0.5757 GB, free: 3.949 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.4003, allocations: 29.62 kB / 0.5757 GB, free: 3.922 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.4004, allocations: 67.59 kB / 0.5757 GB, free: 3.855 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4004, allocations: 0 / 0.5757 GB, free: 3.855 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03596/0.4364, allocations: 6.804 MB / 0.5824 GB, free: 13.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.34, allocations: 18.28 kB / 0.5824 GB, free: 13.12 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.433991653029807] 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'] 12.565876059001312 12.581933033 12.200340161 Calling exit ...