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.ImpureGenerator.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.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008743/0.0008744, allocations: 180.9 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.155/1.155, allocations: 225.7 MB / 243.2 MB, free: 10.25 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.0007429/0.0007429, allocations: 95.44 kB / 294.4 MB, free: 9.777 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002242, allocations: 12 kB / 354.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1908, allocations: 50.42 MB / 404.6 MB, free: 31.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.00102/0.1919, allocations: 1.066 MB / 405.6 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000571/0.1924, allocations: 0.5727 MB / 406.2 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.131e-05/0.1925, allocations: 0 / 406.2 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.1925, allocations: 1.344 kB / 406.2 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.824e-05/0.1925, allocations: 3.938 kB / 406.2 MB, free: 29.69 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.0003307/0.1929, allocations: 67.86 kB / 406.3 MB, free: 29.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.834e-05/0.1929, allocations: 16.55 kB / 406.3 MB, free: 29.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.379e-05/0.193, allocations: 4 kB / 406.3 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.989e-05/0.193, allocations: 13.25 kB / 406.3 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.793e-05/0.193, allocations: 7.922 kB / 406.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.684e-06/0.193, allocations: 0 / 406.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.1932, allocations: 73.8 kB / 406.4 MB, free: 29.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.208e-05/0.1932, allocations: 8 kB / 406.4 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.089e-05/0.1932, allocations: 33.62 kB / 406.4 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.1934, allocations: 87.75 kB / 406.5 MB, free: 29.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1934, allocations: 0 / 406.5 MB, free: 29.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1934, allocations: 0.8125 kB / 406.5 MB, free: 29.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.005e-06/0.1934, allocations: 0 / 406.5 MB, free: 29.38 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002397/0.1936, allocations: 342.8 kB / 406.9 MB, free: 29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.937e-05/0.1937, allocations: 8.031 kB / 406.9 MB, free: 28.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.586e-05/0.1937, allocations: 4.938 kB / 406.9 MB, free: 28.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.831e-05/0.1938, allocations: 165.9 kB / 407 MB, free: 28.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1938, allocations: 384 / 407 MB, free: 28.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-06/0.1938, allocations: 4.375 kB / 407 MB, free: 28.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.292e-05/0.1939, allocations: 37.83 kB / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1939, allocations: 1.812 kB / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.1939, allocations: 0 / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.1939, allocations: 3.938 kB / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.682e-05/0.1939, allocations: 11.92 kB / 407.1 MB, free: 28.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002086/0.1941, allocations: 248.8 kB / 407.3 MB, free: 28.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.859e-05/0.1942, allocations: 18.58 kB / 407.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.798e-05/0.1942, allocations: 12.92 kB / 407.4 MB, free: 28.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-06/0.1942, allocations: 0 / 407.4 MB, free: 28.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.06e-05/0.1943, allocations: 63.25 kB / 407.4 MB, free: 28.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.1943, allocations: 0 / 407.4 MB, free: 28.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001268/0.1945, allocations: 53.86 kB / 407.5 MB, free: 28.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.008e-05/0.1945, allocations: 59.34 kB / 407.5 MB, free: 28.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.408e-05/0.1945, allocations: 101.8 kB / 407.6 MB, free: 28.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.001e-06/0.1945, allocations: 29.7 kB / 407.7 MB, free: 28.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.956e-05/0.1946, allocations: 88.12 kB / 407.8 MB, free: 27.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.002e-05/0.1946, allocations: 3.906 kB / 407.8 MB, free: 27.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-06/0.1946, allocations: 0 / 407.8 MB, free: 27.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.489e-05/0.1946, allocations: 326.8 kB / 408.1 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.664e-05/0.1947, allocations: 4 kB / 408.1 MB, free: 27.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.114e-05/0.1947, allocations: 21.7 kB / 408.1 MB, free: 27.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.256e-05/0.1947, allocations: 33.64 kB / 408.1 MB, free: 27.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1947, allocations: 0 / 408.1 MB, free: 27.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.528e-05/0.1948, allocations: 53.62 kB / 408.2 MB, free: 27.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/0.1948, allocations: 8 kB / 408.2 MB, free: 27.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.1948, allocations: 4.031 kB / 408.2 MB, free: 27.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.547e-06/0.1948, allocations: 0 / 408.2 MB, free: 27.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.841e-05/0.1949, allocations: 11.98 kB / 408.2 MB, free: 27.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.1949, allocations: 0 / 408.2 MB, free: 27.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.73e-05/0.1949, allocations: 7.844 kB / 408.2 MB, free: 27.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.1949, allocations: 8 kB / 408.2 MB, free: 27.46 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: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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 4.259e-05/0.195, allocations: 117.7 kB / 408.3 MB, free: 27.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-06/0.195, allocations: 4 kB / 408.3 MB, free: 27.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.699e-05/0.195, allocations: 7.906 kB / 408.4 MB, free: 27.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.195, allocations: 3.984 kB / 408.4 MB, free: 27.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.195, allocations: 0 / 408.4 MB, free: 27.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.195, allocations: 0 / 408.4 MB, free: 27.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.1952, allocations: 290.9 kB / 408.6 MB, free: 26.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1952, allocations: 0 / 408.6 MB, free: 26.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.173e-05/0.1952, allocations: 4 kB / 408.6 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1952, allocations: 0 / 408.6 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-06/0.1952, allocations: 4 kB / 408.7 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1952, allocations: 0 / 408.7 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1952, allocations: 4 kB / 408.7 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.544e-05/0.1953, allocations: 155.4 kB / 408.8 MB, free: 26.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.321e-05/0.1953, allocations: 81.02 kB / 408.9 MB, free: 26.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.1953, allocations: 0 / 408.9 MB, free: 26.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.272e-05/0.1954, allocations: 0 / 408.9 MB, free: 26.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.1954, allocations: 4 kB / 408.9 MB, free: 26.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.1954, allocations: 3.938 kB / 408.9 MB, free: 26.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.026e-05/0.1954, allocations: 91.2 kB / 409 MB, free: 26.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1954, allocations: 4 kB / 409 MB, free: 26.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002459/0.1957, allocations: 24 kB / 409 MB, free: 26.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002931/0.196, allocations: 203 kB / 409.2 MB, free: 26.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.739e-05/0.1961, allocations: 19.98 kB / 409.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1961, allocations: 0 / 409.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.854e-05/0.1961, allocations: 7.938 kB / 409.2 MB, free: 26.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001692/0.1963, allocations: 8 kB / 409.2 MB, free: 26.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000178/0.1965, allocations: 120.6 kB / 409.4 MB, free: 26.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.439e-05/0.1965, allocations: 0.681 MB / 410 MB, free: 25.51 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.379e-05/0.1966, allocations: 7.984 kB / 410.1 MB, free: 25.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.221e-05/0.1966, allocations: 11.44 kB / 410.1 MB, free: 25.49 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1966, allocations: 0 / 410.1 MB, free: 25.49 MB / 298.7 MB Notification: Performance of Templates: time 0.00237/0.199, allocations: 0.9253 MB / 411 MB, free: 24.56 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches