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.001364/0.001364, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001506/0.001506, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.444/1.444, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.2246/0.2246, allocations: 44.92 MB / 359.6 MB, free: 6.285 MB / 286.1 MB " [Timeout remaining time 180] 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.002896/0.002896, allocations: 67.89 kB / 0.4939 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.387, allocations: 65.47 MB / 0.5578 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001706/0.3887, allocations: 0.5296 MB / 0.5583 GB, free: 7.133 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009579/0.3897, allocations: 448.9 kB / 0.5587 GB, free: 6.805 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.759e-05/0.3897, allocations: 0 / 0.5587 GB, free: 6.805 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.413e-05/0.3898, allocations: 5 kB / 0.5587 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.3899, allocations: 16.81 kB / 0.5588 GB, free: 6.785 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.0006629/0.3906, allocations: 175 kB / 0.5589 GB, free: 6.637 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.3908, allocations: 87.78 kB / 0.559 GB, free: 6.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.775e-05/0.3908, allocations: 3.984 kB / 0.559 GB, free: 6.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.455e-05/0.3909, allocations: 35.97 kB / 0.559 GB, free: 6.512 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.246e-05/0.391, allocations: 19.92 kB / 0.5591 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.391, allocations: 4 kB / 0.5591 GB, free: 6.488 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004127/0.3915, allocations: 139.7 kB / 0.5592 GB, free: 6.352 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.487e-05/0.3915, allocations: 19.97 kB / 0.5592 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.895e-05/0.3916, allocations: 27.84 kB / 0.5593 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.3919, allocations: 133.5 kB / 0.5594 GB, free: 6.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3919, allocations: 0 / 0.5594 GB, free: 6.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.701e-06/0.3919, allocations: 3.984 kB / 0.5594 GB, free: 6.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3919, allocations: 0 / 0.5594 GB, free: 6.172 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.0007282/0.3926, allocations: 335.7 kB / 0.5597 GB, free: 5.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.3927, allocations: 8.031 kB / 0.5597 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.697e-05/0.3927, allocations: 4.188 kB / 0.5597 GB, free: 5.793 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.725e-05/0.3928, allocations: 38.69 kB / 0.5598 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.779e-05/0.3928, allocations: 16.88 kB / 0.5598 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.3931, allocations: 122.5 kB / 0.5599 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.3931, allocations: 4.375 kB / 0.5599 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.3931, allocations: 384 / 0.5599 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.3934, allocations: 89.95 kB / 0.56 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3934, allocations: 3.984 kB / 0.56 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.2e-05/0.3934, allocations: 4 kB / 0.56 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.3934, allocations: 0 / 0.56 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001104/0.3936, allocations: 27.92 kB / 0.56 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002576/0.3938, allocations: 140.7 kB / 0.5601 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001322/0.3939, allocations: 42.56 kB / 0.5602 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.872e-05/0.394, allocations: 20.91 kB / 0.5602 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.394, allocations: 0 / 0.5602 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004063/0.3944, allocations: 139.2 kB / 0.5603 GB, free: 5.051 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.763e-06/0.3944, allocations: 0 / 0.5603 GB, free: 5.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004506/0.3949, allocations: 129.8 kB / 0.5605 GB, free: 4.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.395, allocations: 59.34 kB / 0.5605 GB, free: 4.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.3951, allocations: 101.8 kB / 0.5606 GB, free: 4.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/0.3951, allocations: 25.7 kB / 0.5606 GB, free: 4.707 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.123e-05/0.3952, allocations: 80.14 kB / 0.5607 GB, free: 4.625 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.75e-05/0.3953, allocations: 31.98 kB / 0.5607 GB, free: 4.594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.177e-05/0.3953, allocations: 33.72 kB / 0.5608 GB, free: 4.555 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3955, allocations: 314.8 kB / 0.5611 GB, free: 4.238 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.188e-05/0.3956, allocations: 27.98 kB / 0.5611 GB, free: 4.211 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.3957, allocations: 74.78 kB / 0.5612 GB, free: 4.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.396, allocations: 148.4 kB / 0.5613 GB, free: 3.938 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.396, allocations: 0 / 0.5613 GB, free: 3.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003797/0.3964, allocations: 167.1 kB / 0.5615 GB, free: 3.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.876e-05/0.3964, allocations: 33.7 kB / 0.5615 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3964, allocations: 0 / 0.5615 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.3965, allocations: 4 kB / 0.5615 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.3966, allocations: 19.98 kB / 0.5615 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.3966, allocations: 7.938 kB / 0.5615 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.32e-05/0.3967, allocations: 11.89 kB / 0.5616 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.3967, allocations: 8.219 kB / 0.5616 GB, free: 3.672 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.0002157/0.3969, allocations: 140.5 kB / 0.5617 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.397, allocations: 12.08 kB / 0.5617 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.874e-05/0.3971, allocations: 12.05 kB / 0.5617 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3971, allocations: 0 / 0.5617 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.3971, allocations: 4 kB / 0.5617 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3971, allocations: 0 / 0.5617 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.3973, allocations: 140.7 kB / 0.5619 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3973, allocations: 3.938 kB / 0.5619 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.201e-05/0.3973, allocations: 7.938 kB / 0.5619 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3973, allocations: 0 / 0.5619 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.3974, allocations: 7.984 kB / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3974, allocations: 0 / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3974, allocations: 0 / 0.5619 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003411/0.3977, allocations: 129 kB / 0.562 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.611e-05/0.3977, allocations: 11.89 kB / 0.562 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.3978, allocations: 8 kB / 0.562 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.3981, allocations: 23.91 kB / 0.562 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.3981, allocations: 7.984 kB / 0.562 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.3981, allocations: 4 kB / 0.562 GB, free: 3.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.932e-05/0.3982, allocations: 75.28 kB / 0.5621 GB, free: 3.027 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3982, allocations: 0 / 0.5621 GB, free: 3.027 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004412/0.3986, allocations: 51.86 kB / 0.5622 GB, free: 2.977 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.0009067/0.3995, allocations: 0.7455 MB / 0.5629 GB, free: 2.223 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002433/0.3998, allocations: 131.5 kB / 0.563 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3998, allocations: 0 / 0.563 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.611e-05/0.3999, allocations: 31.91 kB / 0.5631 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.4, allocations: 11.94 kB / 0.5631 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.4016, allocations: 1.432 MB / 0.5645 GB, free: 488 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.4019, allocations: 0.6851 MB / 0.5651 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.982e-05/0.402, allocations: 16.66 kB / 0.5651 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.324e-05/0.402, allocations: 19.42 kB / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.402, allocations: 0 / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.4255, allocations: 3.205 MB / 0.5683 GB, free: 12.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.29, allocations: 9.547 kB / 0.5683 GB, free: 12.66 MB / 414.1 MB " [Timeout remaining time 649] (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.204456766950898] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.450619413983077 11.465574539 11.070231235 Calling exit ...