Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001656/0.001657, allocations: 107.9 kB / 17.06 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 191 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3018, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002783/0.3046, allocations: 1.52 MB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.307, allocations: 1.436 MB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.596e-05/0.3071, allocations: 0 / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.3072, allocations: 11.81 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.536e-05/0.3073, allocations: 31.78 kB / 403.2 MB, free: 5.789 MB / 318.1 MB [/home/hudson/saved_omc/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.001038/0.3084, allocations: 382.8 kB / 403.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001677/0.3085, allocations: 127.7 kB / 403.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.069e-05/0.3086, allocations: 13.42 kB / 403.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.46e-05/0.3087, allocations: 63.7 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005679/0.3093, allocations: 85.39 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.3093, allocations: 12 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006834/0.31, allocations: 411.3 kB / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.154e-05/0.3101, allocations: 43.83 kB / 404.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.951e-05/0.3101, allocations: 59.61 kB / 404.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005719/0.3107, allocations: 397.8 kB / 404.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3107, allocations: 0 / 404.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3107, allocations: 0 / 404.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.3107, allocations: 0 / 404.8 MB, free: 4.23 MB / 318.1 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.0008147/0.3116, allocations: 0.5135 MB / 405.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.3116, allocations: 8.031 kB / 405.3 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001885/0.3118, allocations: 54.62 kB / 405.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/0.312, allocations: 28.83 kB / 405.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.3122, allocations: 213.3 kB / 405.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.3123, allocations: 11.98 kB / 405.6 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.3123, allocations: 11.98 kB / 405.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.3126, allocations: 128.2 kB / 405.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3126, allocations: 4 kB / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.3126, allocations: 0 / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3126, allocations: 3.938 kB / 405.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.3128, allocations: 63.95 kB / 405.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008195/0.3137, allocations: 0.5516 MB / 406.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.314, allocations: 155.9 kB / 406.5 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.3142, allocations: 62.61 kB / 406.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.3142, allocations: 0 / 406.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/0.3145, allocations: 157.8 kB / 406.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.3145, allocations: 0 / 406.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006052/0.3151, allocations: 257.8 kB / 407 MB, free: 1.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.112e-05/0.3152, allocations: 118.7 kB / 407.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.3154, allocations: 199.1 kB / 407.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.3155, allocations: 45.62 kB / 407.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.927e-05/0.3156, allocations: 120.6 kB / 407.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.909e-05/0.3156, allocations: 43.69 kB / 407.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.519e-05/0.3157, allocations: 61.69 kB / 407.6 MB, free: 1.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3158, allocations: 330.8 kB / 407.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.316, allocations: 99.94 kB / 408 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.3162, allocations: 143.2 kB / 408.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.3166, allocations: 224.2 kB / 408.4 MB, free: 364 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3166, allocations: 4 kB / 408.4 MB, free: 360 kB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005112/0.3171, allocations: 301.4 kB / 408.7 MB, free: 52 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3172, allocations: 11.94 kB / 408.7 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3172, allocations: 0 / 408.7 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.3172, allocations: 0 / 408.7 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.3174, allocations: 39.91 kB / 408.7 MB, free: 0 / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.677e-05/0.3174, allocations: 8.078 kB / 408.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.713e-05/0.3175, allocations: 19.89 kB / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.3175, allocations: 8 kB / 408.7 MB, free: 15.96 MB / 334.1 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,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1],uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1]) * 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.0001405/0.3177, allocations: 149.9 kB / 408.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/0.3177, allocations: 23.8 kB / 408.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.863e-05/0.3178, allocations: 17.39 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3178, allocations: 4 kB / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3178, allocations: 0 / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3178, allocations: 0 / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002179/0.318, allocations: 213.5 kB / 409.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.318, allocations: 7.938 kB / 409.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.103e-05/0.3181, allocations: 19.92 kB / 409.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3181, allocations: 3.938 kB / 409.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.3181, allocations: 4 kB / 409.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3181, allocations: 0 / 409.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3181, allocations: 3.984 kB / 409.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004018/0.3186, allocations: 241.4 kB / 409.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.928e-05/0.3186, allocations: 96.97 kB / 409.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.544e-05/0.3187, allocations: 15.92 kB / 409.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.691e-05/0.3187, allocations: 4 kB / 409.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.384e-05/0.3188, allocations: 19.92 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.3188, allocations: 7.984 kB / 409.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001426/0.319, allocations: 133.2 kB / 409.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.319, allocations: 0 / 409.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005069/0.3195, allocations: 131.6 kB / 409.8 MB, free: 14.78 MB / 334.1 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,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.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.001413/0.3209, allocations: 1.061 MB / 410.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004526/0.3214, allocations: 195.8 kB / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3214, allocations: 0 / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.3216, allocations: 67.89 kB / 411.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/0.3218, allocations: 19.86 kB / 411.2 MB, free: 13.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.3249, allocations: 2.319 MB / 413.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.3253, allocations: 0.7123 MB / 414.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.987e-05/0.3254, allocations: 29.39 kB / 414.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.056e-05/0.3255, allocations: 47.42 kB / 414.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3255, allocations: 0 / 414.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02478/0.3503, allocations: 5.403 MB / 419.7 MB, free: 4.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.573, allocations: 15.14 kB / 419.7 MB, free: 4.871 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches