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.001772/0.001772, allocations: 122.6 kB / 18.5 MB, free: 4.578 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.00206/0.00206, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.567/1.567, allocations: 230.4 MB / 254.7 MB, free: 15.05 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.2379/0.2379, allocations: 46.93 MB / 357.7 MB, free: 10.22 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.00225/0.00225, allocations: 79.86 kB / 0.4917 GB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1415, allocations: 66.04 MB / 0.5562 GB, free: 5.598 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001658/0.1432, allocations: 0.5295 MB / 0.5567 GB, free: 5.062 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000937/0.1441, allocations: 448.9 kB / 0.5571 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.45e-05/0.1442, allocations: 0 / 0.5571 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 7.348e-05/0.1442, allocations: 3.938 kB / 0.5571 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001147/0.1444, allocations: 15.92 kB / 0.5571 GB, free: 4.605 MB / 414.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.0005836/0.1449, allocations: 167.2 kB / 0.5573 GB, free: 4.445 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.1451, allocations: 91.78 kB / 0.5574 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.506e-05/0.1451, allocations: 0 / 0.5574 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.143e-05/0.1452, allocations: 43.95 kB / 0.5574 GB, free: 4.312 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.251e-05/0.1453, allocations: 11.92 kB / 0.5574 GB, free: 4.301 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.1453, allocations: 4 kB / 0.5574 GB, free: 4.297 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002225/0.1455, allocations: 111.8 kB / 0.5575 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.1456, allocations: 27.95 kB / 0.5576 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.937e-05/0.1456, allocations: 27.84 kB / 0.5576 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002188/0.1458, allocations: 119.7 kB / 0.5577 GB, free: 4.016 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.1458, allocations: 4 kB / 0.5577 GB, free: 4.012 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1458, allocations: 0 / 0.5577 GB, free: 4.012 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1458, allocations: 0 / 0.5577 GB, free: 4.012 MB / 414.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.0005733/0.1464, allocations: 412.8 kB / 0.5581 GB, free: 3.551 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.1465, allocations: 8.031 kB / 0.5581 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.322e-05/0.1465, allocations: 34.75 kB / 0.5581 GB, free: 3.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/0.1465, allocations: 12.88 kB / 0.5582 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.1467, allocations: 188.3 kB / 0.5583 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.1468, allocations: 4.375 kB / 0.5583 GB, free: 3.262 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.479e-05/0.1468, allocations: 4.375 kB / 0.5583 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.147, allocations: 90.19 kB / 0.5584 GB, free: 3.164 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.147, allocations: 3.938 kB / 0.5584 GB, free: 3.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.147, allocations: 4 kB / 0.5584 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.147, allocations: 0 / 0.5584 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.365e-05/0.1471, allocations: 19.98 kB / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.1473, allocations: 161.7 kB / 0.5586 GB, free: 2.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.756e-05/0.1474, allocations: 54.48 kB / 0.5587 GB, free: 2.867 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.807e-05/0.1474, allocations: 16.92 kB / 0.5587 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.1474, allocations: 4 kB / 0.5587 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.1477, allocations: 139.2 kB / 0.5588 GB, free: 2.695 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.1477, allocations: 3.938 kB / 0.5588 GB, free: 2.691 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003016/0.148, allocations: 125.7 kB / 0.5589 GB, free: 2.562 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.148, allocations: 59.39 kB / 0.559 GB, free: 2.492 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.385e-05/0.1481, allocations: 105.8 kB / 0.5591 GB, free: 2.379 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.1482, allocations: 25.7 kB / 0.5591 GB, free: 2.348 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.056e-05/0.1482, allocations: 84.14 kB / 0.5592 GB, free: 2.262 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.1482, allocations: 27.84 kB / 0.5592 GB, free: 2.234 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.1483, allocations: 33.7 kB / 0.5593 GB, free: 2.195 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1484, allocations: 314.8 kB / 0.5596 GB, free: 1.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.261e-05/0.1485, allocations: 23.98 kB / 0.5596 GB, free: 1.855 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.078e-05/0.1486, allocations: 72.39 kB / 0.5596 GB, free: 1.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.1488, allocations: 156.3 kB / 0.5598 GB, free: 1.578 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.1488, allocations: 4 kB / 0.5598 GB, free: 1.574 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002343/0.149, allocations: 159.1 kB / 0.56 GB, free: 1.406 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.373e-05/0.1491, allocations: 35.27 kB / 0.56 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1491, allocations: 0 / 0.56 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1491, allocations: 4 kB / 0.56 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.1492, allocations: 19.98 kB / 0.56 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.1492, allocations: 4 kB / 0.56 GB, free: 1.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.154e-05/0.1492, allocations: 11.89 kB / 0.56 GB, free: 1.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.1493, allocations: 8.219 kB / 0.56 GB, free: 1.32 MB / 414.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.0001481/0.1494, allocations: 129.8 kB / 0.5602 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.1494, allocations: 11.89 kB / 0.5602 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.213e-05/0.1495, allocations: 7.969 kB / 0.5602 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.1495, allocations: 4 kB / 0.5602 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1495, allocations: 4.062 kB / 0.5602 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1495, allocations: 0 / 0.5602 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.1496, allocations: 169.6 kB / 0.5603 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1496, allocations: 0 / 0.5603 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.768e-05/0.1497, allocations: 7.938 kB / 0.5604 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1497, allocations: 3.984 kB / 0.5604 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.1497, allocations: 4 kB / 0.5604 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1497, allocations: 3.938 kB / 0.5604 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1497, allocations: 0 / 0.5604 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.1499, allocations: 129.4 kB / 0.5605 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.15, allocations: 92.94 kB / 0.5606 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.966e-05/0.15, allocations: 8 kB / 0.5606 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.1502, allocations: 15.97 kB / 0.5606 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.959e-05/0.1502, allocations: 11.98 kB / 0.5606 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.1502, allocations: 4 kB / 0.5606 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.408e-05/0.1503, allocations: 79.22 kB / 0.5607 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1503, allocations: 0 / 0.5607 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.1506, allocations: 47.92 kB / 0.5607 GB, free: 0.5039 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.000835/0.1514, allocations: 0.747 MB / 0.5615 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002169/0.1516, allocations: 127.5 kB / 0.5616 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1516, allocations: 0 / 0.5616 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 6.401e-05/0.1517, allocations: 31.91 kB / 0.5616 GB, free: 15.58 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.1518, allocations: 8 kB / 0.5616 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.1534, allocations: 1.435 MB / 0.563 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.1537, allocations: 0.6884 MB / 0.5637 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.647e-05/0.1537, allocations: 16.66 kB / 0.5637 GB, free: 13.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.1538, allocations: 19.42 kB / 0.5637 GB, free: 13.25 MB / 430.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1538, allocations: 0 / 0.5637 GB, free: 13.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02511/0.1789, allocations: 3.027 MB / 0.5667 GB, free: 10.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.039/8.218, allocations: 11.03 kB / 0.5667 GB, free: 10.31 MB / 430.1 MB " [Timeout remaining time 652] (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: 11.446296175010502] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 8.28520109783858 8.300951298 8.152145181 Calling exit ...