Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers") translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00157/0.00157, allocations: 109.3 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001681/0.001681, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.473/1.473, allocations: 230.4 MB / 251.1 MB, free: 8.496 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 75.81 kB / 368.9 MB, free: 6.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.24, allocations: 53.31 MB / 422.3 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002212/0.2422, allocations: 1.238 MB / 423.5 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009556/0.2432, allocations: 477.3 kB / 424 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.275e-05/0.2432, allocations: 0 / 424 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.334e-05/0.2433, allocations: 0 / 424 MB, free: 6.148 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.0004466/0.2437, allocations: 75.73 kB / 424 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001418/0.2439, allocations: 63.75 kB / 424.1 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.783e-05/0.244, allocations: 51.89 kB / 424.2 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.196e-05/0.244, allocations: 0 / 424.2 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.65e-05/0.244, allocations: 23.91 kB / 424.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.747e-05/0.2441, allocations: 15.92 kB / 424.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.2441, allocations: 4 kB / 424.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002488/0.2443, allocations: 127.8 kB / 424.3 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.496e-05/0.2444, allocations: 31.92 kB / 424.4 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.13e-05/0.2444, allocations: 55.59 kB / 424.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002519/0.2447, allocations: 170.9 kB / 424.6 MB, free: 5.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2447, allocations: 11.94 kB / 424.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2447, allocations: 0 / 424.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.2447, allocations: 0 / 424.6 MB, free: 5.531 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.0006233/0.2453, allocations: 0.5671 MB / 425.2 MB, free: 4.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.2453, allocations: 8.031 kB / 425.2 MB, free: 4.895 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.2455, allocations: 24.83 kB / 425.2 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.2456, allocations: 176.2 kB / 425.4 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.2457, allocations: 8.375 kB / 425.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.2457, allocations: 4.375 kB / 425.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003336/0.246, allocations: 279.8 kB / 425.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.485e-06/0.246, allocations: 192 / 425.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.246, allocations: 3.938 kB / 425.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.246, allocations: 0 / 425.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.2462, allocations: 147.9 kB / 425.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002077/0.2464, allocations: 210.1 kB / 426 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.2466, allocations: 177.1 kB / 426.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.2468, allocations: 157.7 kB / 426.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.2468, allocations: 0 / 426.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004793/0.2472, allocations: 476.9 kB / 426.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 8.91e-07/0.2473, allocations: 4 kB / 426.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.0008899/0.2481, allocations: 0.7427 MB / 427.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.2482, allocations: 160.4 kB / 427.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.324e-05/0.2483, allocations: 97.86 kB / 427.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.2484, allocations: 29.7 kB / 427.8 MB, free: 2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.676e-05/0.2484, allocations: 85.14 kB / 427.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.58e-05/0.2485, allocations: 99.14 kB / 428 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.574e-05/0.2485, allocations: 41.64 kB / 428 MB, free: 1.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2487, allocations: 334.9 kB / 428.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.952e-05/0.2488, allocations: 80.34 kB / 428.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.2489, allocations: 110.2 kB / 428.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003645/0.2492, allocations: 413.4 kB / 429 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2492, allocations: 4 kB / 429 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003749/0.2496, allocations: 348.8 kB / 429.3 MB, free: 452 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.559e-05/0.2497, allocations: 115.3 kB / 429.4 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.2497, allocations: 4.094 kB / 429.4 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2497, allocations: 0 / 429.4 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.2497, allocations: 0 / 429.4 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.838e-06/0.2497, allocations: 0 / 429.4 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.064e-05/0.2498, allocations: 23.84 kB / 429.4 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.2498, allocations: 8 kB / 429.4 MB, free: 288 kB / 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.0002845/0.2501, allocations: 291.7 kB / 429.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.561e-05/0.2502, allocations: 31.84 kB / 429.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.396e-05/0.2502, allocations: 9.547 kB / 429.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.2502, allocations: 0 / 429.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2502, allocations: 0 / 429.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2502, allocations: 4 kB / 429.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.2504, allocations: 233.4 kB / 430 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2504, allocations: 4 kB / 430 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-06/0.2504, allocations: 3.938 kB / 430 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.2504, allocations: 7.938 kB / 430 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.2e-05/0.2504, allocations: 19.98 kB / 430 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2504, allocations: 0 / 430 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2504, allocations: 0 / 430 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.2518, allocations: 1.244 MB / 431.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.485e-05/0.2518, allocations: 104.9 kB / 431.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.2519, allocations: 71.89 kB / 431.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.647e-05/0.252, allocations: 8 kB / 431.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.252, allocations: 15.98 kB / 431.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/0.2521, allocations: 16.31 kB / 431.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.639e-05/0.2521, allocations: 87.27 kB / 431.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2521, allocations: 0 / 431.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00034/0.2524, allocations: 95.8 kB / 431.7 MB, free: 13.93 MB / 350.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.0006073/0.2531, allocations: 297.2 kB / 432 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.2542, allocations: 1.068 MB / 433 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2542, allocations: 0 / 433 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008497/0.255, allocations: 0.9005 MB / 433.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.2552, allocations: 20 kB / 433.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006279/0.2559, allocations: 392.2 kB / 434.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.2562, allocations: 0.7206 MB / 435.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.905e-06/0.2562, allocations: 0 / 435.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.2562, allocations: 11.44 kB / 435.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2562, allocations: 0 / 435.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Templates: time 0.006531/0.2628, allocations: 3.059 MB / 438.1 MB, free: 7.395 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & ./Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches