Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.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.001531/0.001531, 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.001384/0.001384, allocations: 211.8 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.413/1.413, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2229/0.2229, allocations: 46.96 MB / 361.7 MB, free: 4.051 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+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.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 67.91 kB / 0.4969 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3211, allocations: 66.03 MB / 0.5614 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001696/0.3228, allocations: 0.5373 MB / 0.5619 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008776/0.3237, allocations: 426.7 kB / 0.5623 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.691e-05/0.3237, allocations: 3.938 kB / 0.5623 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.118e-05/0.3238, allocations: 0 / 0.5623 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.3239, allocations: 11.92 kB / 0.5623 GB, free: 3.297 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0005602/0.3245, allocations: 179.1 kB / 0.5625 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001564/0.3246, allocations: 75.91 kB / 0.5625 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.212e-05/0.3246, allocations: 4 kB / 0.5625 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.276e-05/0.3247, allocations: 51.83 kB / 0.5626 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.13e-05/0.3248, allocations: 15.92 kB / 0.5626 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.3248, allocations: 4 kB / 0.5626 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002543/0.325, allocations: 131.8 kB / 0.5627 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.662e-05/0.3251, allocations: 23.95 kB / 0.5628 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.064e-05/0.3251, allocations: 23.91 kB / 0.5628 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002132/0.3254, allocations: 133.5 kB / 0.5629 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3254, allocations: 0 / 0.5629 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3254, allocations: 4 kB / 0.5629 GB, free: 2.668 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.3254, allocations: 0 / 0.5629 GB, free: 2.668 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005355/0.3259, allocations: 335.7 kB / 0.5632 GB, free: 2.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.3259, allocations: 11.97 kB / 0.5633 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.314e-05/0.3259, allocations: 4.188 kB / 0.5633 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.398e-05/0.326, allocations: 38.73 kB / 0.5633 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.411e-05/0.326, allocations: 8.891 kB / 0.5633 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.3262, allocations: 118.5 kB / 0.5634 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.3262, allocations: 4.375 kB / 0.5634 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.3262, allocations: 384 / 0.5634 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.3264, allocations: 101.9 kB / 0.5635 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.3264, allocations: 0 / 0.5635 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.3265, allocations: 0 / 0.5635 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.3265, allocations: 11.94 kB / 0.5635 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.208e-05/0.3265, allocations: 23.97 kB / 0.5635 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001706/0.3267, allocations: 132.8 kB / 0.5637 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.3268, allocations: 46.53 kB / 0.5637 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.158e-05/0.3268, allocations: 16.92 kB / 0.5637 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.3269, allocations: 4 kB / 0.5637 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.3271, allocations: 139.2 kB / 0.5639 GB, free: 1.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.3271, allocations: 0 / 0.5639 GB, free: 1.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002959/0.3274, allocations: 125.5 kB / 0.564 GB, free: 1.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.3275, allocations: 59.39 kB / 0.564 GB, free: 1.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.974e-05/0.3275, allocations: 97.86 kB / 0.5641 GB, free: 1.242 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.3276, allocations: 29.7 kB / 0.5642 GB, free: 1.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.689e-05/0.3276, allocations: 80.14 kB / 0.5642 GB, free: 1.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.243e-05/0.3276, allocations: 23.84 kB / 0.5643 GB, free: 1.102 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.135e-05/0.3277, allocations: 37.7 kB / 0.5643 GB, free: 1.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3278, allocations: 310.8 kB / 0.5646 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.252e-05/0.3279, allocations: 57.69 kB / 0.5647 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.328, allocations: 108.6 kB / 0.5648 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.3282, allocations: 148.4 kB / 0.5649 GB, free: 380 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3282, allocations: 0 / 0.5649 GB, free: 380 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002356/0.3284, allocations: 188.8 kB / 0.5651 GB, free: 172 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/0.3285, allocations: 33.98 kB / 0.5651 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3285, allocations: 3.938 kB / 0.5651 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.3285, allocations: 4 kB / 0.5651 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.3286, allocations: 27.86 kB / 0.5651 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3286, allocations: 4 kB / 0.5652 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.24e-05/0.3286, allocations: 7.953 kB / 0.5652 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.3286, allocations: 4 kB / 0.5652 GB, free: 80 kB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.00016/0.3288, allocations: 134.2 kB / 0.5653 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.872e-05/0.3288, allocations: 11.89 kB / 0.5653 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.519e-05/0.3289, allocations: 12.05 kB / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.3289, allocations: 4 kB / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3289, allocations: 0 / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.3289, allocations: 0 / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.329, allocations: 132.7 kB / 0.5654 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.329, allocations: 3.938 kB / 0.5654 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.422e-05/0.3291, allocations: 4 kB / 0.5655 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.3291, allocations: 8 kB / 0.5655 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3291, allocations: 7.984 kB / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.3291, allocations: 0 / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3291, allocations: 0 / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002149/0.3293, allocations: 129 kB / 0.5656 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.6e-05/0.3293, allocations: 15.83 kB / 0.5656 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.3293, allocations: 4 kB / 0.5656 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.3295, allocations: 19.97 kB / 0.5656 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.524e-05/0.3296, allocations: 3.984 kB / 0.5656 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.3296, allocations: 12.06 kB / 0.5656 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.183e-05/0.3296, allocations: 83.47 kB / 0.5657 GB, free: 15.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3296, allocations: 0 / 0.5657 GB, free: 15.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002792/0.3299, allocations: 47.86 kB / 0.5658 GB, free: 15.38 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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007954/0.3307, allocations: 0.7471 MB / 0.5665 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002222/0.3309, allocations: 164.9 kB / 0.5667 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3309, allocations: 0 / 0.5667 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.129e-05/0.331, allocations: 23.98 kB / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.3311, allocations: 10.19 kB / 0.5667 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.3326, allocations: 1.544 MB / 0.5682 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.03e-05/0.3327, allocations: 76.23 kB / 0.5683 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.521e-05/0.3327, allocations: 12.66 kB / 0.5683 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.3328, allocations: 19.44 kB / 0.5683 GB, free: 12.59 MB / 414.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3328, allocations: 0 / 0.5683 GB, free: 12.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02377/0.3565, allocations: 3.377 MB / 0.5716 GB, free: 9.379 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.37, allocations: 0 / 0.5716 GB, free: 9.379 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.145636690896936] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.527929497067817 11.544091531 11.215672534 Calling exit ...