Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001876/0.001876, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002124/0.002124, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002499/0.002499, allocations: 75.8 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3065, allocations: 50.53 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002765/0.3093, allocations: 1.534 MB / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002554/0.3118, allocations: 1.491 MB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.804e-05/0.3119, allocations: 0 / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001081/0.3121, allocations: 7.875 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.967e-05/0.3122, allocations: 31.78 kB / 411.8 MB, free: 14.48 MB / 334.1 MB [/home/hudson/saved_omc/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.001147/0.3133, allocations: 382.8 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.3135, allocations: 135.5 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.859e-05/0.3136, allocations: 13.5 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.526e-05/0.3137, allocations: 55.7 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006285/0.3143, allocations: 81.92 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.648e-05/0.3144, allocations: 12 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007173/0.3151, allocations: 411.3 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.463e-05/0.3152, allocations: 43.83 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.492e-05/0.3152, allocations: 59.55 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006548/0.3159, allocations: 409.8 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3159, allocations: 0 / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3159, allocations: 0 / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3159, allocations: 0 / 413.4 MB, free: 12.91 MB / 334.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.0009369/0.3169, allocations: 0.5252 MB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.3169, allocations: 12.03 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.964e-05/0.317, allocations: 38.73 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00026/0.3173, allocations: 32.83 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.3176, allocations: 209.8 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.3176, allocations: 8.375 kB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.3176, allocations: 7.938 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003/0.3179, allocations: 132.2 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.3179, allocations: 0 / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.318, allocations: 4 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.318, allocations: 4 kB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.3182, allocations: 67.88 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008632/0.3191, allocations: 0.5672 MB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.3194, allocations: 151.8 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.3196, allocations: 66.61 kB / 415.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.3196, allocations: 7.938 kB / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003031/0.3199, allocations: 153.8 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.382e-06/0.3199, allocations: 0 / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006093/0.3205, allocations: 249.4 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.732e-05/0.3206, allocations: 118.8 kB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.3209, allocations: 211.6 kB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.604e-05/0.3209, allocations: 45.7 kB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.76e-05/0.321, allocations: 108.5 kB / 416.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.895e-05/0.3211, allocations: 47.66 kB / 416.1 MB, free: 9.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.04e-05/0.3212, allocations: 61.64 kB / 416.2 MB, free: 9.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.3214, allocations: 330.8 kB / 416.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.3216, allocations: 95.95 kB / 416.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.3218, allocations: 144.2 kB / 416.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004146/0.3223, allocations: 219.7 kB / 417 MB, free: 9.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3223, allocations: 4 kB / 417 MB, free: 9.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005543/0.3228, allocations: 301.4 kB / 417.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3229, allocations: 7.125 kB / 417.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.3229, allocations: 0 / 417.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.3229, allocations: 4 kB / 417.3 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.3231, allocations: 31.86 kB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.3231, allocations: 4 kB / 417.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.902e-05/0.3232, allocations: 35.86 kB / 417.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.3232, allocations: 4 kB / 417.3 MB, free: 8.641 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.0001878/0.3234, allocations: 149.8 kB / 417.5 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.3234, allocations: 11.91 kB / 417.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.368e-05/0.3235, allocations: 17.41 kB / 417.5 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.3235, allocations: 7.938 kB / 417.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3235, allocations: 0 / 417.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.3235, allocations: 7.984 kB / 417.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002742/0.3238, allocations: 217.5 kB / 417.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3238, allocations: 0 / 417.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.33e-05/0.3239, allocations: 15.98 kB / 417.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3239, allocations: 0 / 417.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.3239, allocations: 4.094 kB / 417.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.802e-06/0.3239, allocations: 3.938 kB / 417.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.3239, allocations: 3.938 kB / 417.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004213/0.3244, allocations: 242.6 kB / 418 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.517e-05/0.3245, allocations: 100.9 kB / 418.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.3245, allocations: 8 kB / 418.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.455e-05/0.3246, allocations: 15.92 kB / 418.1 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.3246, allocations: 11.98 kB / 418.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.3247, allocations: 12.03 kB / 418.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001356/0.3248, allocations: 145.1 kB / 418.3 MB, free: 7.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3248, allocations: 0 / 418.3 MB, free: 7.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005041/0.3253, allocations: 123.7 kB / 418.4 MB, free: 7.457 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.001631/0.327, allocations: 1.066 MB / 419.5 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004655/0.3274, allocations: 195.7 kB / 419.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3274, allocations: 0 / 419.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.3276, allocations: 68.16 kB / 419.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001777/0.3278, allocations: 16 kB / 419.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003076/0.3309, allocations: 2.327 MB / 422.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.3313, allocations: 0.7277 MB / 422.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.421e-05/0.3314, allocations: 21.41 kB / 422.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.739e-05/0.3315, allocations: 47.42 kB / 422.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3315, allocations: 0 / 422.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.3606, allocations: 5.502 MB / 428.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.512/8.873, allocations: 11.45 kB / 428.4 MB, free: 13.42 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches