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.001377/0.001377, allocations: 112.2 kB / 21.22 MB, free: 0.7461 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.001638/0.001638, allocations: 210 kB / 24.53 MB, free: 4.148 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.465/1.465, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.2525/0.2525, allocations: 44.91 MB / 359.6 MB, free: 6.305 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.001991/0.001991, allocations: 63.89 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3443, allocations: 65.47 MB / 0.5578 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003692/0.348, allocations: 1.94 MB / 0.5597 GB, free: 5.863 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002584/0.3506, allocations: 1.209 MB / 0.5609 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.3507, allocations: 0 / 0.5609 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008673/0.3516, allocations: 187.4 kB / 0.561 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000484/0.3521, allocations: 175.3 kB / 0.5612 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.3525, allocations: 163.5 kB / 0.5614 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003702/0.3529, allocations: 279.3 kB / 0.5616 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.353, allocations: 23.62 kB / 0.5616 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.3532, allocations: 119.5 kB / 0.5618 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.3534, allocations: 119.6 kB / 0.5619 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.251e-05/0.3534, allocations: 24 kB / 0.5619 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.3536, allocations: 71.94 kB / 0.562 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.85e-05/0.3537, allocations: 63.77 kB / 0.562 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.3538, allocations: 111.4 kB / 0.5621 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004469/0.3543, allocations: 286.9 kB / 0.5624 GB, free: 3.055 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3543, allocations: 0 / 0.5624 GB, free: 3.055 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3543, allocations: 0 / 0.5624 GB, free: 3.055 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3543, allocations: 0 / 0.5624 GB, free: 3.055 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.001129/0.3554, allocations: 0.6049 MB / 0.563 GB, free: 2.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3555, allocations: 11.97 kB / 0.563 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.559e-05/0.3555, allocations: 4.188 kB / 0.563 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.804e-05/0.3555, allocations: 38.75 kB / 0.563 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.329e-05/0.3556, allocations: 32.78 kB / 0.5631 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003669/0.356, allocations: 225.5 kB / 0.5633 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.3561, allocations: 174.3 kB / 0.5635 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.3562, allocations: 19.94 kB / 0.5635 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003314/0.3565, allocations: 153 kB / 0.5636 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.3565, allocations: 0 / 0.5636 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.3565, allocations: 8 kB / 0.5636 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.3565, allocations: 4 kB / 0.5636 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/0.3568, allocations: 91.86 kB / 0.5637 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008829/0.3577, allocations: 0.5859 MB / 0.5643 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003605/0.358, allocations: 155.9 kB / 0.5644 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.3582, allocations: 66.55 kB / 0.5645 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.3582, allocations: 7.984 kB / 0.5645 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004996/0.3587, allocations: 433.1 kB / 0.5649 GB, free: 160 kB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.763e-06/0.3587, allocations: 0 / 0.5649 GB, free: 160 kB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009363/0.3596, allocations: 454.6 kB / 0.5654 GB, free: 15.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.3598, allocations: 213.6 kB / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.3602, allocations: 333.8 kB / 0.5659 GB, free: 15.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/0.3602, allocations: 33.7 kB / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.3603, allocations: 132.6 kB / 0.566 GB, free: 14.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.605e-05/0.3604, allocations: 67.45 kB / 0.5661 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.687e-05/0.3605, allocations: 45.7 kB / 0.5661 GB, free: 14.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3607, allocations: 338.8 kB / 0.5665 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.3608, allocations: 59.95 kB / 0.5665 GB, free: 14.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.361, allocations: 146.7 kB / 0.5667 GB, free: 14.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004387/0.3615, allocations: 354.7 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3615, allocations: 0 / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005865/0.3621, allocations: 354.4 kB / 0.5673 GB, free: 13.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.146e-05/0.3621, allocations: 95.44 kB / 0.5674 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3621, allocations: 4 kB / 0.5674 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.3622, allocations: 4 kB / 0.5674 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.3623, allocations: 19.98 kB / 0.5675 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.3623, allocations: 7.938 kB / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.3624, allocations: 23.88 kB / 0.5675 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.3624, allocations: 16 kB / 0.5675 GB, free: 13.26 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.0002548/0.3627, allocations: 266 kB / 0.5678 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.33e-05/0.3628, allocations: 43.73 kB / 0.5678 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003833/0.3631, allocations: 201 kB / 0.568 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3631, allocations: 0 / 0.568 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.3632, allocations: 4 kB / 0.568 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3632, allocations: 0 / 0.568 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003257/0.3635, allocations: 268.4 kB / 0.5683 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3635, allocations: 0 / 0.5683 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.428e-05/0.3635, allocations: 12 kB / 0.5683 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3635, allocations: 3.984 kB / 0.5683 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.3635, allocations: 8 kB / 0.5683 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3636, allocations: 7.938 kB / 0.5683 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3636, allocations: 0 / 0.5683 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007106/0.3643, allocations: 459.1 kB / 0.5687 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.3643, allocations: 27.8 kB / 0.5688 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.413e-05/0.3644, allocations: 12 kB / 0.5688 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.3645, allocations: 15.98 kB / 0.5688 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.319e-05/0.3646, allocations: 23.95 kB / 0.5688 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.041e-05/0.3646, allocations: 15.94 kB / 0.5688 GB, free: 11.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002686/0.3649, allocations: 241.2 kB / 0.569 GB, free: 11.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3649, allocations: 0 / 0.569 GB, free: 11.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.3652, allocations: 63.95 kB / 0.5691 GB, free: 11.5 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 (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.002571/0.3678, allocations: 1.308 MB / 0.5704 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006261/0.3684, allocations: 361.8 kB / 0.5707 GB, free: 9.902 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3684, allocations: 0 / 0.5707 GB, free: 9.902 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003626/0.3688, allocations: 274.4 kB / 0.571 GB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.3692, allocations: 58.38 kB / 0.571 GB, free: 9.547 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004133/0.3733, allocations: 2.871 MB / 0.5738 GB, free: 6.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004524/0.3737, allocations: 0.7556 MB / 0.5746 GB, free: 5.715 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.3739, allocations: 25.62 kB / 0.5746 GB, free: 5.688 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.374, allocations: 67.41 kB / 0.5747 GB, free: 5.621 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.374, allocations: 3.938 kB / 0.5747 GB, free: 5.617 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0304/0.4044, allocations: 6.56 MB / 0.5811 GB, free: 15.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.15, allocations: 14.88 kB / 0.5811 GB, free: 15.13 MB / 430.1 MB " [Timeout remaining time 648] (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.253090932033956] 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.378017518029083 12.40472479 12.045348126 Calling exit ...