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.001426/0.001426, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001576/0.001576, allocations: 213.6 kB / 24.54 MB, free: 4.02 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.446/1.446, allocations: 230.5 MB / 258.2 MB, free: 7.977 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.2244/0.2244, allocations: 46.93 MB / 361.6 MB, free: 4.18 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.002249/0.002249, allocations: 79.86 kB / 0.497 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3569, allocations: 66.09 MB / 0.5615 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002009/0.3589, allocations: 0.5267 MB / 0.562 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.36, allocations: 454.5 kB / 0.5625 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.209e-05/0.3601, allocations: 4 kB / 0.5625 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.09e-05/0.3601, allocations: 0 / 0.5625 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.3603, allocations: 19.91 kB / 0.5625 GB, free: 3.297 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.0006435/0.3609, allocations: 171.5 kB / 0.5626 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.3611, allocations: 83.84 kB / 0.5627 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.643e-05/0.3611, allocations: 0 / 0.5627 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.679e-05/0.3612, allocations: 39.91 kB / 0.5628 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.542e-05/0.3613, allocations: 23.91 kB / 0.5628 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.3613, allocations: 8 kB / 0.5628 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002774/0.3616, allocations: 131.8 kB / 0.5629 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.583e-05/0.3616, allocations: 23.95 kB / 0.5629 GB, free: 2.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.034e-05/0.3617, allocations: 27.84 kB / 0.563 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.3619, allocations: 133.6 kB / 0.5631 GB, free: 2.668 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3619, allocations: 0 / 0.5631 GB, free: 2.668 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3619, allocations: 0 / 0.5631 GB, free: 2.668 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.3619, allocations: 0 / 0.5631 GB, free: 2.668 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.0005892/0.3625, allocations: 335.7 kB / 0.5634 GB, free: 2.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3626, allocations: 8.031 kB / 0.5634 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.326e-05/0.3626, allocations: 42.75 kB / 0.5635 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.3627, allocations: 8.891 kB / 0.5635 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.3629, allocations: 118.5 kB / 0.5636 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3629, allocations: 4.375 kB / 0.5636 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.3629, allocations: 8.359 kB / 0.5636 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.3631, allocations: 86.2 kB / 0.5637 GB, free: 1.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3631, allocations: 7.875 kB / 0.5637 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.3631, allocations: 0 / 0.5637 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3631, allocations: 0 / 0.5637 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.122e-05/0.3632, allocations: 27.97 kB / 0.5637 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002073/0.3634, allocations: 140.7 kB / 0.5638 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.3635, allocations: 46.62 kB / 0.5639 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.764e-05/0.3636, allocations: 20.78 kB / 0.5639 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.3636, allocations: 4.062 kB / 0.5639 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.3639, allocations: 139.2 kB / 0.564 GB, free: 1.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.3639, allocations: 0 / 0.564 GB, free: 1.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003333/0.3642, allocations: 125.5 kB / 0.5642 GB, free: 1.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.3643, allocations: 55.41 kB / 0.5642 GB, free: 1.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.3644, allocations: 105.8 kB / 0.5643 GB, free: 1.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.3644, allocations: 29.7 kB / 0.5643 GB, free: 1.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.217e-05/0.3645, allocations: 80.14 kB / 0.5644 GB, free: 1.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.3645, allocations: 23.86 kB / 0.5644 GB, free: 1.098 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-05/0.3646, allocations: 37.7 kB / 0.5645 GB, free: 1.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3647, allocations: 314.8 kB / 0.5648 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.744e-05/0.3648, allocations: 23.98 kB / 0.5648 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.3649, allocations: 90.78 kB / 0.5649 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.3651, allocations: 144.5 kB / 0.565 GB, free: 440 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3651, allocations: 0 / 0.565 GB, free: 440 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002456/0.3654, allocations: 163.1 kB / 0.5652 GB, free: 264 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.3654, allocations: 33.69 kB / 0.5652 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3654, allocations: 4 kB / 0.5652 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.3654, allocations: 4 kB / 0.5652 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.3655, allocations: 15.94 kB / 0.5652 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.3656, allocations: 8.266 kB / 0.5652 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.226e-05/0.3656, allocations: 15.95 kB / 0.5653 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3656, allocations: 11.94 kB / 0.5653 GB, free: 164 kB / 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.0001643/0.3658, allocations: 130.2 kB / 0.5654 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.3658, allocations: 15.88 kB / 0.5654 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.3659, allocations: 4.062 kB / 0.5654 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3659, allocations: 0 / 0.5654 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3659, allocations: 0 / 0.5654 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3659, allocations: 4 kB / 0.5654 GB, free: 0 / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.366, allocations: 144.7 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.366, allocations: 288 / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-05/0.3661, allocations: 7.938 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3661, allocations: 0 / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.3661, allocations: 3.938 kB / 0.5656 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.3661, allocations: 4 kB / 0.5656 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3661, allocations: 3.984 kB / 0.5656 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.3663, allocations: 129 kB / 0.5657 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.749e-05/0.3663, allocations: 15.94 kB / 0.5657 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.3663, allocations: 4 kB / 0.5657 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.3665, allocations: 19.97 kB / 0.5657 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.443e-05/0.3665, allocations: 4 kB / 0.5657 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.3666, allocations: 7.984 kB / 0.5658 GB, free: 15.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.553e-05/0.3666, allocations: 79.28 kB / 0.5658 GB, free: 15.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3666, allocations: 0 / 0.5658 GB, free: 15.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002806/0.3669, allocations: 47.86 kB / 0.5659 GB, free: 15.48 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.0008444/0.3677, allocations: 0.7471 MB / 0.5666 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000229/0.368, allocations: 127.2 kB / 0.5667 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.368, allocations: 4 kB / 0.5667 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.022e-05/0.368, allocations: 23.98 kB / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000153/0.3682, allocations: 8 kB / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.3698, allocations: 1.436 MB / 0.5682 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.3701, allocations: 0.6884 MB / 0.5688 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.075e-05/0.3702, allocations: 12.66 kB / 0.5688 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.276e-05/0.3702, allocations: 11.44 kB / 0.5689 GB, free: 12.24 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3702, allocations: 0 / 0.5689 GB, free: 12.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/0.396, allocations: 3.09 MB / 0.5719 GB, free: 9.223 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.385, allocations: 6.188 kB / 0.5719 GB, free: 9.219 MB / 414.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.152538483962417] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 8.470160434022546 8.493044309 8.126906052 Calling exit ...