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.0007356/0.0007357, allocations: 96.44 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008852/0.0008853, allocations: 202.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.7 MB / 246.4 MB, free: 9.824 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002093/0.0002094, allocations: 4 kB / 307.1 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08714/0.08736, allocations: 51.53 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001092/0.08849, allocations: 0.9589 MB / 359.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007618/0.08927, allocations: 424.5 kB / 360 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.846e-05/0.08931, allocations: 3.938 kB / 360 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.252e-05/0.08934, allocations: 0 / 360 MB, free: 12.07 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.0003575/0.0897, allocations: 51.88 kB / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001194/0.08983, allocations: 55.81 kB / 360.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.785e-05/0.0899, allocations: 39.91 kB / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.043e-05/0.08995, allocations: 3.984 kB / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.824e-05/0.08998, allocations: 12 kB / 360.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.672e-05/0.09002, allocations: 19.91 kB / 360.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/0.09004, allocations: 4 kB / 360.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.09024, allocations: 111.8 kB / 360.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.606e-05/0.09029, allocations: 31.91 kB / 360.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.122e-05/0.09034, allocations: 53.5 kB / 360.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.09051, allocations: 111.7 kB / 360.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.09052, allocations: 0 / 360.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.09053, allocations: 4 kB / 360.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.09054, allocations: 4 kB / 360.5 MB, free: 11.57 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.0005031/0.09105, allocations: 0.5489 MB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.09109, allocations: 8.031 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.09122, allocations: 27.8 kB / 361.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.09136, allocations: 179.2 kB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.09138, allocations: 0 / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.0914, allocations: 8 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.09169, allocations: 279.2 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.09171, allocations: 0 / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.09173, allocations: 7.938 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.09174, allocations: 0 / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.09188, allocations: 151.9 kB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.09207, allocations: 198.1 kB / 361.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003601/0.09243, allocations: 0.4894 MB / 362.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.09276, allocations: 473.7 kB / 362.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-06/0.09277, allocations: 0 / 362.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003909/0.09317, allocations: 476.9 kB / 363.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.222e-06/0.09318, allocations: 4 kB / 363.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007725/0.09396, allocations: 0.7115 MB / 364 MB, free: 7.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/0.09405, allocations: 160.5 kB / 364.2 MB, free: 7.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.217e-05/0.09413, allocations: 105.8 kB / 364.3 MB, free: 7.488 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.09416, allocations: 29.7 kB / 364.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.584e-05/0.0942, allocations: 81.14 kB / 364.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.067e-05/0.09426, allocations: 86.81 kB / 364.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.09427, allocations: 0 / 364.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.958e-05/0.09438, allocations: 326.8 kB / 364.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.955e-05/0.09446, allocations: 84.34 kB / 364.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.632e-05/0.09456, allocations: 110.2 kB / 365 MB, free: 6.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.09473, allocations: 200.4 kB / 365.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.09474, allocations: 0 / 365.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004062/0.09515, allocations: 352.7 kB / 365.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.856e-05/0.09525, allocations: 107.3 kB / 365.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.09526, allocations: 4 kB / 365.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.09528, allocations: 3.953 kB / 365.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-06/0.09529, allocations: 0 / 365.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.0953, allocations: 96 / 365.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.752e-05/0.09537, allocations: 35.69 kB / 365.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.0954, allocations: 8 kB / 365.7 MB, free: 6.023 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 ($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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002613/0.09567, allocations: 303.6 kB / 366 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.09571, allocations: 27.81 kB / 366 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.521e-05/0.09573, allocations: 9.547 kB / 366 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.09574, allocations: 3.953 kB / 366 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.09575, allocations: 0 / 366 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.09576, allocations: 0 / 366 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002516/0.09601, allocations: 229.3 kB / 366.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.09603, allocations: 0 / 366.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.09604, allocations: 0 / 366.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.09605, allocations: 0 / 366.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.09609, allocations: 23.98 kB / 366.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.09609, allocations: 4 kB / 366.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.0961, allocations: 7.891 kB / 366.3 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.09726, allocations: 1.224 MB / 367.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.594e-05/0.09732, allocations: 92.86 kB / 367.6 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.09743, allocations: 67.94 kB / 367.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.075e-05/0.09749, allocations: 8 kB / 367.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.09754, allocations: 20.3 kB / 367.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.09757, allocations: 16 kB / 367.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.742e-05/0.09761, allocations: 87.25 kB / 367.8 MB, free: 3.793 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09762, allocations: 0 / 367.8 MB, free: 3.793 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.09795, allocations: 88 kB / 367.9 MB, free: 3.707 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005495/0.09851, allocations: 295.6 kB / 368.2 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.1001, allocations: 2.123 MB / 370.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1001, allocations: 0 / 370.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1502/0.2503, allocations: 2.179 MB / 372.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.2506, allocations: 20.61 kB / 372.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00072/0.2514, allocations: 400.8 kB / 372.9 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.2516, allocations: 0.7228 MB / 373.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.305e-05/0.2516, allocations: 2.641 kB / 373.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.317e-05/0.2516, allocations: 7.438 kB / 373.6 MB, free: 18.35 MB / 302.1 MB Notification: Performance of SimCode: time 1.283e-06/0.2516, allocations: 0.6562 kB / 373.6 MB, free: 18.35 MB / 302.1 MB Notification: Performance of Templates: time 0.006675/0.2583, allocations: 2.764 MB / 376.4 MB, free: 18.11 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