Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.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.001416/0.001416, allocations: 105 kB / 19.74 MB, free: 2.453 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.001548/0.001548, allocations: 218.1 kB / 22.92 MB, free: 5.195 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.303/1.303, allocations: 230.2 MB / 256.1 MB, free: 8.645 MB / 206.1 MB " [Timeout remaining time 179] 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.2019/0.2019, allocations: 46.89 MB / 359.3 MB, free: 5 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.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers",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.002095/0.002095, allocations: 83.86 kB / 0.494 GB, free: 9.141 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2822, allocations: 65.98 MB / 0.5584 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001555/0.2838, allocations: 0.5306 MB / 0.5589 GB, free: 4.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008746/0.2846, allocations: 454.5 kB / 0.5594 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.658e-05/0.2847, allocations: 0 / 0.5594 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.402e-05/0.2847, allocations: 0 / 0.5594 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.2849, allocations: 15.92 kB / 0.5594 GB, free: 4.234 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0005148/0.2854, allocations: 171.5 kB / 0.5595 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.2855, allocations: 71.86 kB / 0.5596 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.49e-05/0.2856, allocations: 8 kB / 0.5596 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.039e-05/0.2856, allocations: 43.89 kB / 0.5597 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.336e-05/0.2857, allocations: 19.91 kB / 0.5597 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.2857, allocations: 0 / 0.5597 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.2859, allocations: 107.9 kB / 0.5598 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.862e-05/0.286, allocations: 19.97 kB / 0.5598 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.332e-05/0.286, allocations: 27.84 kB / 0.5598 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.2862, allocations: 133.4 kB / 0.56 GB, free: 3.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2862, allocations: 4 kB / 0.56 GB, free: 3.641 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2862, allocations: 0 / 0.56 GB, free: 3.641 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.2862, allocations: 0 / 0.56 GB, free: 3.641 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.0006082/0.2869, allocations: 419.2 kB / 0.5604 GB, free: 3.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.2869, allocations: 12.03 kB / 0.5604 GB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.904e-05/0.2869, allocations: 30.75 kB / 0.5604 GB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.234e-05/0.287, allocations: 8.891 kB / 0.5604 GB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.2872, allocations: 184.3 kB / 0.5606 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.2872, allocations: 384 / 0.5606 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.2872, allocations: 8.375 kB / 0.5606 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.2874, allocations: 90.19 kB / 0.5607 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.2874, allocations: 3.938 kB / 0.5607 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.2874, allocations: 7.938 kB / 0.5607 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-06/0.2874, allocations: 0 / 0.5607 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.393e-05/0.2875, allocations: 31.91 kB / 0.5607 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000179/0.2876, allocations: 157.7 kB / 0.5609 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.131e-05/0.2877, allocations: 42.56 kB / 0.5609 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.111e-05/0.2878, allocations: 28.91 kB / 0.5609 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.2878, allocations: 0 / 0.5609 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.288, allocations: 127.2 kB / 0.5611 GB, free: 2.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.288, allocations: 0 / 0.5611 GB, free: 2.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002797/0.2883, allocations: 133.5 kB / 0.5612 GB, free: 2.195 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.2883, allocations: 59.5 kB / 0.5612 GB, free: 2.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.2885, allocations: 101.8 kB / 0.5613 GB, free: 2.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.2885, allocations: 33.69 kB / 0.5614 GB, free: 1.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.043e-05/0.2885, allocations: 80.14 kB / 0.5614 GB, free: 1.895 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.2886, allocations: 23.86 kB / 0.5615 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.795e-05/0.2886, allocations: 29.7 kB / 0.5615 GB, free: 1.836 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2888, allocations: 318.8 kB / 0.5618 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.905e-05/0.2888, allocations: 27.98 kB / 0.5618 GB, free: 1.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.238e-05/0.2889, allocations: 74.8 kB / 0.5619 GB, free: 1.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002418/0.2891, allocations: 156.4 kB / 0.562 GB, free: 1.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.2891, allocations: 0 / 0.562 GB, free: 1.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002725/0.2894, allocations: 163.2 kB / 0.5622 GB, free: 1.035 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.2894, allocations: 32.2 kB / 0.5622 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.2894, allocations: 7.984 kB / 0.5622 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.2895, allocations: 0 / 0.5622 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.2896, allocations: 23.94 kB / 0.5623 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.2896, allocations: 0 / 0.5623 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.07e-05/0.2896, allocations: 11.89 kB / 0.5623 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.2896, allocations: 7.984 kB / 0.5623 GB, free: 0.9492 MB / 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.000148/0.2898, allocations: 132.9 kB / 0.5624 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.915e-05/0.2898, allocations: 11.89 kB / 0.5624 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.2898, allocations: 15.95 kB / 0.5624 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.2898, allocations: 0 / 0.5624 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2898, allocations: 288 / 0.5624 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2898, allocations: 0 / 0.5624 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000151/0.29, allocations: 165.6 kB / 0.5626 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.29, allocations: 3.938 kB / 0.5626 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.674e-05/0.29, allocations: 11.94 kB / 0.5626 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.29, allocations: 4 kB / 0.5626 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.29, allocations: 0 / 0.5626 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.29, allocations: 0 / 0.5626 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.29, allocations: 0 / 0.5626 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.2902, allocations: 137.2 kB / 0.5627 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.2903, allocations: 92.97 kB / 0.5628 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.2903, allocations: 4 kB / 0.5628 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.2905, allocations: 19.97 kB / 0.5629 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.361e-05/0.2905, allocations: 8 kB / 0.5629 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.2906, allocations: 8.047 kB / 0.5629 GB, free: 260 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.062e-05/0.2906, allocations: 79.28 kB / 0.5629 GB, free: 180 kB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2906, allocations: 0 / 0.5629 GB, free: 180 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.000265/0.2909, allocations: 39.88 kB / 0.563 GB, free: 140 kB / 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: 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.0008288/0.2917, allocations: 0.7536 MB / 0.5637 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001893/0.2919, allocations: 119.2 kB / 0.5638 GB, free: 15.24 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2919, allocations: 448 / 0.5638 GB, free: 15.24 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.388e-05/0.2919, allocations: 32.22 kB / 0.5639 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.2921, allocations: 11.98 kB / 0.5639 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.2935, allocations: 1.438 MB / 0.5653 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.2938, allocations: 0.6886 MB / 0.566 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.266e-05/0.2938, allocations: 16.66 kB / 0.566 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.964e-05/0.2939, allocations: 19.42 kB / 0.566 GB, free: 12.88 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.2939, allocations: 0 / 0.566 GB, free: 12.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.3166, allocations: 3.014 MB / 0.5689 GB, free: 9.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.885/7.202, allocations: 12.05 kB / 0.5689 GB, free: 9.926 MB / 414.1 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.702803347987356]