Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001752/0.001752, allocations: 105.7 kB / 20.42 MB, free: 1.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002119/0.002119, allocations: 219.4 kB / 23.72 MB, free: 5.051 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 230.2 MB / 257.1 MB, free: 8.465 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2205/0.2205, allocations: 46.89 MB / 360.3 MB, free: 4.625 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002493/0.002493, allocations: 83.86 kB / 0.4955 GB, free: 8.324 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3356, allocations: 66 MB / 0.56 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002968/0.3386, allocations: 1.541 MB / 0.5615 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.3397, allocations: 0.5688 MB / 0.562 GB, free: 2.785 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.426e-05/0.3398, allocations: 3.938 kB / 0.562 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.068e-05/0.3398, allocations: 3.938 kB / 0.562 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.58e-05/0.3399, allocations: 15.81 kB / 0.5621 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.3402, allocations: 51.81 kB / 0.5621 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001782/0.3404, allocations: 95.73 kB / 0.5622 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.3405, allocations: 8 kB / 0.5622 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.3406, allocations: 47.84 kB / 0.5622 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.3407, allocations: 47.77 kB / 0.5623 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.3407, allocations: 11.94 kB / 0.5623 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.401e-05/0.3408, allocations: 8 kB / 0.5623 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.227e-05/0.3408, allocations: 19.97 kB / 0.5623 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.296e-05/0.3409, allocations: 43.78 kB / 0.5624 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001659/0.3411, allocations: 85.47 kB / 0.5625 GB, free: 2.352 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3411, allocations: 0 / 0.5625 GB, free: 2.352 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3411, allocations: 0 / 0.5625 GB, free: 2.352 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3411, allocations: 4 kB / 0.5625 GB, free: 2.348 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.0007301/0.3418, allocations: 413.5 kB / 0.5629 GB, free: 1.898 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3418, allocations: 8.031 kB / 0.5629 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.441e-05/0.3419, allocations: 38.73 kB / 0.5629 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.342, allocations: 12.89 kB / 0.5629 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.3423, allocations: 196.2 kB / 0.5631 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.3423, allocations: 4.375 kB / 0.5631 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.3423, allocations: 12.36 kB / 0.5631 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.3425, allocations: 85.77 kB / 0.5632 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.3425, allocations: 4 kB / 0.5632 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.3425, allocations: 4 kB / 0.5632 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3425, allocations: 0 / 0.5632 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.3427, allocations: 51.97 kB / 0.5633 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005662/0.3432, allocations: 340.6 kB / 0.5636 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.3435, allocations: 82.53 kB / 0.5637 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.3436, allocations: 40.84 kB / 0.5637 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.3436, allocations: 0 / 0.5637 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.3438, allocations: 103.3 kB / 0.5638 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.3438, allocations: 0 / 0.5638 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004834/0.3443, allocations: 197.6 kB / 0.564 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.3444, allocations: 55.41 kB / 0.564 GB, free: 0.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.3445, allocations: 129.9 kB / 0.5642 GB, free: 416 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.3445, allocations: 29.7 kB / 0.5642 GB, free: 380 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.199e-05/0.3446, allocations: 100.4 kB / 0.5643 GB, free: 272 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.104e-05/0.3446, allocations: 35.72 kB / 0.5643 GB, free: 236 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.779e-05/0.3447, allocations: 41.7 kB / 0.5644 GB, free: 188 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3448, allocations: 326.8 kB / 0.5647 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.3449, allocations: 39.98 kB / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.3451, allocations: 73.27 kB / 0.5648 GB, free: 15.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.3453, allocations: 127.4 kB / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3453, allocations: 0 / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002937/0.3456, allocations: 165.5 kB / 0.5651 GB, free: 15.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.3456, allocations: 6.031 kB / 0.5651 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.3456, allocations: 0 / 0.5651 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3456, allocations: 4 kB / 0.5651 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.3458, allocations: 27.86 kB / 0.5651 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.3458, allocations: 3.984 kB / 0.5651 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.375e-05/0.3458, allocations: 15.95 kB / 0.5651 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.3458, allocations: 4 kB / 0.5651 GB, free: 15.37 MB / 414.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.000128/0.346, allocations: 144.1 kB / 0.5653 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.346, allocations: 7.953 kB / 0.5653 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.403e-05/0.346, allocations: 12.5 kB / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.346, allocations: 3.938 kB / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.346, allocations: 0 / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.346, allocations: 0 / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.3467, allocations: 454.4 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3467, allocations: 3.938 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.269e-05/0.3467, allocations: 11.98 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3467, allocations: 0 / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.3467, allocations: 4 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3467, allocations: 0 / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3467, allocations: 0 / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003608/0.3471, allocations: 255.5 kB / 0.566 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.214e-05/0.3472, allocations: 96.92 kB / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.3472, allocations: 4 kB / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.3473, allocations: 15.98 kB / 0.5661 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.3473, allocations: 15.92 kB / 0.5661 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.3474, allocations: 4 kB / 0.5661 GB, free: 14.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.845e-05/0.3474, allocations: 91.27 kB / 0.5662 GB, free: 14.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3474, allocations: 0 / 0.5662 GB, free: 14.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.3477, allocations: 24 kB / 0.5662 GB, free: 14.14 MB / 414.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.0006939/0.3484, allocations: 0.7938 MB / 0.567 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002765/0.3486, allocations: 107.8 kB / 0.5671 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.3486, allocations: 0 / 0.5671 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.3487, allocations: 44.22 kB / 0.5671 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.349, allocations: 16 kB / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.351, allocations: 1.668 MB / 0.5688 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.3513, allocations: 0.6963 MB / 0.5695 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.145e-05/0.3513, allocations: 8.875 kB / 0.5695 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.3514, allocations: 27.44 kB / 0.5695 GB, free: 10.62 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3514, allocations: 0 / 0.5695 GB, free: 10.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.3754, allocations: 2.251 MB / 0.5717 GB, free: 8.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.003/8.379, allocations: 9.016 kB / 0.5717 GB, free: 8.422 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.254068952053785] 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'] 8.4519006870687 8.479758954 8.133644917 Calling exit ...