Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 182.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 225.7 MB / 243.2 MB, free: 8.523 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009452/0.0009452, allocations: 95.23 kB / 294.4 MB, free: 9.516 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003211/0.0003213, allocations: 7.938 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2182, allocations: 50.42 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.0008738/0.2191, allocations: 0.9524 MB / 405.5 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007679/0.2199, allocations: 1.053 MB / 406.6 MB, free: 29.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.135e-05/0.2199, allocations: 0 / 406.6 MB, free: 29.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.624e-05/0.2199, allocations: 0 / 406.6 MB, free: 29.19 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0003297/0.2203, allocations: 55.81 kB / 406.6 MB, free: 29.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.793e-05/0.2204, allocations: 61.19 kB / 406.7 MB, free: 29.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.555e-05/0.2204, allocations: 43.84 kB / 406.7 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.148e-05/0.2205, allocations: 4 kB / 406.7 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.517e-05/0.2205, allocations: 13.83 kB / 406.7 MB, free: 29.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.956e-05/0.2206, allocations: 19.92 kB / 406.8 MB, free: 29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.267e-06/0.2206, allocations: 0 / 406.8 MB, free: 29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.2207, allocations: 107.8 kB / 406.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.605e-05/0.2208, allocations: 43.83 kB / 406.9 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.854e-05/0.2208, allocations: 74.02 kB / 407 MB, free: 28.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.221, allocations: 167.4 kB / 407.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.221, allocations: 7.25 kB / 407.2 MB, free: 28.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.221, allocations: 0 / 407.2 MB, free: 28.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.2211, allocations: 4 kB / 407.2 MB, free: 28.6 MB / 298.7 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.0003382/0.2214, allocations: 0.5412 MB / 407.7 MB, free: 27.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.2214, allocations: 12.03 kB / 407.7 MB, free: 27.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.994e-05/0.2215, allocations: 24.73 kB / 407.7 MB, free: 27.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.683e-05/0.2216, allocations: 181.8 kB / 407.9 MB, free: 27.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.2217, allocations: 1 kB / 407.9 MB, free: 27.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.2217, allocations: 4.875 kB / 407.9 MB, free: 27.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.2219, allocations: 277.1 kB / 408.2 MB, free: 27.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.2219, allocations: 4.125 kB / 408.2 MB, free: 27.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.2219, allocations: 14.48 kB / 408.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.496e-06/0.2219, allocations: 3.938 kB / 408.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.773e-05/0.222, allocations: 143.9 kB / 408.4 MB, free: 27.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000115/0.2222, allocations: 198.2 kB / 408.5 MB, free: 27.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.2224, allocations: 495.9 kB / 409 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.2226, allocations: 473.7 kB / 409.5 MB, free: 26.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.2226, allocations: 0 / 409.5 MB, free: 26.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.2229, allocations: 483.6 kB / 410 MB, free: 25.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.152e-06/0.2229, allocations: 4 kB / 410 MB, free: 25.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005745/0.2235, allocations: 0.7075 MB / 410.7 MB, free: 24.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.2236, allocations: 160.5 kB / 410.8 MB, free: 24.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.269e-05/0.2236, allocations: 105.9 kB / 410.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.025e-06/0.2236, allocations: 25.7 kB / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.918e-05/0.2237, allocations: 89.12 kB / 411.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.017e-05/0.2237, allocations: 82.81 kB / 411.1 MB, free: 24.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-06/0.2237, allocations: 0 / 411.1 MB, free: 24.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.559e-05/0.2238, allocations: 326.8 kB / 411.5 MB, free: 24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.584e-05/0.2238, allocations: 84.34 kB / 411.5 MB, free: 23.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.335e-05/0.2239, allocations: 114.1 kB / 411.6 MB, free: 23.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.2241, allocations: 417.4 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2241, allocations: 0 / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002329/0.2243, allocations: 344.7 kB / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.706e-05/0.2244, allocations: 111.3 kB / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.2244, allocations: 0 / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.2244, allocations: 4 kB / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.2245, allocations: 0 / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.2245, allocations: 3.938 kB / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.821e-05/0.2246, allocations: 23.75 kB / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.2246, allocations: 16.08 kB / 412.5 MB, free: 22.84 MB / 298.7 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 ($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: 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.0001713/0.2248, allocations: 291.7 kB / 412.8 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.2248, allocations: 31.75 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.709e-06/0.2248, allocations: 9.562 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.2248, allocations: 0 / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2248, allocations: 0 / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2248, allocations: 3.984 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.2249, allocations: 237.3 kB / 413.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2249, allocations: 0 / 413.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.225, allocations: 0 / 413.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.225, allocations: 3.938 kB / 413.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.225, allocations: 19.98 kB / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.225, allocations: 0 / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.225, allocations: 8 kB / 413.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007939/0.2258, allocations: 1.217 MB / 414.4 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.592e-05/0.2258, allocations: 104.7 kB / 414.5 MB, free: 20.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.591e-05/0.2259, allocations: 67.89 kB / 414.5 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.887e-05/0.226, allocations: 11.98 kB / 414.5 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.226, allocations: 11.98 kB / 414.5 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.226, allocations: 24.02 kB / 414.6 MB, free: 20.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.058e-05/0.2261, allocations: 83.28 kB / 414.7 MB, free: 20.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2261, allocations: 0 / 414.7 MB, free: 20.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002714/0.2264, allocations: 91.98 kB / 414.7 MB, free: 20.53 MB / 298.7 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.0004684/0.2268, allocations: 327.7 kB / 415.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.2279, allocations: 2.127 MB / 417.2 MB, free: 18.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2279, allocations: 128 / 417.2 MB, free: 18.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.229, allocations: 2.182 MB / 419.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001813/0.2292, allocations: 20 kB / 419.4 MB, free: 15.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005007/0.2297, allocations: 427.4 kB / 419.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.2299, allocations: 0.7169 MB / 420.5 MB, free: 14.65 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.598e-06/0.2299, allocations: 0 / 420.5 MB, free: 14.65 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.126e-05/0.2299, allocations: 11.44 kB / 420.5 MB, free: 14.64 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2299, allocations: 4 kB / 420.5 MB, free: 14.64 MB / 298.7 MB Notification: Performance of Templates: time 0.004634/0.2346, allocations: 2.799 MB / 423.3 MB, free: 11.84 MB / 298.7 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","../files/Modelica_4.0.0_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches