Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009939/0.000994, allocations: 106.1 kB / 291.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000752/0.000752, allocations: 39.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2453, allocations: 49.43 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00223/0.2476, allocations: 1.291 MB / 400.8 MB, free: 32.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009201/0.2485, allocations: 485.2 kB / 401.2 MB, free: 31.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.634e-05/0.2486, allocations: 0 / 401.2 MB, free: 31.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.149e-05/0.2486, allocations: 0 / 401.2 MB, free: 31.59 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.000463/0.2491, allocations: 59.81 kB / 401.3 MB, free: 31.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001286/0.2492, allocations: 51.89 kB / 401.3 MB, free: 31.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.603e-05/0.2493, allocations: 39.83 kB / 401.4 MB, free: 31.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.237e-05/0.2494, allocations: 5.938 kB / 401.4 MB, free: 31.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.761e-05/0.2494, allocations: 19.92 kB / 401.4 MB, free: 31.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.683e-05/0.2495, allocations: 23.91 kB / 401.4 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.2495, allocations: 4 kB / 401.4 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.2497, allocations: 115.8 kB / 401.5 MB, free: 31.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.401e-05/0.2498, allocations: 35.92 kB / 401.6 MB, free: 31.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.34e-05/0.2499, allocations: 47.66 kB / 401.6 MB, free: 31.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.2501, allocations: 171.5 kB / 401.8 MB, free: 31.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.2501, allocations: 0 / 401.8 MB, free: 31.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2501, allocations: 0 / 401.8 MB, free: 31.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2501, allocations: 0 / 401.8 MB, free: 31.03 MB / 298.7 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.0005876/0.2507, allocations: 0.5569 MB / 402.3 MB, free: 30.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/0.2508, allocations: 8.031 kB / 402.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/0.251, allocations: 24.75 kB / 402.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.2512, allocations: 189.7 kB / 402.6 MB, free: 30.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.2512, allocations: 8.375 kB / 402.6 MB, free: 30.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.2512, allocations: 4.375 kB / 402.6 MB, free: 30.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.2515, allocations: 271.8 kB / 402.8 MB, free: 29.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.2515, allocations: 4.188 kB / 402.8 MB, free: 29.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.2515, allocations: 3.938 kB / 402.8 MB, free: 29.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.2515, allocations: 0 / 402.8 MB, free: 29.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.2517, allocations: 151.8 kB / 403 MB, free: 29.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001446/0.2518, allocations: 202.2 kB / 403.2 MB, free: 29.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.2521, allocations: 497.1 kB / 403.7 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.2523, allocations: 469.7 kB / 404.1 MB, free: 28.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-06/0.2523, allocations: 0 / 404.1 MB, free: 28.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003588/0.2527, allocations: 484.8 kB / 404.6 MB, free: 27.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 9.82e-07/0.2527, allocations: 0 / 404.6 MB, free: 27.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005926/0.2533, allocations: 0.7153 MB / 405.3 MB, free: 27.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.2534, allocations: 160.5 kB / 405.5 MB, free: 27.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.845e-05/0.2534, allocations: 97.86 kB / 405.6 MB, free: 26.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.968e-06/0.2535, allocations: 29.7 kB / 405.6 MB, free: 26.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.3e-05/0.2535, allocations: 85.14 kB / 405.7 MB, free: 26.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/0.2535, allocations: 90.86 kB / 405.8 MB, free: 26.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.2536, allocations: 37.7 kB / 405.8 MB, free: 26.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.522e-05/0.2537, allocations: 322.8 kB / 406.1 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.529e-05/0.2537, allocations: 88.34 kB / 406.2 MB, free: 26.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.139e-05/0.2538, allocations: 106.2 kB / 406.3 MB, free: 26.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002377/0.254, allocations: 425.3 kB / 406.7 MB, free: 25.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2541, allocations: 0 / 406.7 MB, free: 25.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002667/0.2543, allocations: 352.8 kB / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.246e-05/0.2544, allocations: 111.3 kB / 407.2 MB, free: 25.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2544, allocations: 7.984 kB / 407.2 MB, free: 25.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.2545, allocations: 0 / 407.2 MB, free: 25.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.164e-06/0.2545, allocations: 0 / 407.2 MB, free: 25.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.2545, allocations: 0 / 407.2 MB, free: 25.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.803e-05/0.2545, allocations: 23.75 kB / 407.2 MB, free: 25.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.2545, allocations: 8 kB / 407.2 MB, free: 25.2 MB / 298.7 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.0002101/0.2548, allocations: 295.7 kB / 407.5 MB, free: 24.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.525e-05/0.2548, allocations: 35.75 kB / 407.6 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.647e-05/0.2549, allocations: 9.547 kB / 407.6 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2549, allocations: 0 / 407.6 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2549, allocations: 0 / 407.6 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2549, allocations: 4 kB / 407.6 MB, free: 24.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.2551, allocations: 233.3 kB / 407.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2551, allocations: 0 / 407.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.2551, allocations: 0 / 407.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.2551, allocations: 7.938 kB / 407.8 MB, free: 24.56 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/0.2551, allocations: 15.98 kB / 407.8 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.2551, allocations: 4 kB / 407.8 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2551, allocations: 0 / 407.8 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.2563, allocations: 2.038 MB / 409.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.62e-05/0.2563, allocations: 100.8 kB / 410 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.553e-05/0.2564, allocations: 67.89 kB / 410 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.953e-05/0.2565, allocations: 11.98 kB / 410 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.515e-05/0.2565, allocations: 12.27 kB / 410 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.2565, allocations: 19.98 kB / 410.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.193e-05/0.2565, allocations: 87.3 kB / 410.2 MB, free: 22.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2565, allocations: 0 / 410.2 MB, free: 22.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003886/0.2569, allocations: 91.98 kB / 410.2 MB, free: 22.02 MB / 298.7 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.0004891/0.2574, allocations: 302.3 kB / 410.5 MB, free: 21.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.2585, allocations: 2.127 MB / 412.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.2585, allocations: 0 / 412.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009062/0.2594, allocations: 2.182 MB / 414.8 MB, free: 17.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.2596, allocations: 28 kB / 414.9 MB, free: 17.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006088/0.2602, allocations: 0.6495 MB / 415.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000163/0.2604, allocations: 0.7364 MB / 416.3 MB, free: 15.9 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.067e-06/0.2604, allocations: 0 / 416.3 MB, free: 15.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.288e-06/0.2604, allocations: 7.438 kB / 416.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2604, allocations: 0 / 416.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of Templates: time 0.004825/0.2652, allocations: 3.015 MB / 419.3 MB, free: 12.89 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile (rm -f Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches