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.001374/0.001374, allocations: 105.7 kB / 19.74 MB, free: 2.562 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.001508/0.001508, allocations: 217.1 kB / 22.92 MB, free: 5.551 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.331/1.331, allocations: 230.2 MB / 256.1 MB, free: 8.59 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.2048/0.2048, allocations: 46.89 MB / 359.3 MB, free: 4.953 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.002099/0.002099, allocations: 79.86 kB / 0.494 GB, free: 9.094 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2651, allocations: 65.98 MB / 0.5584 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001418/0.2666, allocations: 0.5407 MB / 0.5589 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008076/0.2674, allocations: 450.6 kB / 0.5594 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.2674, allocations: 4 kB / 0.5594 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.292e-05/0.2675, allocations: 7.938 kB / 0.5594 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.186e-05/0.2675, allocations: 4 kB / 0.5594 GB, free: 4.215 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.0005106/0.2681, allocations: 170.9 kB / 0.5595 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.2682, allocations: 83.84 kB / 0.5596 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.893e-05/0.2682, allocations: 0 / 0.5596 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.832e-05/0.2683, allocations: 43.89 kB / 0.5597 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.713e-05/0.2683, allocations: 19.92 kB / 0.5597 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.2684, allocations: 4 kB / 0.5597 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001866/0.2686, allocations: 103.8 kB / 0.5598 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.051e-05/0.2686, allocations: 19.97 kB / 0.5598 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.176e-05/0.2686, allocations: 35.83 kB / 0.5598 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.2688, allocations: 129.5 kB / 0.56 GB, free: 3.621 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.2688, allocations: 0 / 0.56 GB, free: 3.621 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2688, allocations: 0 / 0.56 GB, free: 3.621 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.2688, allocations: 0 / 0.56 GB, free: 3.621 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.0004965/0.2693, allocations: 408.8 kB / 0.5604 GB, free: 3.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.2694, allocations: 12.03 kB / 0.5604 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.2694, allocations: 38.73 kB / 0.5604 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.054e-05/0.2694, allocations: 8.891 kB / 0.5604 GB, free: 3.098 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001627/0.2696, allocations: 188.3 kB / 0.5606 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.2696, allocations: 4.375 kB / 0.5606 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.2696, allocations: 384 / 0.5606 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.2698, allocations: 90.19 kB / 0.5607 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2698, allocations: 3.938 kB / 0.5607 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.2698, allocations: 4 kB / 0.5607 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.2699, allocations: 4 kB / 0.5607 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.778e-05/0.2699, allocations: 23.92 kB / 0.5607 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000171/0.2701, allocations: 165.6 kB / 0.5609 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.531e-05/0.2702, allocations: 50.5 kB / 0.5609 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.083e-05/0.2702, allocations: 20.91 kB / 0.5609 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.2702, allocations: 8.125 kB / 0.5609 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.2705, allocations: 131.2 kB / 0.5611 GB, free: 2.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.2705, allocations: 4 kB / 0.5611 GB, free: 2.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002666/0.2707, allocations: 117.6 kB / 0.5612 GB, free: 2.176 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.2708, allocations: 63.33 kB / 0.5612 GB, free: 2.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.593e-05/0.2708, allocations: 97.86 kB / 0.5613 GB, free: 1.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.2709, allocations: 33.64 kB / 0.5614 GB, free: 1.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.2709, allocations: 88.12 kB / 0.5615 GB, free: 1.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.2709, allocations: 19.86 kB / 0.5615 GB, free: 1.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.806e-05/0.271, allocations: 37.7 kB / 0.5615 GB, free: 1.805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.2711, allocations: 310.8 kB / 0.5618 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.023e-05/0.2711, allocations: 27.97 kB / 0.5618 GB, free: 1.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.123e-05/0.2712, allocations: 74.8 kB / 0.5619 GB, free: 1.367 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/0.2714, allocations: 152.4 kB / 0.5621 GB, free: 1.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2714, allocations: 0 / 0.5621 GB, free: 1.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002154/0.2716, allocations: 163.1 kB / 0.5622 GB, free: 1.016 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.2717, allocations: 29.7 kB / 0.5622 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2717, allocations: 4 kB / 0.5622 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.2717, allocations: 4 kB / 0.5622 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.781e-05/0.2718, allocations: 19.98 kB / 0.5623 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2718, allocations: 0 / 0.5623 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.562e-05/0.2718, allocations: 7.953 kB / 0.5623 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.2718, allocations: 16.22 kB / 0.5623 GB, free: 0.9297 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.0001267/0.272, allocations: 129.8 kB / 0.5624 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/0.272, allocations: 15.83 kB / 0.5624 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.764e-05/0.272, allocations: 7.969 kB / 0.5624 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.272, allocations: 3.984 kB / 0.5624 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.272, allocations: 288 / 0.5624 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.272, allocations: 0 / 0.5624 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.2722, allocations: 169.6 kB / 0.5626 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2722, allocations: 7.938 kB / 0.5626 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.618e-05/0.2722, allocations: 11.92 kB / 0.5626 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2722, allocations: 3.938 kB / 0.5626 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.2722, allocations: 0 / 0.5626 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.2722, allocations: 4 kB / 0.5626 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2722, allocations: 0 / 0.5626 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001927/0.2724, allocations: 125.1 kB / 0.5627 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.374e-05/0.2725, allocations: 89 kB / 0.5628 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.2725, allocations: 7.984 kB / 0.5628 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.2727, allocations: 15.98 kB / 0.5629 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.52e-05/0.2727, allocations: 11.92 kB / 0.5629 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.2727, allocations: 4 kB / 0.5629 GB, free: 244 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.89e-05/0.2728, allocations: 83.27 kB / 0.5629 GB, free: 160 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2728, allocations: 0 / 0.5629 GB, free: 160 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.273, allocations: 47.88 kB / 0.563 GB, free: 112 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.000741/0.2738, allocations: 0.7519 MB / 0.5637 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000196/0.274, allocations: 131.3 kB / 0.5639 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.274, allocations: 0 / 0.5639 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.699e-05/0.274, allocations: 27.92 kB / 0.5639 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001451/0.2742, allocations: 11.98 kB / 0.5639 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.2755, allocations: 1.435 MB / 0.5653 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.2758, allocations: 0.6846 MB / 0.566 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.279e-05/0.2758, allocations: 16.64 kB / 0.566 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.927e-05/0.2759, allocations: 15.44 kB / 0.566 GB, free: 12.86 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2759, allocations: 0 / 0.566 GB, free: 12.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.2984, allocations: 3.013 MB / 0.5689 GB, free: 9.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.953/7.251, allocations: 6.484 kB / 0.5689 GB, free: 9.91 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000166639 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.798548406994087]