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.001041/0.001041, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001169, allocations: 63.33 kB / 306.4 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1195, allocations: 50.54 MB / 357 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.003378/0.1229, allocations: 1.298 MB / 358.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1243, allocations: 452.2 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.154e-05/0.1244, allocations: 4 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.063e-05/0.1245, allocations: 0 / 358.7 MB, free: 12.45 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.0005596/0.125, allocations: 63.81 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.1253, allocations: 67.86 kB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.1255, allocations: 47.8 kB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.542e-05/0.1255, allocations: 0 / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.292e-05/0.1256, allocations: 19.97 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.323e-05/0.1257, allocations: 19.86 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.1257, allocations: 4 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003279/0.126, allocations: 123.8 kB / 359.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.581e-05/0.1261, allocations: 35.91 kB / 359.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.887e-05/0.1262, allocations: 43.69 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003382/0.1265, allocations: 179.4 kB / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1266, allocations: 0 / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1266, allocations: 0 / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.1266, allocations: 0 / 359.3 MB, free: 11.86 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.0007623/0.1274, allocations: 0.5568 MB / 359.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1274, allocations: 16.02 kB / 359.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.1276, allocations: 24.75 kB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.1278, allocations: 184.4 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.1279, allocations: 4.375 kB / 360.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.1279, allocations: 4.375 kB / 360.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004568/0.1284, allocations: 275.8 kB / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1284, allocations: 192 / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1284, allocations: 3.938 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1284, allocations: 0 / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.1287, allocations: 147.9 kB / 360.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002481/0.1289, allocations: 206.1 kB / 360.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/0.1295, allocations: 497.2 kB / 361.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005383/0.1301, allocations: 469.6 kB / 361.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-06/0.1301, allocations: 0 / 361.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000636/0.1308, allocations: 484.9 kB / 362.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.804e-06/0.1308, allocations: 0 / 362.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.001384/0.1322, allocations: 0.7192 MB / 362.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/0.1323, allocations: 156.5 kB / 363 MB, free: 7.875 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.1325, allocations: 106 kB / 363.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.1325, allocations: 29.7 kB / 363.1 MB, free: 7.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.725e-05/0.1326, allocations: 85.2 kB / 363.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.1327, allocations: 86.81 kB / 363.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.81e-05/0.1328, allocations: 37.7 kB / 363.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.133, allocations: 330.8 kB / 363.7 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.1332, allocations: 88.28 kB / 363.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.1334, allocations: 106.2 kB / 363.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006225/0.134, allocations: 417.4 kB / 364.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.134, allocations: 4 kB / 364.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006586/0.1347, allocations: 348.8 kB / 364.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001583/0.1349, allocations: 123.2 kB / 364.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.1349, allocations: 0 / 364.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1349, allocations: 0 / 364.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.733e-06/0.135, allocations: 0 / 364.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.135, allocations: 0 / 364.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.1351, allocations: 23.75 kB / 364.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.1351, allocations: 8 kB / 364.8 MB, free: 6.02 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.0004293/0.1356, allocations: 299.7 kB / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.831e-05/0.1357, allocations: 31.75 kB / 365.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.778e-05/0.1357, allocations: 5.562 kB / 365.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1358, allocations: 0 / 365.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1358, allocations: 4 kB / 365.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.1358, allocations: 4 kB / 365.1 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.1361, allocations: 233.3 kB / 365.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1361, allocations: 0 / 365.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.333e-06/0.1361, allocations: 0 / 365.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.1362, allocations: 7.938 kB / 365.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/0.1362, allocations: 23.92 kB / 365.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.1362, allocations: 0 / 365.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.1362, allocations: 4 kB / 365.4 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.1384, allocations: 1.22 MB / 366.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.908e-05/0.1385, allocations: 92.86 kB / 366.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/0.1387, allocations: 71.88 kB / 366.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.1388, allocations: 8 kB / 366.7 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.1389, allocations: 11.98 kB / 366.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/0.1389, allocations: 19.98 kB / 366.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.275e-05/0.139, allocations: 79.28 kB / 366.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.139, allocations: 3.938 kB / 366.9 MB, free: 3.793 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005896/0.1396, allocations: 100 kB / 367 MB, free: 3.695 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.0008227/0.1405, allocations: 295.7 kB / 367.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002866/0.1434, allocations: 2.127 MB / 369.4 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1434, allocations: 0 / 369.4 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.158/0.3014, allocations: 2.18 MB / 371.6 MB, free: 21.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.3017, allocations: 24.22 kB / 371.6 MB, free: 21.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006694/0.3023, allocations: 412.3 kB / 372 MB, free: 20.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.3025, allocations: 0.7261 MB / 372.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.12e-05/0.3025, allocations: 1.641 kB / 372.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.249e-05/0.3025, allocations: 8.438 kB / 372.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3026, allocations: 0 / 372.7 MB, free: 20.21 MB / 302.1 MB Notification: Performance of Templates: time 0.006661/0.3092, allocations: 2.998 MB / 375.7 MB, free: 19.97 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