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.001311/0.001311, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001822, allocations: 65.86 kB / 307 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1059, allocations: 50.55 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002444/0.1084, allocations: 1.225 MB / 358.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000954/0.1094, allocations: 472 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.716e-05/0.1094, allocations: 0 / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.437e-05/0.1094, allocations: 0 / 359.2 MB, free: 12.38 MB / 302.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.0004733/0.1099, allocations: 71.73 kB / 359.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.1101, allocations: 67.75 kB / 359.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.814e-05/0.1102, allocations: 47.84 kB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.602e-05/0.1102, allocations: 0 / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.113e-05/0.1103, allocations: 19.91 kB / 359.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.836e-05/0.1103, allocations: 23.92 kB / 359.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.1103, allocations: 4 kB / 359.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002274/0.1106, allocations: 127.8 kB / 359.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.47e-05/0.1106, allocations: 27.91 kB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.927e-05/0.1107, allocations: 47.69 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.1109, allocations: 179.4 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1109, allocations: 0 / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.111, allocations: 0 / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.111, allocations: 0 / 359.8 MB, free: 11.77 MB / 302.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.0006193/0.1116, allocations: 0.5529 MB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1116, allocations: 16.03 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.1118, allocations: 28.61 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.1119, allocations: 188.4 kB / 360.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.112, allocations: 4.375 kB / 360.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.112, allocations: 4.375 kB / 360.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.1123, allocations: 271.8 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.1123, allocations: 192 / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.1124, allocations: 3.938 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.1124, allocations: 8 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.1125, allocations: 143.9 kB / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002027/0.1127, allocations: 206.1 kB / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004198/0.1132, allocations: 493.2 kB / 361.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003793/0.1136, allocations: 469.6 kB / 362.2 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.1136, allocations: 4 kB / 362.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004977/0.1141, allocations: 476.9 kB / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.072e-06/0.1141, allocations: 0 / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008702/0.115, allocations: 0.7231 MB / 363.4 MB, free: 7.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1151, allocations: 156.5 kB / 363.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.962e-05/0.1152, allocations: 105.9 kB / 363.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.1152, allocations: 29.7 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.243e-05/0.1153, allocations: 81.14 kB / 363.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.119e-05/0.1153, allocations: 86.81 kB / 363.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.108e-05/0.1154, allocations: 33.7 kB / 363.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1156, allocations: 334.8 kB / 364.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.076e-05/0.1157, allocations: 80.34 kB / 364.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.1158, allocations: 114.1 kB / 364.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004042/0.1162, allocations: 425.4 kB / 364.8 MB, free: 6.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1162, allocations: 7.938 kB / 364.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003779/0.1166, allocations: 340.7 kB / 365.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/0.1167, allocations: 115.3 kB / 365.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1167, allocations: 0 / 365.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1167, allocations: 0 / 365.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.1168, allocations: 0 / 365.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1168, allocations: 0 / 365.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.958e-05/0.1168, allocations: 27.75 kB / 365.3 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.1168, allocations: 8 kB / 365.3 MB, free: 5.938 MB / 302.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.0002788/0.1171, allocations: 299.7 kB / 365.6 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.1172, allocations: 31.75 kB / 365.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.628e-05/0.1172, allocations: 9.891 kB / 365.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.1172, allocations: 0 / 365.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1172, allocations: 0 / 365.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1172, allocations: 7.984 kB / 365.6 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002093/0.1175, allocations: 233.3 kB / 365.8 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1175, allocations: 3.938 kB / 365.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.025e-06/0.1175, allocations: 4 kB / 365.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.1175, allocations: 3.938 kB / 365.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.1175, allocations: 16 kB / 365.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.543e-06/0.1175, allocations: 7.922 kB / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1175, allocations: 4 kB / 365.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.1188, allocations: 1.217 MB / 367.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.583e-05/0.1189, allocations: 92.86 kB / 367.2 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.119, allocations: 71.88 kB / 367.3 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.3e-05/0.119, allocations: 8 kB / 367.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.881e-05/0.1191, allocations: 11.98 kB / 367.3 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.1191, allocations: 23.92 kB / 367.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.162e-05/0.1192, allocations: 83.31 kB / 367.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1192, allocations: 0 / 367.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.1195, allocations: 88 kB / 367.5 MB, free: 3.617 MB / 302.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.0006852/0.1202, allocations: 302.3 kB / 367.8 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.1221, allocations: 2.131 MB / 369.9 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1221, allocations: 3.938 kB / 369.9 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1367/0.2589, allocations: 2.188 MB / 372.1 MB, free: 21.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002335/0.2591, allocations: 19.53 kB / 372.1 MB, free: 21.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005825/0.2597, allocations: 393.7 kB / 372.5 MB, free: 20.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001485/0.2599, allocations: 0.7235 MB / 373.2 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.877e-06/0.2599, allocations: 0 / 373.2 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.053e-05/0.2599, allocations: 8.125 kB / 373.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2599, allocations: 0.8125 kB / 373.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of Templates: time 0.006324/0.2662, allocations: 3.001 MB / 376.2 MB, free: 19.92 MB / 302.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.1.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