Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001767/0.001767, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.002051/0.002051, allocations: 164.5 kB / 24.49 MB, free: 3.453 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.531/1.531, allocations: 177.2 MB / 204.9 MB, free: 9.035 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2095/0.2095, allocations: 34.27 MB / 295.5 MB, free: 14.6 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+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: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 67.88 kB / 443.1 MB, free: 6.719 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3549, allocations: 66.02 MB / 0.4972 GB, free: 29.87 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001559/0.3565, allocations: 0.5296 MB / 0.4977 GB, free: 29.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007559/0.3572, allocations: 435.8 kB / 0.4982 GB, free: 29.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.927e-05/0.3573, allocations: 0 / 0.4982 GB, free: 29.29 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 7.938e-05/0.3573, allocations: 3.938 kB / 0.4982 GB, free: 29.28 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.3575, allocations: 6.625 kB / 0.4982 GB, free: 29.28 MB / 446.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.0005422/0.358, allocations: 171.3 kB / 0.4983 GB, free: 29.2 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.3582, allocations: 86.23 kB / 0.4984 GB, free: 29.17 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.785e-05/0.3582, allocations: 6.641 kB / 0.4984 GB, free: 29.17 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.142e-05/0.3582, allocations: 38.05 kB / 0.4985 GB, free: 29.16 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.763e-05/0.3583, allocations: 13.56 kB / 0.4985 GB, free: 29.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.448e-05/0.3583, allocations: 3.125 kB / 0.4985 GB, free: 29.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002364/0.3586, allocations: 140 kB / 0.4986 GB, free: 29.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.505e-05/0.3586, allocations: 21.77 kB / 0.4986 GB, free: 29.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.339e-05/0.3587, allocations: 21.14 kB / 0.4986 GB, free: 29.1 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001868/0.3588, allocations: 131.1 kB / 0.4988 GB, free: 29.06 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3589, allocations: 0 / 0.4988 GB, free: 29.06 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3589, allocations: 0 / 0.4988 GB, free: 29.06 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.3589, allocations: 3.219 kB / 0.4988 GB, free: 29.06 MB / 446.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.0004726/0.3593, allocations: 339.5 kB / 0.4991 GB, free: 28.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.3594, allocations: 9.219 kB / 0.4991 GB, free: 28.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.442e-05/0.3594, allocations: 12.11 kB / 0.4991 GB, free: 28.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.3596, allocations: 123.1 kB / 0.4992 GB, free: 28.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3596, allocations: 3.562 kB / 0.4992 GB, free: 28.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.3596, allocations: 7.828 kB / 0.4992 GB, free: 28.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.3598, allocations: 95.58 kB / 0.4993 GB, free: 28.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.3598, allocations: 4.172 kB / 0.4993 GB, free: 28.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.3598, allocations: 7.156 kB / 0.4993 GB, free: 28.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.3598, allocations: 0 / 0.4993 GB, free: 28.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.203e-05/0.3599, allocations: 23.75 kB / 0.4994 GB, free: 28.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000118/0.36, allocations: 107.3 kB / 0.4995 GB, free: 28.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.132e-05/0.3601, allocations: 41.75 kB / 0.4995 GB, free: 28.38 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.765e-05/0.3601, allocations: 29.52 kB / 0.4995 GB, free: 28.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.3601, allocations: 3.938 kB / 0.4995 GB, free: 28.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002039/0.3603, allocations: 125.3 kB / 0.4997 GB, free: 28.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.472e-06/0.3603, allocations: 0 / 0.4997 GB, free: 28.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.000278/0.3606, allocations: 134.9 kB / 0.4998 GB, free: 28.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.3606, allocations: 58.72 kB / 0.4998 GB, free: 28.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.446e-05/0.3607, allocations: 96.56 kB / 0.4999 GB, free: 28.06 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.3607, allocations: 32.86 kB / 0.5 GB, free: 28.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.909e-05/0.3607, allocations: 80.14 kB / 0.5 GB, free: 27.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.3608, allocations: 26.86 kB / 0.5001 GB, free: 27.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.3608, allocations: 38.23 kB / 0.5001 GB, free: 27.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.426e-05/0.3609, allocations: 318.4 kB / 0.5004 GB, free: 27.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.408e-05/0.3609, allocations: 50.36 kB / 0.5005 GB, free: 27.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.553e-05/0.361, allocations: 106 kB / 0.5006 GB, free: 27.44 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.3611, allocations: 146.6 kB / 0.5007 GB, free: 27.31 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3611, allocations: 3.344 kB / 0.5007 GB, free: 27.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000178/0.3613, allocations: 177.7 kB / 0.5009 GB, free: 27.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3613, allocations: 38.59 kB / 0.5009 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3613, allocations: 4.016 kB / 0.5009 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3613, allocations: 3.25 kB / 0.5009 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.3614, allocations: 20.47 kB / 0.5009 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3615, allocations: 11.39 kB / 0.5009 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.11e-05/0.3615, allocations: 19.05 kB / 0.501 GB, free: 27.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.3615, allocations: 6.688 kB / 0.501 GB, free: 27.12 MB / 446.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.0001092/0.3616, allocations: 124.3 kB / 0.5011 GB, free: 27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/0.3617, allocations: 11.11 kB / 0.5011 GB, free: 26.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.401e-05/0.3617, allocations: 15.31 kB / 0.5011 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.3617, allocations: 0 / 0.5011 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3617, allocations: 0 / 0.5011 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3617, allocations: 3.516 kB / 0.5011 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.049e-05/0.3618, allocations: 111.1 kB / 0.5012 GB, free: 26.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3618, allocations: 3.75 kB / 0.5012 GB, free: 26.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.388e-05/0.3618, allocations: 7.344 kB / 0.5012 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.3618, allocations: 0 / 0.5012 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.3618, allocations: 7.156 kB / 0.5012 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.3618, allocations: 3.938 kB / 0.5012 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3618, allocations: 3.375 kB / 0.5013 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001687/0.362, allocations: 131.1 kB / 0.5014 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.384e-06/0.362, allocations: 7.078 kB / 0.5014 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.362, allocations: 7.344 kB / 0.5014 GB, free: 26.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.3622, allocations: 28.3 kB / 0.5014 GB, free: 26.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.612e-05/0.3622, allocations: 6.531 kB / 0.5014 GB, free: 26.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.3623, allocations: 10.52 kB / 0.5014 GB, free: 26.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.018e-05/0.3623, allocations: 78.28 kB / 0.5015 GB, free: 26.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3623, allocations: 0 / 0.5015 GB, free: 26.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000272/0.3626, allocations: 46.44 kB / 0.5016 GB, free: 26.64 MB / 446.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.0003687/0.3629, allocations: 184.4 kB / 0.5017 GB, free: 26.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001726/0.3631, allocations: 149.3 kB / 0.5019 GB, free: 26.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3631, allocations: 0 / 0.5019 GB, free: 26.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.968e-05/0.3631, allocations: 34.73 kB / 0.5019 GB, free: 26.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.3633, allocations: 3.281 kB / 0.5019 GB, free: 26.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003125/0.3636, allocations: 147 kB / 0.502 GB, free: 26.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.159e-05/0.3637, allocations: 75.59 kB / 0.5021 GB, free: 26.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.98e-05/0.3637, allocations: 13.86 kB / 0.5021 GB, free: 26.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.123e-05/0.3637, allocations: 14.84 kB / 0.5021 GB, free: 26.19 MB / 446.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3637, allocations: 0 / 0.5021 GB, free: 26.19 MB / 446.1 MB Notification: Performance of Templates: time 0.004672/0.3684, allocations: 2.075 MB / 0.5042 GB, free: 25.93 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0347066971007735]