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.001423/0.001423, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.3 MB, free: 9.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 61.38 kB / 306.2 MB, free: 0.8867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09235/0.09359, allocations: 50.54 MB / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002452/0.09608, allocations: 1.309 MB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.09711, allocations: 472.2 kB / 358.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.629e-05/0.09716, allocations: 0 / 358.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.668e-05/0.09723, allocations: 0 / 358.6 MB, free: 12.56 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.0004431/0.09768, allocations: 59.8 kB / 358.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001677/0.09786, allocations: 55.89 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.459e-05/0.09794, allocations: 35.84 kB / 358.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.47e-05/0.09799, allocations: 8 kB / 358.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.222e-05/0.09804, allocations: 23.91 kB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.89e-05/0.0981, allocations: 23.91 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.314e-05/0.09811, allocations: 0 / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002507/0.09837, allocations: 115.8 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.092e-05/0.09843, allocations: 27.92 kB / 358.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.284e-05/0.09851, allocations: 51.67 kB / 359 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003033/0.09882, allocations: 179.4 kB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.09884, allocations: 4 kB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09884, allocations: 3.938 kB / 359.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.289e-06/0.09885, allocations: 0 / 359.1 MB, free: 11.98 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.0006247/0.09948, allocations: 0.5569 MB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.09953, allocations: 11.97 kB / 359.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.09969, allocations: 24.73 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.09985, allocations: 184.4 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.09987, allocations: 4.375 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.09989, allocations: 4.375 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.1002, allocations: 275.8 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.1002, allocations: 4.188 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.1002, allocations: 7.938 kB / 360.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1003, allocations: 0 / 360.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001552/0.1004, allocations: 147.9 kB / 360.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001901/0.1006, allocations: 202.1 kB / 360.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003871/0.101, allocations: 493.2 kB / 361 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/0.1013, allocations: 477.6 kB / 361.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.193e-06/0.1014, allocations: 0 / 361.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004329/0.1018, allocations: 480.9 kB / 362 MB, free: 8.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.674e-06/0.1018, allocations: 0 / 362 MB, free: 8.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.000816/0.1026, allocations: 0.7153 MB / 362.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/0.1027, allocations: 168.5 kB / 362.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.749e-05/0.1028, allocations: 97.86 kB / 362.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.1028, allocations: 29.7 kB / 363 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.284e-05/0.1029, allocations: 85.12 kB / 363 MB, free: 7.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.234e-05/0.1029, allocations: 82.81 kB / 363.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/0.103, allocations: 37.7 kB / 363.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1031, allocations: 326.8 kB / 363.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.544e-05/0.1032, allocations: 80.34 kB / 363.6 MB, free: 7.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.181e-05/0.1033, allocations: 122.1 kB / 363.7 MB, free: 7.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003234/0.1036, allocations: 413.4 kB / 364.1 MB, free: 6.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1036, allocations: 0 / 364.1 MB, free: 6.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003463/0.104, allocations: 356.7 kB / 364.4 MB, free: 6.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.745e-05/0.1041, allocations: 114.2 kB / 364.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1041, allocations: 336 / 364.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.1041, allocations: 4 kB / 364.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1041, allocations: 0 / 364.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1041, allocations: 96 / 364.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.25e-05/0.1042, allocations: 27.75 kB / 364.6 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.1042, allocations: 8 kB / 364.6 MB, free: 6.152 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.0002364/0.1045, allocations: 303.6 kB / 364.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.31e-05/0.1045, allocations: 31.73 kB / 364.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.444e-05/0.1045, allocations: 13.56 kB / 364.9 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1046, allocations: 3.938 kB / 364.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1046, allocations: 0 / 364.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1046, allocations: 0 / 364.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.1048, allocations: 229.3 kB / 365.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1048, allocations: 0 / 365.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.372e-06/0.1048, allocations: 0 / 365.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.1048, allocations: 3.938 kB / 365.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.1048, allocations: 23.98 kB / 365.2 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.1048, allocations: 3.938 kB / 365.2 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1048, allocations: 4 kB / 365.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.106, allocations: 1.22 MB / 366.4 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.847e-05/0.1061, allocations: 96.86 kB / 366.5 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.1062, allocations: 71.88 kB / 366.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.021e-05/0.1063, allocations: 12 kB / 366.6 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.624e-05/0.1063, allocations: 12.02 kB / 366.6 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.1063, allocations: 19.98 kB / 366.6 MB, free: 3.996 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.034e-05/0.1064, allocations: 91.2 kB / 366.7 MB, free: 3.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1064, allocations: 0 / 366.7 MB, free: 3.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003358/0.1067, allocations: 84 kB / 366.8 MB, free: 3.824 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.0005233/0.1073, allocations: 297.2 kB / 367.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.1088, allocations: 2.123 MB / 369.2 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1088, allocations: 0 / 369.2 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.145/0.2539, allocations: 2.18 MB / 371.4 MB, free: 21.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.2542, allocations: 23.33 kB / 371.4 MB, free: 21.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006641/0.2548, allocations: 414.8 kB / 371.8 MB, free: 20.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.255, allocations: 0.7245 MB / 372.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.201e-05/0.255, allocations: 4.578 kB / 372.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.156e-05/0.255, allocations: 8.5 kB / 372.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.255, allocations: 0 / 372.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of Templates: time 0.006749/0.2618, allocations: 2.81 MB / 375.4 MB, free: 19.96 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