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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 110.8 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 51.92 kB / 351.3 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3331, allocations: 49.44 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002183/0.3353, allocations: 1.23 MB / 402 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009106/0.3362, allocations: 468.5 kB / 402.4 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.036e-05/0.3363, allocations: 0 / 402.4 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.832e-05/0.3363, allocations: 4 kB / 402.4 MB, free: 7.219 MB / 318.1 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.0004644/0.3368, allocations: 71.73 kB / 402.5 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001721/0.337, allocations: 63.75 kB / 402.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.593e-05/0.3371, allocations: 55.83 kB / 402.6 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.3371, allocations: 4 kB / 402.6 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.5e-05/0.3372, allocations: 23.97 kB / 402.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.246e-05/0.3372, allocations: 15.92 kB / 402.6 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.3372, allocations: 4 kB / 402.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002321/0.3375, allocations: 119.8 kB / 402.8 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.434e-05/0.3375, allocations: 31.86 kB / 402.8 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.672e-05/0.3376, allocations: 47.69 kB / 402.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002544/0.3378, allocations: 179.4 kB / 403 MB, free: 6.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3378, allocations: 0 / 403 MB, free: 6.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3379, allocations: 0 / 403 MB, free: 6.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3379, allocations: 4 kB / 403 MB, free: 6.609 MB / 318.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.0005455/0.3384, allocations: 0.5569 MB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3385, allocations: 8.031 kB / 403.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.3386, allocations: 24.69 kB / 403.6 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.3387, allocations: 181.4 kB / 403.8 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.3388, allocations: 4.375 kB / 403.8 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.3388, allocations: 4.375 kB / 403.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.3391, allocations: 267.9 kB / 404.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.3391, allocations: 4.188 kB / 404.1 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.3391, allocations: 15.81 kB / 404.1 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.3391, allocations: 0 / 404.1 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.3393, allocations: 147.9 kB / 404.2 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001866/0.3395, allocations: 198.2 kB / 404.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.3398, allocations: 493.1 kB / 404.9 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003126/0.3401, allocations: 473.6 kB / 405.4 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.3402, allocations: 4 kB / 405.4 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004107/0.3406, allocations: 480.8 kB / 405.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 1.112e-06/0.3406, allocations: 0 / 405.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007756/0.3414, allocations: 0.7231 MB / 406.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.388e-05/0.3415, allocations: 164.6 kB / 406.7 MB, free: 2.633 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.733e-05/0.3415, allocations: 101.8 kB / 406.8 MB, free: 2.523 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.3416, allocations: 25.7 kB / 406.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.29e-05/0.3416, allocations: 85.14 kB / 406.9 MB, free: 2.402 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.757e-05/0.3417, allocations: 82.81 kB / 407 MB, free: 2.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/0.3417, allocations: 41.69 kB / 407 MB, free: 2.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.3418, allocations: 326.8 kB / 407.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.48e-05/0.3419, allocations: 80.34 kB / 407.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.644e-05/0.342, allocations: 122.1 kB / 407.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.3423, allocations: 409.4 kB / 408 MB, free: 1.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3423, allocations: 0 / 408 MB, free: 1.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003324/0.3427, allocations: 352.7 kB / 408.3 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.21e-05/0.3428, allocations: 111.3 kB / 408.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3428, allocations: 0 / 408.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3428, allocations: 4 kB / 408.4 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.295e-06/0.3428, allocations: 3.984 kB / 408.4 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3428, allocations: 4.094 kB / 408.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.722e-05/0.3429, allocations: 27.69 kB / 408.5 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.3429, allocations: 8 kB / 408.5 MB, free: 0.7812 MB / 318.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.0002252/0.3431, allocations: 291.7 kB / 408.7 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.961e-05/0.3432, allocations: 31.75 kB / 408.8 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.59e-05/0.3432, allocations: 13.55 kB / 408.8 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3432, allocations: 0 / 408.8 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3432, allocations: 0 / 408.8 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3432, allocations: 0 / 408.8 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001524/0.3434, allocations: 225.4 kB / 409 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.3434, allocations: 4 kB / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.3434, allocations: 0 / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3434, allocations: 3.938 kB / 409 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.3434, allocations: 23.98 kB / 409 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.3435, allocations: 3.938 kB / 409 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3435, allocations: 0 / 409 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.3446, allocations: 1.224 MB / 410.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.921e-05/0.3446, allocations: 104.8 kB / 410.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-05/0.3447, allocations: 71.88 kB / 410.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.446e-05/0.3448, allocations: 8 kB / 410.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.098e-05/0.3448, allocations: 12.36 kB / 410.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.3448, allocations: 15.98 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.977e-05/0.3449, allocations: 87.27 kB / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3449, allocations: 0 / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003153/0.3452, allocations: 87.98 kB / 410.6 MB, free: 14.47 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.0004825/0.3457, allocations: 312 kB / 411 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.3472, allocations: 2.135 MB / 413.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3472, allocations: 0 / 413.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.3486, allocations: 2.178 MB / 415.3 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.3488, allocations: 24 kB / 415.3 MB, free: 9.801 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000515/0.3493, allocations: 388.4 kB / 415.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.3496, allocations: 0.7321 MB / 416.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.636e-06/0.3496, allocations: 0 / 416.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.095e-05/0.3496, allocations: 7.438 kB / 416.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3496, allocations: 0 / 416.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of Templates: time 0.005448/0.3551, allocations: 3.003 MB / 419.4 MB, free: 5.625 MB / 334.1 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/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_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches