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.00141/0.00141, allocations: 109 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001755/0.001755, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2478, allocations: 50.54 MB / 409.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002069/0.2499, allocations: 1.234 MB / 411.2 MB, free: 260 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009165/0.2508, allocations: 464.9 kB / 411.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.227e-05/0.2509, allocations: 7.938 kB / 411.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.345e-05/0.2509, allocations: 3.938 kB / 411.6 MB, free: 15.79 MB / 334.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.0004473/0.2514, allocations: 71.73 kB / 411.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001658/0.2515, allocations: 67.8 kB / 411.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.2517, allocations: 43.91 kB / 411.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.593e-05/0.2517, allocations: 4 kB / 411.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.578e-05/0.2517, allocations: 23.91 kB / 411.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.628e-05/0.2518, allocations: 19.86 kB / 411.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.2518, allocations: 4 kB / 411.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.2521, allocations: 119.8 kB / 412 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.672e-05/0.2521, allocations: 35.92 kB / 412 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.169e-05/0.2522, allocations: 51.61 kB / 412.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002858/0.2525, allocations: 179.4 kB / 412.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2525, allocations: 0 / 412.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2525, allocations: 0 / 412.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.2525, allocations: 0 / 412.2 MB, free: 15.18 MB / 334.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.0005834/0.2531, allocations: 0.5568 MB / 412.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.2532, allocations: 12.03 kB / 412.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.2533, allocations: 24.73 kB / 412.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.2535, allocations: 188.1 kB / 413 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.2535, allocations: 384 / 413 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.448e-05/0.2535, allocations: 4.375 kB / 413 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003031/0.2538, allocations: 275.8 kB / 413.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.2538, allocations: 4.125 kB / 413.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.2538, allocations: 7.938 kB / 413.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2539, allocations: 0 / 413.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001353/0.254, allocations: 139.9 kB / 413.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001688/0.2542, allocations: 202.1 kB / 413.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.2545, allocations: 497.1 kB / 414.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003071/0.2549, allocations: 469.7 kB / 414.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.2549, allocations: 0 / 414.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004077/0.2553, allocations: 488.9 kB / 415 MB, free: 12.13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.384e-06/0.2553, allocations: 0 / 415 MB, free: 12.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007518/0.2561, allocations: 0.7114 MB / 415.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.358e-05/0.2562, allocations: 164.4 kB / 415.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.595e-05/0.2562, allocations: 101.9 kB / 416 MB, free: 11.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.2563, allocations: 25.7 kB / 416 MB, free: 11.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.152e-05/0.2563, allocations: 85.19 kB / 416.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.227e-05/0.2564, allocations: 94.75 kB / 416.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-05/0.2564, allocations: 41.7 kB / 416.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2566, allocations: 322.8 kB / 416.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.598e-05/0.2566, allocations: 84.34 kB / 416.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.083e-05/0.2567, allocations: 106.2 kB / 416.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.257, allocations: 421.7 kB / 417.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2571, allocations: 0 / 417.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003356/0.2574, allocations: 352.7 kB / 417.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.15e-05/0.2575, allocations: 119.3 kB / 417.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2575, allocations: 0 / 417.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2575, allocations: 0 / 417.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.2575, allocations: 3.938 kB / 417.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.2576, allocations: 7.984 kB / 417.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.594e-05/0.2576, allocations: 19.75 kB / 417.7 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.2576, allocations: 8 kB / 417.7 MB, free: 9.348 MB / 334.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.0002499/0.2579, allocations: 301 kB / 418 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.963e-05/0.258, allocations: 35.67 kB / 418 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.894e-05/0.258, allocations: 5.562 kB / 418 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.258, allocations: 0 / 418 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.258, allocations: 8 kB / 418 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.258, allocations: 0 / 418 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001814/0.2582, allocations: 229.3 kB / 418.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2582, allocations: 4 kB / 418.2 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.2582, allocations: 0 / 418.2 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2582, allocations: 3.938 kB / 418.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.2582, allocations: 19.98 kB / 418.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2582, allocations: 0 / 418.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2583, allocations: 0 / 418.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.2594, allocations: 1.224 MB / 419.5 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.057e-05/0.2595, allocations: 100.8 kB / 419.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.879e-05/0.2596, allocations: 71.88 kB / 419.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.404e-05/0.2597, allocations: 8 kB / 419.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.485e-05/0.2597, allocations: 19.92 kB / 419.7 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.2597, allocations: 12 kB / 419.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.586e-05/0.2598, allocations: 83.27 kB / 419.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2598, allocations: 0 / 419.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000325/0.2601, allocations: 92.03 kB / 419.9 MB, free: 7.027 MB / 334.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.0005247/0.2606, allocations: 300.3 kB / 420.2 MB, free: 6.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.2623, allocations: 2.127 MB / 422.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2623, allocations: 0 / 422.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.2638, allocations: 2.19 MB / 424.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000191/0.264, allocations: 16.25 kB / 424.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005711/0.2646, allocations: 421.9 kB / 424.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.2649, allocations: 0.7206 MB / 425.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.573e-05/0.2649, allocations: 7.438 kB / 425.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2649, allocations: 0 / 425.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of Templates: time 0.0051/0.2701, allocations: 2.865 MB / 428.5 MB, free: 14.3 MB / 350.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/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