Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008667/0.0008667, allocations: 101.4 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3616/0.3616, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001274, allocations: 59.91 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3013, allocations: 62.01 MB / 0.5152 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.00172/0.303, allocations: 0.605 MB / 0.5157 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.3041, allocations: 0.6038 MB / 0.5163 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.192e-05/0.3042, allocations: 7.938 kB / 0.5163 GB, free: 37 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.107e-05/0.3042, allocations: 7.312 kB / 0.5163 GB, free: 37 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.137e-06/0.3043, allocations: 0 / 0.5163 GB, free: 37 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:842:5-926:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.randomNumbers‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005987/0.3049, allocations: 165.9 kB / 0.5165 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.089e-05/0.3049, allocations: 25.14 kB / 0.5165 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.561e-05/0.305, allocations: 2.906 kB / 0.5165 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.548e-05/0.305, allocations: 21.28 kB / 0.5166 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.621e-05/0.3051, allocations: 16.27 kB / 0.5166 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.3051, allocations: 2.969 kB / 0.5166 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.3053, allocations: 165 kB / 0.5167 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.867e-05/0.3054, allocations: 67.73 kB / 0.5168 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.746e-05/0.3055, allocations: 52.27 kB / 0.5168 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.3057, allocations: 200.3 kB / 0.517 GB, free: 36.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.3057, allocations: 0 / 0.517 GB, free: 36.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3057, allocations: 0 / 0.517 GB, free: 36.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.3057, allocations: 0 / 0.517 GB, free: 36.72 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0003906/0.3061, allocations: 497.5 kB / 0.5175 GB, free: 36.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.3062, allocations: 11.31 kB / 0.5175 GB, free: 36.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.3062, allocations: 18.25 kB / 0.5175 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.474e-05/0.3063, allocations: 182.6 kB / 0.5177 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.3063, allocations: 14.09 kB / 0.5177 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.3063, allocations: 22.72 kB / 0.5177 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001824/0.3065, allocations: 133.8 kB / 0.5179 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.3066, allocations: 0 / 0.5179 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.3066, allocations: 0 / 0.5179 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3066, allocations: 0 / 0.5179 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.534e-05/0.3067, allocations: 94.61 kB / 0.518 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.3068, allocations: 230.4 kB / 0.5182 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.3069, allocations: 164.6 kB / 0.5183 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.347e-05/0.307, allocations: 158.3 kB / 0.5185 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.943e-06/0.307, allocations: 3.375 kB / 0.5185 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.3072, allocations: 161.2 kB / 0.5186 GB, free: 35.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 1.262e-06/0.3072, allocations: 0 / 0.5186 GB, free: 35.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.0009101/0.3081, allocations: 0.774 MB / 0.5194 GB, free: 35.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.3082, allocations: 105.4 kB / 0.5195 GB, free: 35.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.88e-05/0.3082, allocations: 122.7 kB / 0.5196 GB, free: 35.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.412e-05/0.3083, allocations: 68.53 kB / 0.5197 GB, free: 35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.09e-05/0.3083, allocations: 96.39 kB / 0.5198 GB, free: 34.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.059e-05/0.3084, allocations: 137.8 kB / 0.5199 GB, free: 34.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3085, allocations: 161.7 kB / 0.5201 GB, free: 34.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.402e-05/0.3086, allocations: 343.7 kB / 0.5204 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.3088, allocations: 184.1 kB / 0.5206 GB, free: 34.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.3091, allocations: 0.5373 MB / 0.5211 GB, free: 33.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005701/0.3097, allocations: 0.7828 MB / 0.5219 GB, free: 33.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3097, allocations: 2.938 kB / 0.5219 GB, free: 33.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00082/0.3105, allocations: 0.7424 MB / 0.5226 GB, free: 32.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3106, allocations: 10.88 kB / 0.5226 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3106, allocations: 14.62 kB / 0.5226 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.3106, allocations: 16.34 kB / 0.5226 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.3109, allocations: 125.8 kB / 0.5227 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.3109, allocations: 25.34 kB / 0.5228 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.3112, allocations: 64.31 kB / 0.5228 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.3112, allocations: 39.72 kB / 0.5229 GB, free: 32.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * 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.0001567/0.3114, allocations: 250.4 kB / 0.5231 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.3114, allocations: 17.8 kB / 0.5231 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.686e-05/0.3114, allocations: 5.875 kB / 0.5231 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3114, allocations: 0 / 0.5231 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3114, allocations: 0 / 0.5231 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3114, allocations: 2.875 kB / 0.5231 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.242e-05/0.3115, allocations: 190.9 kB / 0.5233 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3115, allocations: 0 / 0.5233 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.068e-06/0.3115, allocations: 7.938 kB / 0.5233 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.3115, allocations: 6.812 kB / 0.5233 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.3115, allocations: 0 / 0.5233 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3116, allocations: 0 / 0.5233 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3116, allocations: 0 / 0.5233 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008406/0.3124, allocations: 1.308 MB / 0.5246 GB, free: 31.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.048e-05/0.3124, allocations: 103.7 kB / 0.5247 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.102e-05/0.3124, allocations: 2.75 kB / 0.5247 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.25e-05/0.3125, allocations: 0 / 0.5247 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.06e-05/0.3125, allocations: 0 / 0.5247 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.3125, allocations: 2.969 kB / 0.5247 GB, free: 31.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.038e-05/0.3125, allocations: 75.28 kB / 0.5248 GB, free: 31.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3125, allocations: 0 / 0.5248 GB, free: 31.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005301/0.3131, allocations: 98.41 kB / 0.5249 GB, free: 31.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004397/0.3135, allocations: 272.3 kB / 0.5251 GB, free: 31.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004284/0.3139, allocations: 470.1 kB / 0.5256 GB, free: 31.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.314, allocations: 0 / 0.5256 GB, free: 31.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.308e-05/0.3141, allocations: 160.4 kB / 0.5257 GB, free: 31.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.3142, allocations: 9.906 kB / 0.5257 GB, free: 31.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005588/0.3148, allocations: 0.7367 MB / 0.5265 GB, free: 30.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.3149, allocations: 0.747 MB / 0.5272 GB, free: 29.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.871e-05/0.315, allocations: 44.12 kB / 0.5272 GB, free: 29.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.819e-05/0.315, allocations: 21.72 kB / 0.5273 GB, free: 29.83 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.315, allocations: 0 / 0.5273 GB, free: 29.83 MB / 378.7 MB Notification: Performance of Templates: time 0.005124/0.3201, allocations: 2.977 MB / 0.5302 GB, free: 29.55 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches