Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 211.8 kB / 24.51 MB, free: 3.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2293/0.2293, allocations: 44.93 MB / 359.6 MB, free: 6.07 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 78.08 kB / 0.4938 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3801, allocations: 65.46 MB / 0.5577 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001841/0.3819, allocations: 0.5298 MB / 0.5582 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.3829, allocations: 427.2 kB / 0.5587 GB, free: 6.613 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.167e-05/0.383, allocations: 0 / 0.5587 GB, free: 6.613 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.436e-05/0.3831, allocations: 3.938 kB / 0.5587 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.3832, allocations: 19.91 kB / 0.5587 GB, free: 6.59 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0006203/0.3838, allocations: 175.3 kB / 0.5588 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.384, allocations: 79.86 kB / 0.5589 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.819e-05/0.384, allocations: 0 / 0.5589 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.481e-05/0.3841, allocations: 43.89 kB / 0.559 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.383e-05/0.3842, allocations: 19.97 kB / 0.559 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.3842, allocations: 4 kB / 0.559 GB, free: 6.277 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002776/0.3845, allocations: 135.8 kB / 0.5591 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.998e-05/0.3845, allocations: 27.89 kB / 0.5591 GB, free: 6.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.66e-05/0.3846, allocations: 27.91 kB / 0.5592 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.3848, allocations: 129.5 kB / 0.5593 GB, free: 5.965 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3848, allocations: 0 / 0.5593 GB, free: 5.965 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3848, allocations: 0 / 0.5593 GB, free: 5.965 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.3849, allocations: 0 / 0.5593 GB, free: 5.965 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.000652/0.3855, allocations: 342 kB / 0.5596 GB, free: 5.594 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3855, allocations: 12.03 kB / 0.5596 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.583e-05/0.3856, allocations: 4.188 kB / 0.5596 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.971e-05/0.3856, allocations: 42.69 kB / 0.5597 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.59e-05/0.3857, allocations: 4.891 kB / 0.5597 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.3859, allocations: 126.5 kB / 0.5598 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.3859, allocations: 4.359 kB / 0.5598 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.3859, allocations: 4.375 kB / 0.5598 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.3861, allocations: 93.95 kB / 0.5599 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.3861, allocations: 0 / 0.5599 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.3861, allocations: 0 / 0.5599 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.3861, allocations: 0 / 0.5599 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.825e-05/0.3862, allocations: 27.97 kB / 0.5599 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001923/0.3864, allocations: 140.6 kB / 0.5601 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.966e-05/0.3865, allocations: 42.55 kB / 0.5601 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.776e-05/0.3865, allocations: 20.91 kB / 0.5601 GB, free: 4.988 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.3865, allocations: 4 kB / 0.5601 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.3868, allocations: 139.3 kB / 0.5603 GB, free: 4.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.3868, allocations: 0 / 0.5603 GB, free: 4.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003245/0.3872, allocations: 129.5 kB / 0.5604 GB, free: 4.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.3872, allocations: 55.41 kB / 0.5604 GB, free: 4.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.122e-05/0.3873, allocations: 93.86 kB / 0.5605 GB, free: 4.535 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.3873, allocations: 41.69 kB / 0.5606 GB, free: 4.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.463e-05/0.3874, allocations: 80.14 kB / 0.5606 GB, free: 4.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.138e-05/0.3874, allocations: 19.86 kB / 0.5607 GB, free: 4.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.776e-05/0.3875, allocations: 29.7 kB / 0.5607 GB, free: 4.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3876, allocations: 322.8 kB / 0.561 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.711e-05/0.3877, allocations: 49.69 kB / 0.561 GB, free: 3.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.3878, allocations: 100.5 kB / 0.5611 GB, free: 3.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.388, allocations: 152.4 kB / 0.5613 GB, free: 3.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.388, allocations: 0 / 0.5613 GB, free: 3.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002506/0.3883, allocations: 189.1 kB / 0.5615 GB, free: 3.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.702e-05/0.3883, allocations: 33.69 kB / 0.5615 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3884, allocations: 4.219 kB / 0.5615 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3884, allocations: 7.938 kB / 0.5615 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3885, allocations: 20 kB / 0.5615 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.3885, allocations: 7.922 kB / 0.5615 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.431e-05/0.3886, allocations: 15.95 kB / 0.5615 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.3886, allocations: 8 kB / 0.5616 GB, free: 3.359 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.0001684/0.3887, allocations: 128.7 kB / 0.5617 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.3888, allocations: 15.88 kB / 0.5617 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.942e-05/0.3888, allocations: 8.062 kB / 0.5617 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3888, allocations: 4 kB / 0.5617 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3888, allocations: 0 / 0.5617 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3888, allocations: 0 / 0.5617 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.389, allocations: 136.7 kB / 0.5618 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.389, allocations: 3.938 kB / 0.5618 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-05/0.3891, allocations: 11.92 kB / 0.5618 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3891, allocations: 0 / 0.5618 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.3891, allocations: 0 / 0.5618 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.3891, allocations: 4 kB / 0.5618 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3891, allocations: 0 / 0.5618 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002395/0.3893, allocations: 133.1 kB / 0.562 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.107e-05/0.3894, allocations: 11.89 kB / 0.562 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.3894, allocations: 7.984 kB / 0.562 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.3896, allocations: 19.98 kB / 0.562 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.3896, allocations: 3.984 kB / 0.562 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.3896, allocations: 4 kB / 0.562 GB, free: 2.805 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.074e-05/0.3897, allocations: 91.39 kB / 0.5621 GB, free: 2.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3897, allocations: 0 / 0.5621 GB, free: 2.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.39, allocations: 43.88 kB / 0.5622 GB, free: 2.672 MB / 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.0009227/0.3909, allocations: 0.7555 MB / 0.5629 GB, free: 1.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002558/0.3912, allocations: 145 kB / 0.563 GB, free: 1.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3912, allocations: 0 / 0.563 GB, free: 1.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.545e-05/0.3912, allocations: 36.34 kB / 0.5631 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001669/0.3914, allocations: 15.98 kB / 0.5631 GB, free: 1.699 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.3931, allocations: 1.542 MB / 0.5646 GB, free: 8 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.92e-05/0.3932, allocations: 67.88 kB / 0.5646 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.636e-05/0.3933, allocations: 12.66 kB / 0.5647 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.769e-05/0.3933, allocations: 19.42 kB / 0.5647 GB, free: 15.89 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3933, allocations: 0 / 0.5647 GB, free: 15.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02267/0.416, allocations: 3.371 MB / 0.568 GB, free: 12.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.45, allocations: 14.17 kB / 0.568 GB, free: 12.66 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.471737426938489] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.62942729506176 11.657139841 11.26723259 Calling exit ...