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.001226/0.001226, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 59.78 kB / 306.9 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08948/0.09075, allocations: 50.54 MB / 357.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00249/0.09328, allocations: 1.29 MB / 358.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009599/0.09427, allocations: 468.2 kB / 359.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.641e-05/0.09434, allocations: 7.875 kB / 359.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.271e-05/0.09438, allocations: 0 / 359.2 MB, free: 12.51 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.0004106/0.0948, allocations: 63.88 kB / 359.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.09496, allocations: 47.89 kB / 359.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.146e-05/0.09504, allocations: 47.83 kB / 359.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.09509, allocations: 0 / 359.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.3e-05/0.09513, allocations: 15.98 kB / 359.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.855e-05/0.09517, allocations: 23.84 kB / 359.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.09519, allocations: 4 kB / 359.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.09542, allocations: 115.8 kB / 359.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.645e-05/0.09548, allocations: 27.92 kB / 359.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.347e-05/0.09556, allocations: 59.59 kB / 359.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.09576, allocations: 123.7 kB / 359.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09577, allocations: 0 / 359.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.09577, allocations: 0 / 359.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.09579, allocations: 0 / 359.7 MB, free: 11.99 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.0005952/0.09639, allocations: 0.5569 MB / 360.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.09643, allocations: 12.03 kB / 360.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.09658, allocations: 24.73 kB / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.09673, allocations: 188.4 kB / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.09675, allocations: 4.375 kB / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.09677, allocations: 8.375 kB / 360.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.09707, allocations: 271.8 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.09709, allocations: 192 / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.09711, allocations: 3.938 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.09712, allocations: 0 / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001529/0.09728, allocations: 147.9 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.09747, allocations: 202.1 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.09785, allocations: 0.4972 MB / 361.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003192/0.09818, allocations: 469.7 kB / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.09819, allocations: 0 / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004736/0.09867, allocations: 476.9 kB / 362.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.312e-06/0.09868, allocations: 0 / 362.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008057/0.09949, allocations: 0.7231 MB / 363.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/0.09959, allocations: 156.5 kB / 363.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.934e-05/0.09969, allocations: 105.8 kB / 363.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.09971, allocations: 25.7 kB / 363.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.342e-05/0.09975, allocations: 85.08 kB / 363.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.224e-05/0.09985, allocations: 90.75 kB / 363.7 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.608e-05/0.09991, allocations: 45.75 kB / 363.8 MB, free: 7.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1, allocations: 326.8 kB / 364.1 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.1001, allocations: 80.34 kB / 364.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.023e-05/0.1002, allocations: 110.2 kB / 364.3 MB, free: 7.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003501/0.1006, allocations: 421.4 kB / 364.7 MB, free: 6.676 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1006, allocations: 0 / 364.7 MB, free: 6.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003508/0.1009, allocations: 344.7 kB / 365 MB, free: 6.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.778e-05/0.101, allocations: 119.3 kB / 365.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1011, allocations: 7.984 kB / 365.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.1011, allocations: 0 / 365.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1011, allocations: 0 / 365.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.1011, allocations: 3.984 kB / 365.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.255e-05/0.1012, allocations: 23.75 kB / 365.2 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.1012, allocations: 8 kB / 365.2 MB, free: 6.148 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.0002549/0.1014, allocations: 299.6 kB / 365.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.1015, allocations: 32.08 kB / 365.5 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.457e-05/0.1015, allocations: 5.562 kB / 365.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.1015, allocations: 7.969 kB / 365.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1015, allocations: 0 / 365.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1016, allocations: 4 kB / 365.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001809/0.1017, allocations: 233.3 kB / 365.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1017, allocations: 3.938 kB / 365.7 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.204e-06/0.1018, allocations: 4 kB / 365.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1018, allocations: 3.938 kB / 365.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.1018, allocations: 19.98 kB / 365.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1018, allocations: 0 / 365.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.1018, allocations: 4 kB / 365.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.103, allocations: 1.22 MB / 367 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.541e-05/0.103, allocations: 96.84 kB / 367.1 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.1031, allocations: 67.89 kB / 367.1 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.555e-05/0.1032, allocations: 11.98 kB / 367.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.1032, allocations: 8 kB / 367.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/0.1033, allocations: 19.98 kB / 367.2 MB, free: 4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.974e-05/0.1033, allocations: 83.22 kB / 367.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1033, allocations: 3.938 kB / 367.3 MB, free: 3.914 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.1037, allocations: 95.98 kB / 367.4 MB, free: 3.82 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.0005745/0.1043, allocations: 295.4 kB / 367.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.1058, allocations: 2.127 MB / 369.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1058, allocations: 0 / 369.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1413/0.2471, allocations: 2.18 MB / 372 MB, free: 21.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.2475, allocations: 20.14 kB / 372 MB, free: 21.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007038/0.2482, allocations: 445 kB / 372.4 MB, free: 20.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001717/0.2484, allocations: 0.7226 MB / 373.1 MB, free: 20.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.2484, allocations: 10.44 kB / 373.1 MB, free: 20.1 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.2484, allocations: 5.297 kB / 373.2 MB, free: 20.1 MB / 302.1 MB Notification: Performance of Templates: time 0.00613/0.2545, allocations: 2.848 MB / 376 MB, free: 19.85 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/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