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.001284/0.001284, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001452/0.001452, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.2176/0.2176, allocations: 46.93 MB / 361.6 MB, free: 4.285 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.002002/0.002002, allocations: 67.89 kB / 0.4969 GB, free: 7.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.313, allocations: 66.03 MB / 0.5614 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001647/0.3146, allocations: 0.5422 MB / 0.5619 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008786/0.3155, allocations: 446.6 kB / 0.5624 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.929e-05/0.3155, allocations: 0 / 0.5624 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.476e-05/0.3156, allocations: 7.922 kB / 0.5624 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.3158, allocations: 7.938 kB / 0.5624 GB, free: 3.484 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.0005611/0.3163, allocations: 179.5 kB / 0.5626 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.3165, allocations: 83.78 kB / 0.5626 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.542e-05/0.3165, allocations: 4 kB / 0.5626 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.846e-05/0.3166, allocations: 35.97 kB / 0.5627 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.424e-05/0.3166, allocations: 19.91 kB / 0.5627 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.3166, allocations: 4 kB / 0.5627 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002553/0.3169, allocations: 139.7 kB / 0.5628 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.083e-05/0.3169, allocations: 19.97 kB / 0.5629 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.756e-05/0.317, allocations: 31.83 kB / 0.5629 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.3172, allocations: 129.5 kB / 0.563 GB, free: 2.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.3172, allocations: 4 kB / 0.563 GB, free: 2.848 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3172, allocations: 0 / 0.563 GB, free: 2.848 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3172, allocations: 4 kB / 0.563 GB, free: 2.844 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.0005043/0.3177, allocations: 331.7 kB / 0.5633 GB, free: 2.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3177, allocations: 8.031 kB / 0.5633 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.112e-05/0.3178, allocations: 192 / 0.5633 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.938e-05/0.3178, allocations: 42.73 kB / 0.5634 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.962e-05/0.3178, allocations: 12.83 kB / 0.5634 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.318, allocations: 122.5 kB / 0.5635 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.318, allocations: 8.375 kB / 0.5635 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.318, allocations: 4.375 kB / 0.5635 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.3182, allocations: 97.92 kB / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.3182, allocations: 0 / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.3183, allocations: 0 / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3183, allocations: 0 / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.257e-05/0.3183, allocations: 23.98 kB / 0.5636 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001721/0.3185, allocations: 140.7 kB / 0.5638 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.348e-05/0.3186, allocations: 46.55 kB / 0.5638 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.907e-05/0.3186, allocations: 16.86 kB / 0.5638 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.3186, allocations: 4.062 kB / 0.5638 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.3189, allocations: 131.2 kB / 0.564 GB, free: 1.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.3189, allocations: 4 kB / 0.564 GB, free: 1.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002914/0.3192, allocations: 133.6 kB / 0.5641 GB, free: 1.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.3192, allocations: 59.39 kB / 0.5641 GB, free: 1.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.935e-05/0.3193, allocations: 101.8 kB / 0.5642 GB, free: 1.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.3194, allocations: 29.7 kB / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.81e-05/0.3194, allocations: 80.14 kB / 0.5643 GB, free: 1.293 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/0.3194, allocations: 23.84 kB / 0.5644 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.516e-05/0.3195, allocations: 37.7 kB / 0.5644 GB, free: 1.227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3196, allocations: 314.8 kB / 0.5647 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.055e-05/0.3197, allocations: 23.98 kB / 0.5647 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.552e-05/0.3198, allocations: 81.59 kB / 0.5648 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/0.32, allocations: 152.4 kB / 0.565 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.32, allocations: 0 / 0.565 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002285/0.3202, allocations: 167.1 kB / 0.5651 GB, free: 440 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.3202, allocations: 32.2 kB / 0.5651 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3202, allocations: 4 kB / 0.5651 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.3202, allocations: 0 / 0.5651 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.3203, allocations: 19.98 kB / 0.5652 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3203, allocations: 4.219 kB / 0.5652 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.145e-05/0.3204, allocations: 15.89 kB / 0.5652 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.3204, allocations: 8 kB / 0.5652 GB, free: 352 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.0001373/0.3205, allocations: 134 kB / 0.5653 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.3206, allocations: 7.891 kB / 0.5653 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.856e-05/0.3206, allocations: 8.062 kB / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3206, allocations: 0 / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3206, allocations: 0 / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.3206, allocations: 3.984 kB / 0.5653 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.3208, allocations: 144.7 kB / 0.5655 GB, free: 16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3208, allocations: 3.938 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.868e-05/0.3208, allocations: 15.92 kB / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3208, allocations: 0 / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.3208, allocations: 0 / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.3208, allocations: 0 / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3208, allocations: 4 kB / 0.5655 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.321, allocations: 125.1 kB / 0.5656 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.163e-05/0.321, allocations: 15.83 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.321, allocations: 0 / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.3212, allocations: 23.97 kB / 0.5657 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.3213, allocations: 7.984 kB / 0.5657 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.3213, allocations: 8.062 kB / 0.5657 GB, free: 15.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.991e-05/0.3213, allocations: 79.28 kB / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3213, allocations: 0 / 0.5657 GB, free: 15.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002642/0.3216, allocations: 47.86 kB / 0.5658 GB, free: 15.65 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.0007451/0.3223, allocations: 0.7515 MB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001929/0.3225, allocations: 115.7 kB / 0.5666 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.3225, allocations: 8.062 kB / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.646e-05/0.3226, allocations: 27.92 kB / 0.5667 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001447/0.3227, allocations: 8 kB / 0.5667 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.3241, allocations: 1.442 MB / 0.5681 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.3244, allocations: 0.6851 MB / 0.5688 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.655e-05/0.3245, allocations: 16.64 kB / 0.5688 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.195e-05/0.3245, allocations: 11.44 kB / 0.5688 GB, free: 12.41 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3245, allocations: 0 / 0.5688 GB, free: 12.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.3449, allocations: 3.215 MB / 0.5719 GB, free: 9.344 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.2, allocations: 18.52 kB / 0.5719 GB, free: 9.332 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.96085002698237] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.35603510600049 11.372102575 11.051895846 Calling exit ...