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.001352/0.001352, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001626, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 60.97 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.0899, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002266/0.09219, allocations: 1.245 MB / 360.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008531/0.09307, allocations: 460 kB / 360.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.782e-05/0.09311, allocations: 0 / 360.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.589e-05/0.09316, allocations: 0 / 360.6 MB, free: 11.66 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.0004325/0.0936, allocations: 75.72 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001353/0.09374, allocations: 63.77 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.715e-05/0.09385, allocations: 51.83 kB / 360.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.041e-05/0.0939, allocations: 7.984 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.688e-05/0.09393, allocations: 12 kB / 360.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.61e-05/0.09397, allocations: 23.91 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.09399, allocations: 3.938 kB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.09419, allocations: 119.8 kB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.712e-05/0.09424, allocations: 35.91 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.233e-05/0.0943, allocations: 47.67 kB / 361 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.09453, allocations: 175.4 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.09454, allocations: 3.938 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.09455, allocations: 3.938 kB / 361.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.09456, allocations: 0 / 361.2 MB, free: 11.04 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.0005111/0.09508, allocations: 0.5647 MB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.09512, allocations: 12.03 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.09524, allocations: 20.75 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.09538, allocations: 180.2 kB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.0954, allocations: 8.312 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.09543, allocations: 4.375 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.09571, allocations: 275.8 kB / 362.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.211e-06/0.09573, allocations: 192 / 362.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.09575, allocations: 3.938 kB / 362.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.09576, allocations: 4 kB / 362.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.09591, allocations: 143.9 kB / 362.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001772/0.09609, allocations: 206.1 kB / 362.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.09644, allocations: 497.1 kB / 363.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002982/0.09675, allocations: 465.7 kB / 363.5 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.09677, allocations: 3.984 kB / 363.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004106/0.09718, allocations: 480.9 kB / 364 MB, free: 7.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.092e-06/0.09719, allocations: 0 / 364 MB, free: 7.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007537/0.09795, allocations: 0.7231 MB / 364.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/0.09804, allocations: 156.5 kB / 364.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.9e-05/0.09812, allocations: 101.8 kB / 365 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.09814, allocations: 25.7 kB / 365 MB, free: 6.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.693e-05/0.09818, allocations: 89.2 kB / 365.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.802e-05/0.09824, allocations: 82.81 kB / 365.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.74e-05/0.0983, allocations: 41.64 kB / 365.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.09841, allocations: 334.8 kB / 365.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.801e-05/0.09849, allocations: 80.34 kB / 365.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.124e-05/0.09859, allocations: 110.2 kB / 365.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.09889, allocations: 417.4 kB / 366.1 MB, free: 5.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.0989, allocations: 4.031 kB / 366.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003293/0.09924, allocations: 348.7 kB / 366.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.839e-05/0.09933, allocations: 111.3 kB / 366.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.09935, allocations: 3.938 kB / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.09936, allocations: 0 / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.09937, allocations: 0 / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.09938, allocations: 0 / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.76e-05/0.09944, allocations: 23.75 kB / 366.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.09947, allocations: 8 kB / 366.6 MB, free: 5.219 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.0002538/0.09972, allocations: 307.7 kB / 366.9 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.878e-05/0.09978, allocations: 27.75 kB / 367 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.269e-05/0.0998, allocations: 5.562 kB / 367 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.09981, allocations: 7.938 kB / 367 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.09982, allocations: 4 kB / 367 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.09983, allocations: 0 / 367 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.1, allocations: 233.3 kB / 367.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1, allocations: 0 / 367.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.28e-06/0.1, allocations: 11.94 kB / 367.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.255e-06/0.1, allocations: 3.938 kB / 367.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.976e-05/0.1001, allocations: 23.97 kB / 367.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1001, allocations: 0 / 367.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1001, allocations: 0 / 367.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.1012, allocations: 1.22 MB / 368.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.1013, allocations: 92.86 kB / 368.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-05/0.1014, allocations: 71.88 kB / 368.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.552e-05/0.1014, allocations: 8 kB / 368.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.1015, allocations: 15.98 kB / 368.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.1015, allocations: 15.98 kB / 368.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.92e-05/0.1016, allocations: 83.61 kB / 368.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.946e-06/0.1016, allocations: 4.031 kB / 368.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.1019, allocations: 95.86 kB / 368.8 MB, free: 2.883 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.0004975/0.1024, allocations: 288.8 kB / 369.1 MB, free: 2.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.1039, allocations: 2.127 MB / 371.3 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1039, allocations: 0 / 371.3 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1489/0.2528, allocations: 2.183 MB / 373.4 MB, free: 20.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.2532, allocations: 23.12 kB / 373.5 MB, free: 20.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006515/0.2539, allocations: 386.4 kB / 373.8 MB, free: 20.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.254, allocations: 0.7269 MB / 374.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.295e-05/0.2541, allocations: 1.406 kB / 374.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.449e-05/0.2541, allocations: 8.438 kB / 374.6 MB, free: 19.78 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2541, allocations: 0.5 kB / 374.6 MB, free: 19.78 MB / 302.1 MB Notification: Performance of Templates: time 0.006781/0.2609, allocations: 3.007 MB / 377.6 MB, free: 19.54 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches