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.001123/0.001123, allocations: 110 kB / 16.92 MB, free: 6.332 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.001037/0.001037, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.295/1.295, allocations: 222.9 MB / 241.5 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000974/0.000974, allocations: 42.47 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08623/0.08722, allocations: 49.45 MB / 350.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002817/0.09008, allocations: 1.523 MB / 351.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.09239, allocations: 1.439 MB / 353.1 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.353e-05/0.09249, allocations: 0 / 353.1 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.0926, allocations: 7.875 kB / 353.1 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.432e-05/0.09272, allocations: 19.8 kB / 353.1 MB, free: 1.336 MB / 286.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.001072/0.0938, allocations: 382.8 kB / 353.5 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001524/0.09396, allocations: 135.6 kB / 353.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.09408, allocations: 13.48 kB / 353.7 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.268e-05/0.09416, allocations: 59.75 kB / 353.7 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005371/0.0947, allocations: 83.48 kB / 353.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.933e-05/0.09474, allocations: 12 kB / 353.8 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000609/0.09536, allocations: 403.3 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.652e-05/0.09542, allocations: 43.77 kB / 354.3 MB, free: 232 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.124e-05/0.0955, allocations: 63.67 kB / 354.3 MB, free: 168 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005664/0.09607, allocations: 395.3 kB / 354.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.09609, allocations: 4 kB / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.0961, allocations: 0 / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.09611, allocations: 4 kB / 354.7 MB, free: 15.77 MB / 302.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.0007789/0.09689, allocations: 0.5064 MB / 355.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.09695, allocations: 12.03 kB / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.354e-05/0.09702, allocations: 38.69 kB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002347/0.09726, allocations: 36.72 kB / 355.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/0.09746, allocations: 217.3 kB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.09749, allocations: 12 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.09752, allocations: 8 kB / 355.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.09779, allocations: 132.1 kB / 355.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-06/0.09781, allocations: 0 / 355.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.09783, allocations: 0 / 355.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.09784, allocations: 7.938 kB / 355.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.09806, allocations: 67.89 kB / 355.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007431/0.09881, allocations: 0.5438 MB / 356.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.09917, allocations: 147.9 kB / 356.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.09931, allocations: 66.61 kB / 356.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.09934, allocations: 11.94 kB / 356.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002712/0.09962, allocations: 145.9 kB / 356.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.453e-06/0.09963, allocations: 0 / 356.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005767/0.1002, allocations: 261.2 kB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.1003, allocations: 118.8 kB / 357 MB, free: 13.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.1005, allocations: 195 kB / 357.2 MB, free: 13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.1005, allocations: 53.67 kB / 357.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.714e-05/0.1006, allocations: 112.4 kB / 357.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.1006, allocations: 39.55 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.102e-05/0.1007, allocations: 65.8 kB / 357.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1008, allocations: 338.8 kB / 357.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.101, allocations: 99.81 kB / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.1012, allocations: 143.7 kB / 358 MB, free: 12.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.1016, allocations: 224.2 kB / 358.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1016, allocations: 0 / 358.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004998/0.1021, allocations: 305.2 kB / 358.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.1022, allocations: 4 kB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.1022, allocations: 8.031 kB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.1022, allocations: 7.984 kB / 358.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.1024, allocations: 23.98 kB / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1024, allocations: 7.938 kB / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.636e-05/0.1025, allocations: 19.84 kB / 358.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.1025, allocations: 11.98 kB / 358.6 MB, free: 11.52 MB / 302.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.0001361/0.1026, allocations: 149.9 kB / 358.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.131e-05/0.1027, allocations: 15.81 kB / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.533e-05/0.1027, allocations: 25.28 kB / 358.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1027, allocations: 4 kB / 358.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1027, allocations: 0 / 358.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1028, allocations: 0 / 358.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.103, allocations: 225.4 kB / 359 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.103, allocations: 0 / 359 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.694e-05/0.103, allocations: 8 kB / 359.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.103, allocations: 0 / 359.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.1031, allocations: 11.92 kB / 359.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1031, allocations: 7.938 kB / 359.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1031, allocations: 3.938 kB / 359.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003839/0.1035, allocations: 237.6 kB / 359.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.362e-05/0.1035, allocations: 96.91 kB / 359.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.1036, allocations: 15.94 kB / 359.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.913e-05/0.1037, allocations: 7.984 kB / 359.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.1037, allocations: 11.98 kB / 359.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.1037, allocations: 4 kB / 359.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001156/0.1039, allocations: 141.2 kB / 359.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1039, allocations: 0 / 359.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004008/0.1043, allocations: 120 kB / 359.7 MB, free: 10.35 MB / 302.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.001362/0.1056, allocations: 1.067 MB / 360.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004342/0.1061, allocations: 203.8 kB / 361 MB, free: 9.082 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1061, allocations: 0 / 361 MB, free: 9.082 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.1063, allocations: 67.91 kB / 361 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.1065, allocations: 11.52 kB / 361 MB, free: 9.008 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.1091, allocations: 2.301 MB / 363.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.1094, allocations: 0.7162 MB / 364.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.27e-05/0.1095, allocations: 17.42 kB / 364.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.237e-05/0.1096, allocations: 47.42 kB / 364.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1096, allocations: 0 / 364.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.1307, allocations: 5.349 MB / 369.5 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.464/7.595, allocations: 11.92 kB / 369.5 MB, free: 0.5039 MB / 302.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