Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.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.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008297/0.0008297, allocations: 183.1 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.192/1.192, allocations: 225.7 MB / 243.2 MB, free: 8.512 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.0008685/0.0008686, allocations: 97.97 kB / 294.4 MB, free: 9.52 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002423/0.0002425, allocations: 11.94 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1852, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.00125/0.1865, allocations: 1.253 MB / 405.8 MB, free: 30.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.1884, allocations: 2.485 MB / 408.3 MB, free: 27.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.818e-05/0.1884, allocations: 0.5312 kB / 408.3 MB, free: 27.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.993e-05/0.1885, allocations: 6.562 kB / 408.3 MB, free: 27.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.679e-05/0.1886, allocations: 23.84 kB / 408.3 MB, free: 27.31 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.typeClassSections: time 0.0006712/0.1893, allocations: 304.1 kB / 408.6 MB, free: 27.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.744e-05/0.1894, allocations: 123.6 kB / 408.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.143e-05/0.1895, allocations: 14.33 kB / 408.8 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.312e-05/0.1895, allocations: 47.78 kB / 408.8 MB, free: 26.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007234/0.1902, allocations: 80.44 kB / 408.9 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.1903, allocations: 4 kB / 408.9 MB, free: 26.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004946/0.1908, allocations: 423.1 kB / 409.3 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.301e-05/0.1908, allocations: 39.77 kB / 409.4 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.545e-05/0.1909, allocations: 81.36 kB / 409.4 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000407/0.1913, allocations: 400.5 kB / 409.8 MB, free: 25.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1913, allocations: 4 kB / 409.8 MB, free: 25.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1913, allocations: 0 / 409.8 MB, free: 25.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1913, allocations: 0 / 409.8 MB, free: 25.81 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.000563/0.1919, allocations: 498.7 kB / 410.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.1919, allocations: 12.03 kB / 410.3 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.1921, allocations: 28.73 kB / 410.4 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.1923, allocations: 216.7 kB / 410.6 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.1923, allocations: 11.94 kB / 410.6 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.1923, allocations: 11.98 kB / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.1925, allocations: 136 kB / 410.7 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.1926, allocations: 0 / 410.7 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.1926, allocations: 7.984 kB / 410.7 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.1926, allocations: 4 kB / 410.7 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.1928, allocations: 71.89 kB / 410.8 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005634/0.1933, allocations: 0.5555 MB / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.1936, allocations: 159.7 kB / 411.5 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.1938, allocations: 74.61 kB / 411.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-06/0.1938, allocations: 0 / 411.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002296/0.194, allocations: 157.8 kB / 411.7 MB, free: 23.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.194, allocations: 0 / 411.7 MB, free: 23.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004866/0.1945, allocations: 261.9 kB / 412 MB, free: 23.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.1946, allocations: 122.9 kB / 412.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.1947, allocations: 200.1 kB / 412.3 MB, free: 23.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.1947, allocations: 45.69 kB / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.315e-05/0.1948, allocations: 108.6 kB / 412.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.113e-05/0.1948, allocations: 47.44 kB / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.128e-06/0.1948, allocations: 4 kB / 412.5 MB, free: 22.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.538e-05/0.1949, allocations: 330.8 kB / 412.8 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.1951, allocations: 103.8 kB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.1952, allocations: 143.4 kB / 413.1 MB, free: 22.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/0.1955, allocations: 229.6 kB / 413.3 MB, free: 22.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1955, allocations: 3.938 kB / 413.3 MB, free: 22.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004016/0.1959, allocations: 310.6 kB / 413.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.196, allocations: 4 kB / 413.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.196, allocations: 3.938 kB / 413.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.196, allocations: 4 kB / 413.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.1961, allocations: 31.92 kB / 413.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.1962, allocations: 11.92 kB / 413.7 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.838e-05/0.1962, allocations: 31.83 kB / 413.7 MB, free: 21.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1963, allocations: 8 kB / 413.7 MB, free: 21.62 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * 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 9.09e-05/0.1964, allocations: 153.8 kB / 413.9 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/0.1964, allocations: 19.81 kB / 413.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.702e-05/0.1964, allocations: 9.406 kB / 413.9 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.1964, allocations: 7.938 kB / 413.9 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1964, allocations: 7.984 kB / 413.9 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1964, allocations: 4 kB / 413.9 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.1966, allocations: 221.5 kB / 414.1 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1966, allocations: 0 / 414.1 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.524e-05/0.1967, allocations: 11.94 kB / 414.1 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1967, allocations: 4 kB / 414.1 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1967, allocations: 3.984 kB / 414.1 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.1967, allocations: 3.938 kB / 414.1 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1967, allocations: 4 kB / 414.1 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/0.197, allocations: 246.4 kB / 414.4 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.833e-05/0.197, allocations: 96.91 kB / 414.5 MB, free: 20.74 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.1971, allocations: 11.94 kB / 414.5 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.476e-05/0.1971, allocations: 15.92 kB / 414.5 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.98e-05/0.1972, allocations: 15.98 kB / 414.5 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.1972, allocations: 4 kB / 414.5 MB, free: 20.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.619e-05/0.1973, allocations: 136.1 kB / 414.7 MB, free: 20.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1973, allocations: 0 / 414.7 MB, free: 20.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003224/0.1976, allocations: 119.9 kB / 414.8 MB, free: 20.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006252/0.1983, allocations: 347.8 kB / 415.1 MB, free: 20.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003455/0.1986, allocations: 203.8 kB / 415.3 MB, free: 19.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1986, allocations: 4 kB / 415.3 MB, free: 19.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.1988, allocations: 67.91 kB / 415.4 MB, free: 19.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001649/0.1989, allocations: 16.23 kB / 415.4 MB, free: 19.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003826/0.1993, allocations: 319.9 kB / 415.7 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.1995, allocations: 0.7161 MB / 416.4 MB, free: 18.76 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.599e-05/0.1995, allocations: 17.42 kB / 416.4 MB, free: 18.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.732e-05/0.1996, allocations: 23.42 kB / 416.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1996, allocations: 0 / 416.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of Templates: time 0.005374/0.2049, allocations: 3.301 MB / 419.8 MB, free: 15.42 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches