Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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.001307/0.001307, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001426/0.001426, allocations: 212.2 kB / 24.53 MB, free: 4.066 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.497/1.497, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.2739/0.2739, allocations: 44.92 MB / 359.6 MB, free: 6.293 MB / 286.1 MB " [Timeout remaining time 179] 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.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",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.002135/0.002135, allocations: 60.19 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3455, allocations: 65.47 MB / 0.5578 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.0032/0.3487, allocations: 1.556 MB / 0.5593 GB, free: 6.227 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3497, allocations: 0.5649 MB / 0.5599 GB, free: 5.656 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.082e-05/0.3498, allocations: 0 / 0.5599 GB, free: 5.656 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.057e-05/0.3498, allocations: 3.938 kB / 0.5599 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.244e-05/0.3499, allocations: 23.8 kB / 0.5599 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.3501, allocations: 47.88 kB / 0.5599 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.3503, allocations: 91.7 kB / 0.56 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.663e-05/0.3504, allocations: 11.98 kB / 0.56 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.3505, allocations: 47.83 kB / 0.5601 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.511e-05/0.3506, allocations: 39.84 kB / 0.5601 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.3506, allocations: 8 kB / 0.5601 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.28e-05/0.3507, allocations: 8 kB / 0.5601 GB, free: 5.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.01e-05/0.3507, allocations: 27.91 kB / 0.5601 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.649e-05/0.3508, allocations: 39.8 kB / 0.5602 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.3509, allocations: 81.67 kB / 0.5603 GB, free: 5.234 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.3509, allocations: 0 / 0.5603 GB, free: 5.234 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3509, allocations: 0 / 0.5603 GB, free: 5.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.3509, allocations: 0 / 0.5603 GB, free: 5.234 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006534/0.3516, allocations: 340.2 kB / 0.5606 GB, free: 4.875 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3516, allocations: 12.02 kB / 0.5606 GB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.468e-05/0.3516, allocations: 8.188 kB / 0.5606 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.873e-05/0.3517, allocations: 38.69 kB / 0.5606 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.3518, allocations: 20.88 kB / 0.5607 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.352, allocations: 130.4 kB / 0.5608 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.352, allocations: 8.375 kB / 0.5608 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.3521, allocations: 4.375 kB / 0.5608 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.3523, allocations: 93.58 kB / 0.5609 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3523, allocations: 0 / 0.5609 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.3523, allocations: 8 kB / 0.5609 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.3523, allocations: 0 / 0.5609 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001448/0.3525, allocations: 47.91 kB / 0.5609 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005402/0.353, allocations: 307.7 kB / 0.5612 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.3532, allocations: 86.47 kB / 0.5613 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.3533, allocations: 44.84 kB / 0.5614 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.3534, allocations: 3.984 kB / 0.5614 GB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.3536, allocations: 107.3 kB / 0.5615 GB, free: 3.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.442e-06/0.3536, allocations: 0 / 0.5615 GB, free: 3.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004937/0.3541, allocations: 193.7 kB / 0.5617 GB, free: 3.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.3541, allocations: 63.39 kB / 0.5617 GB, free: 3.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.3542, allocations: 121.8 kB / 0.5618 GB, free: 3.469 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.3542, allocations: 29.7 kB / 0.5619 GB, free: 3.434 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.497e-05/0.3543, allocations: 100.4 kB / 0.562 GB, free: 3.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.732e-05/0.3543, allocations: 28.77 kB / 0.562 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.017e-05/0.3544, allocations: 37.7 kB / 0.562 GB, free: 3.258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3545, allocations: 326.8 kB / 0.5623 GB, free: 2.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.3546, allocations: 47.91 kB / 0.5624 GB, free: 2.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.3548, allocations: 74.17 kB / 0.5624 GB, free: 2.797 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/0.355, allocations: 131.5 kB / 0.5626 GB, free: 2.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.355, allocations: 0 / 0.5626 GB, free: 2.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003025/0.3553, allocations: 161.5 kB / 0.5627 GB, free: 2.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.3553, allocations: 4 kB / 0.5627 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.3553, allocations: 0 / 0.5627 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.3553, allocations: 7.938 kB / 0.5627 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.3555, allocations: 20.11 kB / 0.5628 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.3555, allocations: 4 kB / 0.5628 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.907e-05/0.3555, allocations: 15.95 kB / 0.5628 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.3555, allocations: 4 kB / 0.5628 GB, free: 2.438 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.0001227/0.3557, allocations: 139.7 kB / 0.5629 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.059e-05/0.3557, allocations: 7.953 kB / 0.5629 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.152e-05/0.3557, allocations: 8.438 kB / 0.5629 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3557, allocations: 7.938 kB / 0.5629 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3557, allocations: 0 / 0.5629 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3557, allocations: 7.984 kB / 0.5629 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000588/0.3563, allocations: 417.4 kB / 0.5633 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3563, allocations: 4 kB / 0.5633 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.452e-05/0.3564, allocations: 7.984 kB / 0.5634 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3564, allocations: 0 / 0.5634 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.3564, allocations: 4 kB / 0.5634 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.3564, allocations: 0 / 0.5634 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3564, allocations: 0 / 0.5634 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003667/0.3568, allocations: 270.8 kB / 0.5636 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.673e-05/0.3568, allocations: 7.953 kB / 0.5636 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.3568, allocations: 4 kB / 0.5636 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.3569, allocations: 15.98 kB / 0.5636 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.357, allocations: 15.92 kB / 0.5637 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.357, allocations: 4 kB / 0.5637 GB, free: 1.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.071e-05/0.357, allocations: 95.27 kB / 0.5637 GB, free: 1.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.357, allocations: 0 / 0.5637 GB, free: 1.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.3573, allocations: 23.94 kB / 0.5638 GB, free: 1.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0006755/0.358, allocations: 0.7909 MB / 0.5645 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002743/0.3582, allocations: 111.9 kB / 0.5647 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3582, allocations: 0 / 0.5647 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.3584, allocations: 47.91 kB / 0.5647 GB, free: 376 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.3586, allocations: 11.98 kB / 0.5647 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.3606, allocations: 1.672 MB / 0.5663 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.3609, allocations: 0.6963 MB / 0.567 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.44e-05/0.3609, allocations: 12.97 kB / 0.567 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.295e-05/0.361, allocations: 27.42 kB / 0.5671 GB, free: 13.81 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.361, allocations: 4 kB / 0.5671 GB, free: 13.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.382, allocations: 2.451 MB / 0.5695 GB, free: 11.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.89, allocations: 4.062 kB / 0.5695 GB, free: 11.5 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.934387838991825] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrderHold.c', 'firstOrderHold.firstTrigger', 'firstOrderHold.pre_uSample', 'firstOrderHold.tSample', 'firstOrderHold.uSample', 'zeroOrderHold.firstTrigger', 'zeroOrderHold.ySample'] 12.051851525960956 12.071303774 11.71712188 Calling exit ...