Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00158/0.00158, allocations: 201 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009934/0.0009934, allocations: 95.8 kB / 299.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.0003721, allocations: 4 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3172, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001686/0.319, allocations: 1.258 MB / 413.3 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.3213, allocations: 2.77 MB / 416.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.221e-05/0.3214, allocations: 4 kB / 416.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.3215, allocations: 3.938 kB / 416.1 MB, free: 21.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.794e-05/0.3216, allocations: 15.86 kB / 416.1 MB, free: 21.52 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.typeClassSections: time 0.0008431/0.3225, allocations: 315.2 kB / 416.4 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.3226, allocations: 127.5 kB / 416.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.396e-05/0.3227, allocations: 9.484 kB / 416.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.869e-05/0.3227, allocations: 59.77 kB / 416.6 MB, free: 21.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007634/0.3235, allocations: 79.06 kB / 416.7 MB, free: 20.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.3235, allocations: 7.938 kB / 416.7 MB, free: 20.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005898/0.3241, allocations: 435.1 kB / 417.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.195e-05/0.3242, allocations: 27.91 kB / 417.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.458e-05/0.3243, allocations: 85.23 kB / 417.2 MB, free: 20.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004683/0.3247, allocations: 408.5 kB / 417.6 MB, free: 19.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3248, allocations: 0 / 417.6 MB, free: 19.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3248, allocations: 0 / 417.6 MB, free: 19.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.3248, allocations: 0 / 417.6 MB, free: 19.98 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.0007139/0.3255, allocations: 494.8 kB / 418.1 MB, free: 19.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3256, allocations: 16.02 kB / 418.1 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002062/0.3258, allocations: 36.67 kB / 418.2 MB, free: 19.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.3259, allocations: 208.8 kB / 418.4 MB, free: 19.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.3259, allocations: 4.375 kB / 418.4 MB, free: 19.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.326, allocations: 12.12 kB / 418.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.3262, allocations: 128.1 kB / 418.5 MB, free: 19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.3262, allocations: 0 / 418.5 MB, free: 19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.3262, allocations: 8 kB / 418.5 MB, free: 18.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3263, allocations: 4 kB / 418.5 MB, free: 18.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.3264, allocations: 63.95 kB / 418.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.3271, allocations: 0.5632 MB / 419.1 MB, free: 18.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002827/0.3274, allocations: 163.7 kB / 419.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.3275, allocations: 74.61 kB / 419.4 MB, free: 18.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.3275, allocations: 0 / 419.4 MB, free: 18.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.3278, allocations: 161.8 kB / 419.5 MB, free: 17.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.112e-06/0.3278, allocations: 0 / 419.5 MB, free: 17.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004891/0.3283, allocations: 265.6 kB / 419.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.3283, allocations: 118.8 kB / 419.9 MB, free: 17.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.3285, allocations: 200.2 kB / 420.1 MB, free: 17.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.3285, allocations: 45.69 kB / 420.1 MB, free: 17.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.72e-05/0.3286, allocations: 108.6 kB / 420.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.345e-05/0.3286, allocations: 47.44 kB / 420.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-06/0.3286, allocations: 4 kB / 420.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.235e-05/0.3287, allocations: 330.8 kB / 420.6 MB, free: 16.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.3289, allocations: 108 kB / 420.7 MB, free: 16.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.329, allocations: 136.3 kB / 420.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002957/0.3293, allocations: 238.9 kB / 421.1 MB, free: 16.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3294, allocations: 0 / 421.1 MB, free: 16.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000407/0.3298, allocations: 297.3 kB / 421.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.3298, allocations: 7.938 kB / 421.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3298, allocations: 0 / 421.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3298, allocations: 4 kB / 421.4 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.33, allocations: 39.91 kB / 421.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.33, allocations: 96 / 421.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.765e-05/0.3301, allocations: 35.69 kB / 421.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.3301, allocations: 4 kB / 421.5 MB, free: 15.82 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 0.0001074/0.3302, allocations: 153.7 kB / 421.6 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.3302, allocations: 15.81 kB / 421.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.3303, allocations: 13.39 kB / 421.7 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.3303, allocations: 7.938 kB / 421.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3303, allocations: 4 kB / 421.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.3303, allocations: 3.938 kB / 421.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.3305, allocations: 221.5 kB / 421.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3305, allocations: 0 / 421.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.785e-05/0.3305, allocations: 15.92 kB / 421.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3305, allocations: 4 kB / 421.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.3306, allocations: 0 / 421.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3306, allocations: 480 / 421.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3306, allocations: 4 kB / 421.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.3309, allocations: 250.4 kB / 422.2 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.019e-05/0.3309, allocations: 92.86 kB / 422.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/0.331, allocations: 15.98 kB / 422.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.398e-05/0.331, allocations: 8 kB / 422.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.3311, allocations: 15.92 kB / 422.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.3311, allocations: 7.984 kB / 422.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.113e-05/0.3312, allocations: 137.7 kB / 422.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3312, allocations: 0 / 422.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003489/0.3316, allocations: 127.9 kB / 422.6 MB, free: 14.64 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.0006855/0.3322, allocations: 360.6 kB / 422.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003916/0.3326, allocations: 203.8 kB / 423.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3327, allocations: 0 / 423.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.3328, allocations: 76.22 kB / 423.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001815/0.333, allocations: 11.75 kB / 423.2 MB, free: 14.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004354/0.3334, allocations: 327.9 kB / 423.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.3336, allocations: 0.7202 MB / 424.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.598e-05/0.3337, allocations: 21.42 kB / 424.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.6e-05/0.3337, allocations: 15.53 kB / 424.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3337, allocations: 3.938 kB / 424.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of Templates: time 0.005641/0.3394, allocations: 3.374 MB / 427.6 MB, free: 9.512 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches