Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: 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_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001139/0.001139, allocations: 115.7 kB / 17.78 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 201.2 kB / 18.73 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2502/0.2502, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4379/0.4393, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001835/0.4412, allocations: 0.5388 MB / 0.5315 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009749/0.4422, allocations: 435.8 kB / 0.5319 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.856e-05/0.4423, allocations: 0 / 0.5319 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.289e-05/0.4424, allocations: 9.375 kB / 0.5319 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.4425, allocations: 5.531 kB / 0.5319 GB, free: 12.89 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.0005844/0.4431, allocations: 165.3 kB / 0.5321 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001795/0.4433, allocations: 82.81 kB / 0.5322 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.183e-05/0.4434, allocations: 3.219 kB / 0.5322 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.558e-05/0.4434, allocations: 47.45 kB / 0.5322 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.826e-05/0.4435, allocations: 17.3 kB / 0.5322 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.4436, allocations: 3.625 kB / 0.5322 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.4438, allocations: 96.94 kB / 0.5323 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.076e-05/0.4438, allocations: 23.39 kB / 0.5324 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.961e-05/0.4439, allocations: 23.97 kB / 0.5324 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.4441, allocations: 132.5 kB / 0.5325 GB, free: 12.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.4441, allocations: 0 / 0.5325 GB, free: 12.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4441, allocations: 0 / 0.5325 GB, free: 12.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.4441, allocations: 0 / 0.5325 GB, free: 12.55 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.0006222/0.4448, allocations: 409.4 kB / 0.5329 GB, free: 12.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.4448, allocations: 13.56 kB / 0.5329 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.765e-05/0.4449, allocations: 13.02 kB / 0.5329 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/0.4451, allocations: 184.5 kB / 0.5331 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-06/0.4451, allocations: 1.75 kB / 0.5331 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.4451, allocations: 3.125 kB / 0.5331 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.4453, allocations: 89.81 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.4454, allocations: 4.172 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.4454, allocations: 9.312 kB / 0.5332 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.4454, allocations: 4 kB / 0.5332 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.342e-05/0.4455, allocations: 25.72 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002853/0.4458, allocations: 160.5 kB / 0.5334 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.037e-05/0.4459, allocations: 52.44 kB / 0.5334 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.043e-05/0.4459, allocations: 27.89 kB / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.446, allocations: 0 / 0.5335 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/0.4462, allocations: 128.7 kB / 0.5336 GB, free: 11.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.4462, allocations: 0 / 0.5336 GB, free: 11.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003305/0.4466, allocations: 132.5 kB / 0.5337 GB, free: 11.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.4466, allocations: 59.53 kB / 0.5338 GB, free: 11.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.904e-05/0.4467, allocations: 93.98 kB / 0.5339 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.4467, allocations: 36.44 kB / 0.5339 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.079e-05/0.4468, allocations: 84.14 kB / 0.534 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.4468, allocations: 27.86 kB / 0.534 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.4469, allocations: 32.7 kB / 0.534 GB, free: 11.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.4471, allocations: 320.2 kB / 0.5343 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.65e-05/0.4471, allocations: 21.73 kB / 0.5344 GB, free: 10.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.773e-05/0.4472, allocations: 80.8 kB / 0.5344 GB, free: 10.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.4475, allocations: 148.2 kB / 0.5346 GB, free: 10.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4475, allocations: 0 / 0.5346 GB, free: 10.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000241/0.4477, allocations: 158 kB / 0.5347 GB, free: 10.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.9e-05/0.4478, allocations: 36.95 kB / 0.5348 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4478, allocations: 4.969 kB / 0.5348 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.4478, allocations: 7.234 kB / 0.5348 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.4479, allocations: 16.69 kB / 0.5348 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.448, allocations: 2.562 kB / 0.5348 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.358e-05/0.448, allocations: 15.64 kB / 0.5348 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.4481, allocations: 10.14 kB / 0.5348 GB, free: 10.32 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.0001458/0.4482, allocations: 120.6 kB / 0.5349 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.031e-05/0.4483, allocations: 11.48 kB / 0.5349 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.797e-05/0.4483, allocations: 14.27 kB / 0.535 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.4483, allocations: 4 kB / 0.535 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4483, allocations: 1.438 kB / 0.535 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.758e-06/0.4483, allocations: 0 / 0.535 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.4485, allocations: 170.8 kB / 0.5351 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4485, allocations: 3.984 kB / 0.5351 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.377e-05/0.4485, allocations: 4.406 kB / 0.5351 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4486, allocations: 5.062 kB / 0.5351 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.4486, allocations: 1.125 kB / 0.5351 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4486, allocations: 1.188 kB / 0.5351 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4486, allocations: 0 / 0.5351 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002105/0.4488, allocations: 131.1 kB / 0.5353 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.062e-05/0.4489, allocations: 91.25 kB / 0.5354 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.4489, allocations: 10.17 kB / 0.5354 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.4491, allocations: 21.2 kB / 0.5354 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.627e-05/0.4491, allocations: 3.344 kB / 0.5354 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.4492, allocations: 7.406 kB / 0.5354 GB, free: 9.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.858e-05/0.4492, allocations: 81.64 kB / 0.5355 GB, free: 9.652 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4492, allocations: 4 kB / 0.5355 GB, free: 9.648 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002967/0.4495, allocations: 39.81 kB / 0.5355 GB, free: 9.641 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.0005042/0.45, allocations: 182.3 kB / 0.5357 GB, free: 9.512 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003044/0.4503, allocations: 125.6 kB / 0.5358 GB, free: 9.422 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4504, allocations: 0 / 0.5358 GB, free: 9.422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.43e-05/0.4504, allocations: 38.14 kB / 0.5358 GB, free: 9.402 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001879/0.4506, allocations: 18.88 kB / 0.5359 GB, free: 9.391 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005035/0.4512, allocations: 136.7 kB / 0.536 GB, free: 9.266 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.4516, allocations: 0.6821 MB / 0.5367 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.297e-05/0.4516, allocations: 17.72 kB / 0.5367 GB, free: 8.555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.648e-05/0.4517, allocations: 16.58 kB / 0.5367 GB, free: 8.543 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4517, allocations: 0 / 0.5367 GB, free: 8.543 MB / 398.1 MB Notification: Performance of Templates: time 0.006727/0.4584, allocations: 1.994 MB / 0.5386 GB, free: 7.527 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches