Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.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) 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(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009984/0.0009984, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2343, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002067/0.2364, allocations: 1.241 MB / 410.5 MB, free: 368 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008811/0.2373, allocations: 457 kB / 410.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.783e-05/0.2373, allocations: 3.938 kB / 410.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.644e-05/0.2373, allocations: 0 / 410.9 MB, free: 15.91 MB / 334.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.typeBindings: time 0.0004324/0.2378, allocations: 75.67 kB / 411 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001545/0.238, allocations: 67.73 kB / 411.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.751e-05/0.2381, allocations: 47.86 kB / 411.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.325e-05/0.2381, allocations: 15.48 kB / 411.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.768e-05/0.2381, allocations: 11.98 kB / 411.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.148e-05/0.2382, allocations: 23.86 kB / 411.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.2382, allocations: 4 kB / 411.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002277/0.2384, allocations: 119.8 kB / 411.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.191e-05/0.2385, allocations: 31.91 kB / 411.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.719e-05/0.2385, allocations: 51.67 kB / 411.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.2388, allocations: 175.1 kB / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2388, allocations: 0 / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2388, allocations: 0 / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.2388, allocations: 0 / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005553/0.2394, allocations: 0.5643 MB / 412.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.2394, allocations: 12.03 kB / 412.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.2395, allocations: 20.84 kB / 412.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.2397, allocations: 192.1 kB / 412.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.2397, allocations: 8.375 kB / 412.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.2397, allocations: 4.375 kB / 412.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002796/0.24, allocations: 271.8 kB / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.24, allocations: 4.188 kB / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.24, allocations: 3.938 kB / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.2401, allocations: 0 / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.2402, allocations: 147.9 kB / 412.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.2404, allocations: 206.2 kB / 413 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003569/0.2407, allocations: 489.2 kB / 413.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003246/0.2411, allocations: 473.7 kB / 413.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.849e-06/0.2411, allocations: 3.938 kB / 413.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004532/0.2416, allocations: 476.9 kB / 414.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.393e-06/0.2416, allocations: 0 / 414.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007568/0.2423, allocations: 0.7154 MB / 415.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.2424, allocations: 160.5 kB / 415.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.788e-05/0.2425, allocations: 106 kB / 415.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.2425, allocations: 33.77 kB / 415.4 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.199e-05/0.2426, allocations: 81.14 kB / 415.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.384e-05/0.2426, allocations: 91.22 kB / 415.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.871e-05/0.2427, allocations: 41.69 kB / 415.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.2428, allocations: 326.8 kB / 415.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.2429, allocations: 84.28 kB / 416 MB, free: 10.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.21e-05/0.243, allocations: 118.1 kB / 416.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.2433, allocations: 421.4 kB / 416.5 MB, free: 9.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2433, allocations: 0 / 416.5 MB, free: 9.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003407/0.2437, allocations: 348.8 kB / 416.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.754e-05/0.2438, allocations: 111.2 kB / 417 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.2438, allocations: 4 kB / 417 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.2438, allocations: 0 / 417 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.2438, allocations: 0 / 417 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.2438, allocations: 7.969 kB / 417 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.481e-05/0.2439, allocations: 27.84 kB / 417 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.2439, allocations: 8 kB / 417 MB, free: 9.441 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],r1024,r128,r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0002341/0.2441, allocations: 295.7 kB / 417.3 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.767e-05/0.2442, allocations: 31.84 kB / 417.3 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.093e-05/0.2442, allocations: 9.562 kB / 417.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2442, allocations: 0 / 417.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2442, allocations: 3.984 kB / 417.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2442, allocations: 0 / 417.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.2444, allocations: 233.4 kB / 417.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2444, allocations: 0 / 417.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.2444, allocations: 0 / 417.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2444, allocations: 7.938 kB / 417.6 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.2445, allocations: 15.98 kB / 417.6 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2445, allocations: 4 kB / 417.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2445, allocations: 3.938 kB / 417.6 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.2456, allocations: 1.224 MB / 418.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.2456, allocations: 100.9 kB / 418.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.246e-05/0.2457, allocations: 71.89 kB / 419 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.127e-05/0.2458, allocations: 8 kB / 419 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.2458, allocations: 11.98 kB / 419 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.434e-05/0.2459, allocations: 19.98 kB / 419 MB, free: 7.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.766e-05/0.2459, allocations: 83.31 kB / 419.1 MB, free: 7.211 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2459, allocations: 3.938 kB / 419.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.2462, allocations: 95.86 kB / 419.2 MB, free: 7.113 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0004665/0.2467, allocations: 286.5 kB / 419.5 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.2483, allocations: 2.131 MB / 421.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.2483, allocations: 0 / 421.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.2498, allocations: 2.19 MB / 423.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.25, allocations: 20 kB / 423.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005338/0.2505, allocations: 392 kB / 424.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.2508, allocations: 0.7206 MB / 424.9 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.296e-06/0.2508, allocations: 128 / 424.9 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.559e-05/0.2509, allocations: 15.44 kB / 424.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2509, allocations: 0 / 424.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of Templates: time 0.005702/0.2566, allocations: 3.013 MB / 428 MB, free: 14.27 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches