Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001798/0.001798, allocations: 120.1 kB / 18.49 MB, free: 4.59 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.002084/0.002084, allocations: 214.2 kB / 21.45 MB, free: 1.637 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.405/1.405, allocations: 230.5 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2204/0.2204, allocations: 46.92 MB / 357.7 MB, free: 10.29 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 87.86 kB / 0.4917 GB, free: 7.801 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1329, allocations: 66.04 MB / 0.5562 GB, free: 5.625 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.00164/0.1346, allocations: 0.5217 MB / 0.5567 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009151/0.1355, allocations: 452.8 kB / 0.5571 GB, free: 4.656 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.553e-05/0.1355, allocations: 4 kB / 0.5571 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 8.064e-05/0.1356, allocations: 0 / 0.5571 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.1357, allocations: 7.922 kB / 0.5571 GB, free: 4.645 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.000586/0.1363, allocations: 175.2 kB / 0.5573 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.1365, allocations: 87.84 kB / 0.5574 GB, free: 4.391 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.397e-05/0.1365, allocations: 7.922 kB / 0.5574 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.354e-05/0.1366, allocations: 35.97 kB / 0.5574 GB, free: 4.348 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.848e-05/0.1367, allocations: 27.89 kB / 0.5574 GB, free: 4.32 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.1367, allocations: 4 kB / 0.5574 GB, free: 4.316 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.1369, allocations: 95.89 kB / 0.5575 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.854e-05/0.137, allocations: 23.95 kB / 0.5575 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.334e-05/0.137, allocations: 27.84 kB / 0.5576 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.1372, allocations: 131.6 kB / 0.5577 GB, free: 4.043 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1372, allocations: 0 / 0.5577 GB, free: 4.043 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1372, allocations: 0 / 0.5577 GB, free: 4.043 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.1373, allocations: 0 / 0.5577 GB, free: 4.043 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.0006186/0.1379, allocations: 412.8 kB / 0.5581 GB, free: 3.582 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1379, allocations: 12.03 kB / 0.5581 GB, free: 3.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.298e-05/0.1379, allocations: 192 / 0.5581 GB, free: 3.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.03e-05/0.138, allocations: 38.75 kB / 0.5581 GB, free: 3.523 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.816e-05/0.138, allocations: 8.875 kB / 0.5581 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.1382, allocations: 180.4 kB / 0.5583 GB, free: 3.301 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.1382, allocations: 8.312 kB / 0.5583 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.1382, allocations: 384 / 0.5583 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.1385, allocations: 101.9 kB / 0.5584 GB, free: 3.188 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1385, allocations: 0 / 0.5584 GB, free: 3.188 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.1385, allocations: 4 kB / 0.5584 GB, free: 3.184 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.1385, allocations: 4 kB / 0.5584 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.604e-05/0.1386, allocations: 19.98 kB / 0.5585 GB, free: 3.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002008/0.1388, allocations: 165.7 kB / 0.5586 GB, free: 2.949 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.1389, allocations: 42.56 kB / 0.5587 GB, free: 2.898 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.654e-05/0.1389, allocations: 24.84 kB / 0.5587 GB, free: 2.871 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.1389, allocations: 4 kB / 0.5587 GB, free: 2.867 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.1392, allocations: 143.3 kB / 0.5588 GB, free: 2.715 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.1392, allocations: 0 / 0.5588 GB, free: 2.715 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003124/0.1395, allocations: 121.5 kB / 0.5589 GB, free: 2.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.1395, allocations: 55.41 kB / 0.559 GB, free: 2.523 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.777e-05/0.1396, allocations: 101.8 kB / 0.5591 GB, free: 2.414 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.1396, allocations: 29.7 kB / 0.5591 GB, free: 2.379 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.733e-05/0.1397, allocations: 80.14 kB / 0.5592 GB, free: 2.297 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.1397, allocations: 23.84 kB / 0.5592 GB, free: 2.273 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.964e-05/0.1398, allocations: 33.7 kB / 0.5592 GB, free: 2.234 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1399, allocations: 322.8 kB / 0.5595 GB, free: 1.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.982e-05/0.14, allocations: 19.98 kB / 0.5596 GB, free: 1.891 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.86e-05/0.1401, allocations: 74.78 kB / 0.5596 GB, free: 1.793 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.1403, allocations: 148.4 kB / 0.5598 GB, free: 1.617 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1403, allocations: 3.984 kB / 0.5598 GB, free: 1.613 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002362/0.1405, allocations: 167.1 kB / 0.5599 GB, free: 1.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/0.1406, allocations: 33.7 kB / 0.56 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.1406, allocations: 0 / 0.56 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1406, allocations: 4 kB / 0.56 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.1407, allocations: 19.92 kB / 0.56 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1407, allocations: 8.062 kB / 0.56 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.259e-05/0.1407, allocations: 12.17 kB / 0.56 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.1408, allocations: 8.219 kB / 0.56 GB, free: 1.348 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.0001531/0.1409, allocations: 131 kB / 0.5602 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.079e-05/0.1409, allocations: 15.83 kB / 0.5602 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.371e-05/0.141, allocations: 7.969 kB / 0.5602 GB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.141, allocations: 0 / 0.5602 GB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.141, allocations: 4 kB / 0.5602 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.141, allocations: 0 / 0.5602 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.1412, allocations: 173.6 kB / 0.5603 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.1412, allocations: 12 kB / 0.5604 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.469e-05/0.1412, allocations: 4.188 kB / 0.5604 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1412, allocations: 0 / 0.5604 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.1412, allocations: 7.984 kB / 0.5604 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1412, allocations: 0 / 0.5604 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1412, allocations: 3.984 kB / 0.5604 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.1414, allocations: 125 kB / 0.5605 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.791e-05/0.1415, allocations: 89 kB / 0.5606 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.1415, allocations: 8 kB / 0.5606 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.1417, allocations: 19.97 kB / 0.5606 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.1417, allocations: 7.984 kB / 0.5606 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.1418, allocations: 4 kB / 0.5606 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.303e-05/0.1418, allocations: 79.28 kB / 0.5607 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1418, allocations: 0 / 0.5607 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.1421, allocations: 47.86 kB / 0.5607 GB, free: 0.5273 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.0008395/0.1429, allocations: 0.7397 MB / 0.5615 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00022/0.1431, allocations: 135.3 kB / 0.5616 GB, free: 15.63 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1431, allocations: 3.938 kB / 0.5616 GB, free: 15.63 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 6.685e-05/0.1432, allocations: 23.98 kB / 0.5616 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.1433, allocations: 13.95 kB / 0.5616 GB, free: 15.59 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.1448, allocations: 1.433 MB / 0.563 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.1451, allocations: 0.6885 MB / 0.5637 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.288e-05/0.1452, allocations: 12.66 kB / 0.5637 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.623e-05/0.1452, allocations: 19.42 kB / 0.5637 GB, free: 13.28 MB / 430.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1452, allocations: 0 / 0.5637 GB, free: 13.28 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.1629, allocations: 3.053 MB / 0.5667 GB, free: 10.33 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.27, allocations: 10.44 kB / 0.5667 GB, free: 10.32 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.07518958899891] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 8.392555312020704 8.407296805 8.267189478 Calling exit ...