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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 111.3 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 186.2 kB / 19.38 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 243.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2137/0.2137, allocations: 44.19 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 64.05 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3543, allocations: 60.81 MB / 0.5196 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001653/0.356, allocations: 0.5417 MB / 0.5201 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008533/0.3569, allocations: 455.7 kB / 0.5205 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.106e-05/0.357, allocations: 0 / 0.5205 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.075e-05/0.3571, allocations: 1.062 kB / 0.5205 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.3572, allocations: 7.031 kB / 0.5205 GB, free: 2.973 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0005605/0.3578, allocations: 168.1 kB / 0.5207 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.3579, allocations: 84.83 kB / 0.5208 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.878e-05/0.358, allocations: 1.969 kB / 0.5208 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.6e-05/0.3581, allocations: 47.83 kB / 0.5208 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.097e-05/0.3581, allocations: 17.94 kB / 0.5208 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.885e-05/0.3582, allocations: 3.781 kB / 0.5208 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000214/0.3584, allocations: 94.11 kB / 0.5209 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.767e-05/0.3584, allocations: 21.64 kB / 0.5209 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.88e-05/0.3585, allocations: 24.31 kB / 0.521 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.3588, allocations: 137.8 kB / 0.5211 GB, free: 2.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3588, allocations: 0 / 0.5211 GB, free: 2.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3588, allocations: 4 kB / 0.5211 GB, free: 2.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.3588, allocations: 1.188 kB / 0.5211 GB, free: 2.75 MB / 382.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.0005999/0.3594, allocations: 402.4 kB / 0.5215 GB, free: 2.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3594, allocations: 10.38 kB / 0.5215 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.566e-05/0.3595, allocations: 4.734 kB / 0.5215 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.3597, allocations: 180.2 kB / 0.5217 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.3597, allocations: 7.141 kB / 0.5217 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.277e-05/0.3597, allocations: 3.359 kB / 0.5217 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.3599, allocations: 92.19 kB / 0.5218 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3599, allocations: 4.188 kB / 0.5218 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.36, allocations: 5.953 kB / 0.5218 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.36, allocations: 1.125 kB / 0.5218 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.759e-05/0.36, allocations: 26.14 kB / 0.5218 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001544/0.3602, allocations: 173.7 kB / 0.522 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.523e-05/0.3603, allocations: 44.23 kB / 0.522 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.554e-05/0.3604, allocations: 23.22 kB / 0.522 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.3604, allocations: 1.125 kB / 0.522 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.3607, allocations: 134.1 kB / 0.5222 GB, free: 1.762 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.3607, allocations: 3.938 kB / 0.5222 GB, free: 1.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003077/0.361, allocations: 126.7 kB / 0.5223 GB, free: 1.699 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.361, allocations: 56.05 kB / 0.5223 GB, free: 1.637 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.477e-05/0.3611, allocations: 103.1 kB / 0.5224 GB, free: 1.531 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.3611, allocations: 28.95 kB / 0.5225 GB, free: 1.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.016e-05/0.3611, allocations: 85.91 kB / 0.5226 GB, free: 1.414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.3612, allocations: 26.78 kB / 0.5226 GB, free: 1.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.3612, allocations: 30.64 kB / 0.5226 GB, free: 1.371 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.638e-05/0.3613, allocations: 319.2 kB / 0.5229 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.926e-05/0.3613, allocations: 21.55 kB / 0.5229 GB, free: 1.051 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.438e-05/0.3614, allocations: 79.36 kB / 0.523 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.3616, allocations: 147 kB / 0.5232 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3616, allocations: 1.875 kB / 0.5232 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002117/0.3618, allocations: 157.5 kB / 0.5233 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.3619, allocations: 40.3 kB / 0.5233 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.3619, allocations: 6.281 kB / 0.5233 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3619, allocations: 3.906 kB / 0.5234 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.362, allocations: 18.08 kB / 0.5234 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.362, allocations: 4.328 kB / 0.5234 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.134e-05/0.3621, allocations: 7.531 kB / 0.5234 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.3621, allocations: 9.609 kB / 0.5234 GB, free: 0.6914 MB / 382.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.0001418/0.3623, allocations: 122 kB / 0.5235 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.3623, allocations: 11.94 kB / 0.5235 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.038e-05/0.3624, allocations: 14.52 kB / 0.5235 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3624, allocations: 1.125 kB / 0.5235 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3624, allocations: 1.125 kB / 0.5235 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3624, allocations: 4.797 kB / 0.5235 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.3625, allocations: 169.3 kB / 0.5237 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3625, allocations: 4.875 kB / 0.5237 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.702e-05/0.3625, allocations: 10.55 kB / 0.5237 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3626, allocations: 3.938 kB / 0.5237 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.3626, allocations: 6.688 kB / 0.5237 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3626, allocations: 5.75 kB / 0.5237 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3626, allocations: 0 / 0.5237 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.3628, allocations: 131.4 kB / 0.5239 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.082e-05/0.3628, allocations: 90.2 kB / 0.5239 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.3628, allocations: 4.156 kB / 0.5239 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.363, allocations: 20.19 kB / 0.524 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.3631, allocations: 5.5 kB / 0.524 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.3631, allocations: 9.891 kB / 0.524 GB, free: 136 kB / 382.1 MB Notification: Performance of sorting global known variables: time 2.212e-05/0.3631, allocations: 79.31 kB / 0.5241 GB, free: 60 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3631, allocations: 0 / 0.5241 GB, free: 60 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003043/0.3634, allocations: 45.03 kB / 0.5241 GB, free: 48 kB / 382.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.0003956/0.3638, allocations: 181.2 kB / 0.5243 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.3641, allocations: 127.1 kB / 0.5244 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3641, allocations: 1.031 kB / 0.5244 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.183e-05/0.3641, allocations: 31.8 kB / 0.5244 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.3643, allocations: 9.188 kB / 0.5244 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003748/0.3647, allocations: 160.5 kB / 0.5246 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.365, allocations: 0.6925 MB / 0.5253 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/0.365, allocations: 17.95 kB / 0.5253 GB, free: 14.98 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.365, allocations: 3.938 kB / 0.5253 GB, free: 14.97 MB / 398.1 MB Notification: Performance of Templates: time 0.003927/0.369, allocations: 1.799 MB / 0.527 GB, free: 14.48 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y