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.0008841/0.0008842, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003182, allocations: 8 kB / 307.7 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 51.52 MB / 359.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001128/0.1046, allocations: 0.9705 MB / 360.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008167/0.1055, allocations: 460.2 kB / 360.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.807e-05/0.1055, allocations: 0 / 360.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.399e-05/0.1055, allocations: 0 / 360.7 MB, free: 11.85 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.0003549/0.1059, allocations: 59.81 kB / 360.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001176/0.106, allocations: 55.89 kB / 360.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.125e-05/0.1061, allocations: 39.83 kB / 360.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.828e-05/0.1061, allocations: 4 kB / 360.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.063e-05/0.1062, allocations: 15.98 kB / 360.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.957e-05/0.1062, allocations: 23.91 kB / 360.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.1062, allocations: 7.938 kB / 360.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.1064, allocations: 111.8 kB / 361 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.456e-05/0.1065, allocations: 31.92 kB / 361 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.339e-05/0.1065, allocations: 77.36 kB / 361.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.1068, allocations: 175.4 kB / 361.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.1068, allocations: 0 / 361.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1068, allocations: 4 kB / 361.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.1068, allocations: 0 / 361.3 MB, free: 11.25 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.0004616/0.1073, allocations: 0.5491 MB / 361.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.1073, allocations: 8.031 kB / 361.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1074, allocations: 20.75 kB / 361.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.1075, allocations: 184.4 kB / 362 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1076, allocations: 8.312 kB / 362 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.1076, allocations: 4.375 kB / 362 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.1079, allocations: 279.8 kB / 362.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.1079, allocations: 192 / 362.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.1079, allocations: 7.938 kB / 362.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1079, allocations: 0 / 362.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.1081, allocations: 143.9 kB / 362.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001594/0.1082, allocations: 202.1 kB / 362.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.1086, allocations: 0.4933 MB / 363.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.1089, allocations: 469.7 kB / 363.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.317e-06/0.1089, allocations: 0 / 363.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003889/0.1093, allocations: 480.8 kB / 364.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.022e-06/0.1093, allocations: 0 / 364.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007285/0.1101, allocations: 0.7231 MB / 364.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/0.1102, allocations: 160.5 kB / 364.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.657e-05/0.1102, allocations: 101.8 kB / 365 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.1103, allocations: 29.7 kB / 365.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.88e-05/0.1103, allocations: 85.14 kB / 365.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.03e-05/0.1104, allocations: 82.81 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.671e-05/0.1104, allocations: 29.7 kB / 365.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.1105, allocations: 330.8 kB / 365.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.746e-05/0.1106, allocations: 84.41 kB / 365.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.033e-05/0.1107, allocations: 118.1 kB / 365.8 MB, free: 6.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.111, allocations: 417.4 kB / 366.2 MB, free: 5.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.111, allocations: 0 / 366.2 MB, free: 5.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003216/0.1113, allocations: 344.7 kB / 366.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.167e-05/0.1114, allocations: 111.3 kB / 366.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1114, allocations: 3.938 kB / 366.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.1115, allocations: 0 / 366.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.595e-06/0.1115, allocations: 8.094 kB / 366.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1115, allocations: 0 / 366.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.419e-05/0.1115, allocations: 23.75 kB / 366.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.1115, allocations: 8 kB / 366.7 MB, free: 5.434 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.00026/0.1118, allocations: 307.6 kB / 367 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-05/0.1119, allocations: 27.75 kB / 367 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.202e-05/0.1119, allocations: 5.562 kB / 367 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1119, allocations: 4 kB / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1119, allocations: 0 / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1119, allocations: 0 / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.1121, allocations: 237.3 kB / 367.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1121, allocations: 0 / 367.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1121, allocations: 0 / 367.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.1121, allocations: 7.938 kB / 367.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.1121, allocations: 19.98 kB / 367.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.1121, allocations: 7.984 kB / 367.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1121, allocations: 0 / 367.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.1132, allocations: 1.224 MB / 368.5 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.1133, allocations: 96.86 kB / 368.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.822e-05/0.1134, allocations: 67.88 kB / 368.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.627e-05/0.1134, allocations: 16.03 kB / 368.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.423e-05/0.1135, allocations: 11.98 kB / 368.7 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.667e-05/0.1135, allocations: 19.98 kB / 368.7 MB, free: 3.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.106e-05/0.1135, allocations: 79.28 kB / 368.8 MB, free: 3.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.302e-06/0.1136, allocations: 3.938 kB / 368.8 MB, free: 3.191 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.1139, allocations: 91.92 kB / 368.9 MB, free: 3.102 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.0004903/0.1144, allocations: 287.8 kB / 369.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.1159, allocations: 2.131 MB / 371.3 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.116, allocations: 0 / 371.3 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1582/0.2742, allocations: 2.179 MB / 373.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.2745, allocations: 26.33 kB / 373.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006361/0.2751, allocations: 414.9 kB / 373.9 MB, free: 19.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001648/0.2753, allocations: 0.7261 MB / 374.6 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.146e-05/0.2753, allocations: 0 / 374.6 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.269e-05/0.2753, allocations: 8.5 kB / 374.6 MB, free: 19.27 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2753, allocations: 0 / 374.6 MB, free: 19.27 MB / 302.1 MB Notification: Performance of Templates: time 0.006392/0.2817, allocations: 2.808 MB / 377.5 MB, free: 19.02 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.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