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.001462/0.001462, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.00154/0.00154, allocations: 193.4 kB / 18 MB, free: 5.074 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.45/1.45, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001525, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.285, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002972/0.2881, allocations: 1.523 MB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.2909, allocations: 1.437 MB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.291, allocations: 4 kB / 403.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.2912, allocations: 7.875 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.2913, allocations: 23.78 kB / 403.2 MB, free: 5.797 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.001292/0.2926, allocations: 382.8 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.2928, allocations: 131.6 kB / 403.7 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.086e-05/0.2929, allocations: 17.47 kB / 403.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.997e-05/0.293, allocations: 55.77 kB / 403.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006504/0.2937, allocations: 92.83 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.069e-05/0.2937, allocations: 16 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007424/0.2945, allocations: 403.3 kB / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.285e-05/0.2945, allocations: 39.8 kB / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.15e-05/0.2946, allocations: 59.64 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007519/0.2954, allocations: 393.9 kB / 404.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.2954, allocations: 0 / 404.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2954, allocations: 7.938 kB / 404.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.2954, allocations: 0 / 404.8 MB, free: 4.234 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.0009208/0.2964, allocations: 0.5174 MB / 405.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.2964, allocations: 15.97 kB / 405.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.288e-05/0.2965, allocations: 46.69 kB / 405.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/0.2967, allocations: 32.81 kB / 405.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.297, allocations: 209.4 kB / 405.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.297, allocations: 4 kB / 405.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.297, allocations: 8 kB / 405.6 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.2973, allocations: 139.2 kB / 405.8 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2973, allocations: 0 / 405.8 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.2974, allocations: 3.984 kB / 405.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2974, allocations: 4 kB / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.2976, allocations: 63.89 kB / 405.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008209/0.2984, allocations: 0.5478 MB / 406.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000369/0.2988, allocations: 155.9 kB / 406.5 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.299, allocations: 66.55 kB / 406.6 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.299, allocations: 4 kB / 406.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003054/0.2993, allocations: 145.9 kB / 406.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.813e-06/0.2993, allocations: 3.938 kB / 406.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.000627/0.2999, allocations: 261.4 kB / 407 MB, free: 1.797 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.552e-05/0.3, allocations: 114.8 kB / 407.1 MB, free: 1.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.3003, allocations: 207.1 kB / 407.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.3003, allocations: 49.69 kB / 407.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.279e-05/0.3004, allocations: 108.5 kB / 407.5 MB, free: 1.285 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.313e-05/0.3005, allocations: 47.67 kB / 407.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.3006, allocations: 57.7 kB / 407.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3008, allocations: 330.8 kB / 407.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.301, allocations: 99.94 kB / 408 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.3012, allocations: 143.2 kB / 408.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004058/0.3017, allocations: 224.2 kB / 408.4 MB, free: 372 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3017, allocations: 3.938 kB / 408.4 MB, free: 368 kB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000571/0.3022, allocations: 309.3 kB / 408.7 MB, free: 52 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.3023, allocations: 7.938 kB / 408.7 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3023, allocations: 0 / 408.7 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.3023, allocations: 4 kB / 408.7 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.3025, allocations: 31.92 kB / 408.7 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.3025, allocations: 4 kB / 408.7 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.3026, allocations: 28.16 kB / 408.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.3027, 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.0001646/0.3028, allocations: 149.8 kB / 408.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.723e-05/0.3029, allocations: 23.61 kB / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.869e-05/0.3029, allocations: 13.39 kB / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3029, allocations: 4 kB / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.3029, allocations: 0 / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.303, allocations: 3.938 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.3032, allocations: 225.5 kB / 409.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3032, allocations: 0 / 409.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.102e-05/0.3033, allocations: 11.98 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.3033, allocations: 3.938 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.3033, allocations: 4 kB / 409.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3033, allocations: 0 / 409.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3033, allocations: 0 / 409.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004265/0.3038, allocations: 249.7 kB / 409.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.3038, allocations: 96.91 kB / 409.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.3039, allocations: 12 kB / 409.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.87e-05/0.304, allocations: 7.984 kB / 409.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/0.304, allocations: 11.98 kB / 409.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.3041, allocations: 4 kB / 409.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001555/0.3042, allocations: 141.2 kB / 409.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3042, allocations: 0 / 409.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000539/0.3048, allocations: 131.6 kB / 409.8 MB, free: 14.79 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.001637/0.3064, allocations: 1.065 MB / 410.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004781/0.3069, allocations: 195.8 kB / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3069, allocations: 3.938 kB / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.3071, allocations: 67.91 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.0001786/0.3073, allocations: 12.23 kB / 411.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.3104, allocations: 2.315 MB / 413.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.3108, allocations: 0.7201 MB / 414.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.083e-05/0.3109, allocations: 25.41 kB / 414.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.324e-05/0.311, allocations: 43.42 kB / 414.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.311, allocations: 0 / 414.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/0.3416, allocations: 5.405 MB / 419.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.266/8.608, allocations: 23.47 kB / 419.7 MB, free: 4.867 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