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.001359/0.001359, allocations: 112.6 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 203.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.708/1.708, allocations: 227.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 59.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3046, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00272/0.3074, allocations: 1.231 MB / 411.2 MB, free: 372 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.3085, allocations: 469 kB / 411.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.323e-05/0.3085, allocations: 0 / 411.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.582e-05/0.3086, allocations: 7.938 kB / 411.6 MB, free: 15.89 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.0005505/0.3091, allocations: 71.73 kB / 411.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.3093, allocations: 59.81 kB / 411.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.3095, allocations: 51.84 kB / 411.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.271e-05/0.3095, allocations: 4 kB / 411.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.991e-05/0.3096, allocations: 15.97 kB / 411.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.14e-05/0.3096, allocations: 23.91 kB / 411.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.3096, allocations: 4 kB / 411.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002852/0.3099, allocations: 119.8 kB / 412 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.979e-05/0.31, allocations: 31.91 kB / 412 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.425e-05/0.3101, allocations: 51.69 kB / 412 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003031/0.3104, allocations: 183.4 kB / 412.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3104, allocations: 0 / 412.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3104, allocations: 0 / 412.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.3104, allocations: 0 / 412.2 MB, free: 15.29 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.0006925/0.3111, allocations: 0.5568 MB / 412.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3112, allocations: 12.03 kB / 412.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.3113, allocations: 16.75 kB / 412.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.3115, allocations: 176.1 kB / 413 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.3116, allocations: 12.38 kB / 413 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.3116, allocations: 8.312 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.312, allocations: 275.8 kB / 413.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.312, allocations: 4.125 kB / 413.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.312, allocations: 3.938 kB / 413.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.312, allocations: 4 kB / 413.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.3122, allocations: 139.9 kB / 413.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002329/0.3124, allocations: 214 kB / 413.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004096/0.3129, allocations: 493.1 kB / 414.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000362/0.3132, allocations: 469.7 kB / 414.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.3133, allocations: 0 / 414.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005469/0.3138, allocations: 480.9 kB / 415 MB, free: 12.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.703e-06/0.3138, allocations: 11.88 kB / 415.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008849/0.3147, allocations: 0.7115 MB / 415.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.3148, allocations: 160.4 kB / 415.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.315, allocations: 105.8 kB / 416 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.315, allocations: 25.7 kB / 416 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.46e-05/0.315, allocations: 81.14 kB / 416.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.446e-05/0.3151, allocations: 86.88 kB / 416.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.891e-05/0.3152, allocations: 37.7 kB / 416.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3154, allocations: 334.8 kB / 416.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.892e-05/0.3155, allocations: 80.34 kB / 416.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.85e-05/0.3156, allocations: 110.2 kB / 416.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003428/0.3159, allocations: 421.4 kB / 417.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3159, allocations: 0 / 417.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003704/0.3163, allocations: 348.8 kB / 417.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/0.3164, allocations: 111.3 kB / 417.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3164, allocations: 0 / 417.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3165, allocations: 3.938 kB / 417.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.3165, allocations: 0 / 417.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.3165, allocations: 4 kB / 417.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.512e-05/0.3166, allocations: 19.75 kB / 417.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.3166, allocations: 12 kB / 417.7 MB, free: 9.461 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.0002772/0.3169, allocations: 308.9 kB / 418 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.3169, allocations: 27.75 kB / 418 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.647e-05/0.317, allocations: 5.562 kB / 418 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.317, allocations: 0 / 418 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.317, allocations: 4 kB / 418 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.317, allocations: 4 kB / 418 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.3172, allocations: 233.3 kB / 418.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3172, allocations: 0 / 418.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.496e-06/0.3172, allocations: 8.328 kB / 418.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3172, allocations: 3.938 kB / 418.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.213e-05/0.3173, allocations: 19.98 kB / 418.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3173, allocations: 0 / 418.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3173, allocations: 0 / 418.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.3185, allocations: 1.224 MB / 419.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.009e-05/0.3186, allocations: 92.89 kB / 419.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.944e-05/0.3187, allocations: 71.88 kB / 419.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.733e-05/0.3187, allocations: 8 kB / 419.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.3188, allocations: 23.91 kB / 419.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.3188, allocations: 15.98 kB / 419.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.521e-05/0.3189, allocations: 79.28 kB / 419.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3189, allocations: 0 / 419.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003568/0.3193, allocations: 99.86 kB / 419.9 MB, free: 7.129 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.000582/0.3198, allocations: 293.8 kB / 420.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.3216, allocations: 2.127 MB / 422.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3216, allocations: 4 kB / 422.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.3232, allocations: 2.186 MB / 424.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.3234, allocations: 20 kB / 424.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000675/0.3241, allocations: 414.2 kB / 424.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.3244, allocations: 0.7245 MB / 425.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.732e-05/0.3244, allocations: 7.438 kB / 425.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3244, allocations: 0 / 425.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of Templates: time 0.005472/0.3299, allocations: 2.875 MB / 428.5 MB, free: 14.4 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