Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 201.6 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 229.5 MB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007535/0.0007537, allocations: 88.41 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002028/0.0002029, allocations: 8 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1921, allocations: 51.43 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.0009228/0.1931, allocations: 0.9568 MB / 413 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007522/0.1938, allocations: 1.053 MB / 414.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.172e-05/0.1939, allocations: 0 / 414.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.688e-05/0.1939, allocations: 0 / 414.1 MB, free: 23.73 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0003287/0.1942, allocations: 56.58 kB / 414.1 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.799e-05/0.1943, allocations: 60.36 kB / 414.2 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.971e-05/0.1944, allocations: 47.83 kB / 414.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.395e-05/0.1945, allocations: 6.469 kB / 414.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.476e-05/0.1945, allocations: 15.92 kB / 414.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.982e-05/0.1945, allocations: 19.92 kB / 414.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.007e-05/0.1945, allocations: 0 / 414.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.1947, allocations: 107.8 kB / 414.4 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.054e-05/0.1947, allocations: 31.92 kB / 414.4 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.281e-05/0.1948, allocations: 83.17 kB / 414.5 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.195, allocations: 171.4 kB / 414.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.195, allocations: 0 / 414.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.195, allocations: 0 / 414.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.195, allocations: 0 / 414.7 MB, free: 23.14 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.0003299/0.1953, allocations: 0.5522 MB / 415.2 MB, free: 22.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.1954, allocations: 12.03 kB / 415.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.1955, allocations: 16.75 kB / 415.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.202e-05/0.1956, allocations: 185.7 kB / 415.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.1956, allocations: 384 / 415.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.1956, allocations: 4.375 kB / 415.4 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.1958, allocations: 287.7 kB / 415.7 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.1958, allocations: 192 / 415.7 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.1958, allocations: 3.938 kB / 415.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.1959, allocations: 4 kB / 415.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.543e-05/0.196, allocations: 139.9 kB / 415.8 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001112/0.1961, allocations: 198.2 kB / 416 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.1963, allocations: 0.4893 MB / 416.5 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.1965, allocations: 470.4 kB / 417 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.1965, allocations: 0 / 417 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.1968, allocations: 484.8 kB / 417.5 MB, free: 20.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.032e-06/0.1968, allocations: 0 / 417.5 MB, free: 20.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0005499/0.1974, allocations: 0.7115 MB / 418.2 MB, free: 19.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.1974, allocations: 160.5 kB / 418.3 MB, free: 19.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.722e-05/0.1975, allocations: 98 kB / 418.4 MB, free: 19.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.163e-06/0.1975, allocations: 29.7 kB / 418.5 MB, free: 19.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.612e-05/0.1975, allocations: 85.14 kB / 418.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.184e-05/0.1976, allocations: 86.8 kB / 418.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.1976, allocations: 0 / 418.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.096e-05/0.1976, allocations: 330.8 kB / 418.9 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.308e-05/0.1977, allocations: 84.41 kB / 419 MB, free: 18.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.164e-05/0.1977, allocations: 110.2 kB / 419.1 MB, free: 18.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.1979, allocations: 425.4 kB / 419.5 MB, free: 17.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1979, allocations: 0 / 419.5 MB, free: 17.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002303/0.1982, allocations: 340.8 kB / 419.9 MB, free: 17.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.511e-05/0.1982, allocations: 115.2 kB / 420 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.1983, allocations: 0 / 420 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.1983, allocations: 4 kB / 420 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1983, allocations: 96 / 420 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.85e-06/0.1983, allocations: 4 kB / 420 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.527e-05/0.1983, allocations: 23.75 kB / 420 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.1984, allocations: 8 kB / 420 MB, free: 17.39 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.0001585/0.1985, allocations: 299.7 kB / 420.3 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.1986, allocations: 27.75 kB / 420.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.758e-06/0.1986, allocations: 9.562 kB / 420.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1986, allocations: 0 / 420.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.1986, allocations: 0 / 420.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1986, allocations: 7.938 kB / 420.4 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.881e-05/0.1987, allocations: 237.3 kB / 420.6 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1987, allocations: 0 / 420.6 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1987, allocations: 0 / 420.6 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1987, allocations: 7.938 kB / 420.6 MB, free: 16.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.1988, allocations: 19.98 kB / 420.6 MB, free: 16.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1988, allocations: 0 / 420.6 MB, free: 16.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1988, allocations: 4 kB / 420.6 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007708/0.1995, allocations: 1.22 MB / 421.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.298e-05/0.1996, allocations: 96.8 kB / 421.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.468e-05/0.1997, allocations: 71.88 kB / 422 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.931e-05/0.1997, allocations: 12.03 kB / 422 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/0.1998, allocations: 15.92 kB / 422 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.1998, allocations: 23.97 kB / 422.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.009e-05/0.1998, allocations: 83.28 kB / 422.2 MB, free: 15.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1998, allocations: 0 / 422.2 MB, free: 15.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.2001, allocations: 91.98 kB / 422.2 MB, free: 15.05 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.0004044/0.2005, allocations: 316.8 kB / 422.5 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001009/0.2015, allocations: 2.135 MB / 424.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2015, allocations: 0 / 424.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009314/0.2024, allocations: 2.178 MB / 426.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.2026, allocations: 24 kB / 426.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000424/0.2031, allocations: 411.5 kB / 427.3 MB, free: 9.949 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.2032, allocations: 0.7286 MB / 428 MB, free: 9.191 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.975e-06/0.2032, allocations: 0 / 428 MB, free: 9.191 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-06/0.2032, allocations: 11.38 kB / 428 MB, free: 9.18 MB / 298.7 MB Notification: Performance of SimCode: time 9.01e-07/0.2032, allocations: 0 / 428 MB, free: 9.18 MB / 298.7 MB Notification: Performance of Templates: time 0.004253/0.2075, allocations: 2.804 MB / 430.8 MB, free: 6.371 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_trunk_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches