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.001318/0.001318, allocations: 120.4 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.001456/0.001456, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.601/1.601, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.2381/0.2381, allocations: 46.88 MB / 357.4 MB, free: 10.53 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.002237/0.002237, allocations: 79.86 kB / 0.4912 GB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1381, allocations: 65.98 MB / 0.5557 GB, free: 6.453 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001638/0.1398, allocations: 0.5331 MB / 0.5562 GB, free: 5.914 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000904/0.1407, allocations: 448.9 kB / 0.5566 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.12e-05/0.1407, allocations: 4 kB / 0.5566 GB, free: 5.473 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 7.333e-05/0.1408, allocations: 3.938 kB / 0.5566 GB, free: 5.469 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.1409, allocations: 3.984 kB / 0.5566 GB, free: 5.465 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.0005892/0.1415, allocations: 171.2 kB / 0.5568 GB, free: 5.301 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.1416, allocations: 87.8 kB / 0.5569 GB, free: 5.215 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.714e-05/0.1417, allocations: 7.922 kB / 0.5569 GB, free: 5.207 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.037e-05/0.1417, allocations: 35.97 kB / 0.5569 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.624e-05/0.1418, allocations: 27.91 kB / 0.5569 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.028e-05/0.1418, allocations: 0 / 0.5569 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.142, allocations: 107.8 kB / 0.557 GB, free: 5.039 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.375e-05/0.1421, allocations: 19.97 kB / 0.557 GB, free: 5.02 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.702e-05/0.1421, allocations: 31.83 kB / 0.5571 GB, free: 4.988 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.1423, allocations: 123.7 kB / 0.5572 GB, free: 4.867 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1423, allocations: 0 / 0.5572 GB, free: 4.867 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1423, allocations: 3.938 kB / 0.5572 GB, free: 4.863 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1423, allocations: 0 / 0.5572 GB, free: 4.863 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.0005749/0.1429, allocations: 408.9 kB / 0.5576 GB, free: 4.406 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1429, allocations: 16.02 kB / 0.5576 GB, free: 4.391 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.002e-05/0.143, allocations: 34.75 kB / 0.5576 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.498e-05/0.1431, allocations: 8.891 kB / 0.5576 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.1433, allocations: 188.2 kB / 0.5578 GB, free: 4.117 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.1433, allocations: 4.375 kB / 0.5578 GB, free: 4.113 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.1433, allocations: 4.375 kB / 0.5578 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001993/0.1435, allocations: 94.19 kB / 0.5579 GB, free: 4.012 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1435, allocations: 3.938 kB / 0.5579 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.1435, allocations: 0 / 0.5579 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1435, allocations: 8 kB / 0.5579 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.277e-05/0.1436, allocations: 23.97 kB / 0.558 GB, free: 3.977 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001986/0.1438, allocations: 165.7 kB / 0.5581 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.054e-05/0.1439, allocations: 42.5 kB / 0.5582 GB, free: 3.715 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.343e-05/0.1439, allocations: 20.91 kB / 0.5582 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.1439, allocations: 0 / 0.5582 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002684/0.1442, allocations: 139.3 kB / 0.5583 GB, free: 3.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.1442, allocations: 3.938 kB / 0.5583 GB, free: 3.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.000296/0.1445, allocations: 121.6 kB / 0.5584 GB, free: 3.414 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.1446, allocations: 63.34 kB / 0.5585 GB, free: 3.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.24e-05/0.1446, allocations: 93.86 kB / 0.5586 GB, free: 3.238 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.1447, allocations: 37.69 kB / 0.5586 GB, free: 3.195 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.987e-05/0.1447, allocations: 84.14 kB / 0.5587 GB, free: 3.109 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.885e-05/0.1447, allocations: 19.86 kB / 0.5587 GB, free: 3.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.104e-05/0.1448, allocations: 33.7 kB / 0.5587 GB, free: 3.051 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1449, allocations: 318.8 kB / 0.5591 GB, free: 2.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.766e-05/0.145, allocations: 19.98 kB / 0.5591 GB, free: 2.711 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.71e-05/0.1451, allocations: 74.86 kB / 0.5591 GB, free: 2.613 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.1453, allocations: 152.4 kB / 0.5593 GB, free: 2.434 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1453, allocations: 288 / 0.5593 GB, free: 2.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002367/0.1455, allocations: 163.1 kB / 0.5594 GB, free: 2.262 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.1456, allocations: 29.7 kB / 0.5595 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1456, allocations: 7.938 kB / 0.5595 GB, free: 2.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.1456, allocations: 4.203 kB / 0.5595 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.709e-05/0.1457, allocations: 20 kB / 0.5595 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.1457, allocations: 0 / 0.5595 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.643e-05/0.1457, allocations: 19.83 kB / 0.5595 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.1458, allocations: 11.98 kB / 0.5595 GB, free: 2.164 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.0001467/0.1459, allocations: 123.5 kB / 0.5597 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.679e-05/0.1459, allocations: 7.891 kB / 0.5597 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.146, allocations: 15.95 kB / 0.5597 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.146, allocations: 4.062 kB / 0.5597 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.146, allocations: 4 kB / 0.5597 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.146, allocations: 0 / 0.5597 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.1461, allocations: 173.6 kB / 0.5598 GB, free: 1.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1462, allocations: 3.984 kB / 0.5599 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.776e-05/0.1462, allocations: 7.938 kB / 0.5599 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1462, allocations: 0 / 0.5599 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.1462, allocations: 3.938 kB / 0.5599 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1462, allocations: 0 / 0.5599 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1462, allocations: 4 kB / 0.5599 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002059/0.1464, allocations: 125.1 kB / 0.56 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.408e-05/0.1465, allocations: 85.19 kB / 0.5601 GB, free: 1.523 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.1465, allocations: 7.984 kB / 0.5601 GB, free: 1.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.1467, allocations: 27.95 kB / 0.5601 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.217e-05/0.1467, allocations: 0 / 0.5601 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.1467, allocations: 11.92 kB / 0.5601 GB, free: 1.477 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.812e-05/0.1468, allocations: 83.28 kB / 0.5602 GB, free: 1.395 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1468, allocations: 4 kB / 0.5602 GB, free: 1.391 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002878/0.1471, allocations: 39.94 kB / 0.5602 GB, free: 1.352 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.0008762/0.148, allocations: 0.7566 MB / 0.561 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002189/0.1482, allocations: 115.3 kB / 0.5611 GB, free: 472 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1482, allocations: 4 kB / 0.5611 GB, free: 468 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.14e-05/0.1482, allocations: 31.91 kB / 0.5611 GB, free: 436 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001592/0.1484, allocations: 11.98 kB / 0.5611 GB, free: 424 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.15, allocations: 1.433 MB / 0.5625 GB, free: 14.85 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.1504, allocations: 0.6846 MB / 0.5632 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.074e-05/0.1504, allocations: 12.66 kB / 0.5632 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.99e-05/0.1505, allocations: 15.44 kB / 0.5632 GB, free: 14.11 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1505, allocations: 4 kB / 0.5632 GB, free: 14.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.1747, allocations: 3.035 MB / 0.5662 GB, free: 11.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.057/8.232, allocations: 0 / 0.5662 GB, free: 11.16 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 & /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 --stepSize=0.000166639 --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: 11.316937767900527] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 8.300530551932752 8.324372187 8.177694823 Calling exit ...