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.001092/0.001092, allocations: 113.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 211.8 kB / 18.74 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.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2577, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002879/0.2607, allocations: 1.543 MB / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.2631, allocations: 1.483 MB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.037e-05/0.2632, allocations: 0 / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.2634, allocations: 11.88 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.2635, allocations: 27.78 kB / 411.8 MB, free: 14.45 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.001158/0.2646, allocations: 386.8 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.2649, allocations: 135.5 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.701e-05/0.2649, allocations: 17.48 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.837e-05/0.265, allocations: 59.7 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005474/0.2656, allocations: 77.91 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.488e-05/0.2656, allocations: 12 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006497/0.2663, allocations: 415.3 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.913e-05/0.2663, allocations: 39.84 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.274e-05/0.2664, allocations: 71.53 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006517/0.2671, allocations: 401.9 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2671, allocations: 0 / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2671, allocations: 0 / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2671, allocations: 3.984 kB / 413.4 MB, free: 12.86 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.0008243/0.2679, allocations: 0.5174 MB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.268, allocations: 8.031 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.003e-05/0.2681, allocations: 42.73 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002466/0.2683, allocations: 32.83 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/0.2685, allocations: 209.8 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.2686, allocations: 8.375 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.928e-05/0.2686, allocations: 19.92 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.2689, allocations: 120.2 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.2689, allocations: 4 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.2689, allocations: 4 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.2689, allocations: 4 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002357/0.2692, allocations: 67.89 kB / 414.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000802/0.27, allocations: 0.5594 MB / 415 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003553/0.2703, allocations: 143.8 kB / 415.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.2705, allocations: 74.55 kB / 415.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.2705, allocations: 3.938 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.2708, allocations: 157.8 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.893e-06/0.2708, allocations: 4 kB / 415.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005992/0.2714, allocations: 245.4 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.2715, allocations: 118.8 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.2717, allocations: 203.5 kB / 415.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.602e-05/0.2718, allocations: 49.67 kB / 416 MB, free: 10.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.081e-05/0.2718, allocations: 112.5 kB / 416.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.525e-05/0.2719, allocations: 47.8 kB / 416.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.212e-05/0.272, allocations: 61.62 kB / 416.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.2721, allocations: 330.8 kB / 416.5 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.2723, allocations: 99.94 kB / 416.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.2725, allocations: 132.3 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003714/0.2729, allocations: 227.7 kB / 417 MB, free: 8.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2729, allocations: 0 / 417 MB, free: 8.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005272/0.2734, allocations: 301.5 kB / 417.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2735, allocations: 8 kB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.2735, allocations: 0 / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.2735, allocations: 0 / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.2737, allocations: 39.84 kB / 417.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.2737, allocations: 0 / 417.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.428e-05/0.2738, allocations: 27.78 kB / 417.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.2738, allocations: 12 kB / 417.3 MB, free: 8.605 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.0001258/0.2739, allocations: 153.8 kB / 417.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.274, allocations: 15.91 kB / 417.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.2e-05/0.274, allocations: 21.39 kB / 417.5 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.274, allocations: 3.938 kB / 417.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.2741, allocations: 4 kB / 417.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2741, allocations: 0 / 417.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001892/0.2743, allocations: 213.5 kB / 417.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.2743, allocations: 4 kB / 417.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-05/0.2743, allocations: 11.98 kB / 417.8 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.2743, allocations: 4 kB / 417.8 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.2744, allocations: 0 / 417.8 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.2744, allocations: 7.938 kB / 417.8 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2744, allocations: 3.938 kB / 417.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003922/0.2748, allocations: 242.6 kB / 418 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.2748, allocations: 96.95 kB / 418.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/0.2749, allocations: 11.98 kB / 418.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.52e-05/0.275, allocations: 8.031 kB / 418.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.275, allocations: 19.92 kB / 418.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.275, allocations: 15.92 kB / 418.2 MB, free: 7.676 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001116/0.2752, allocations: 137.2 kB / 418.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2752, allocations: 0 / 418.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004169/0.2756, allocations: 119.7 kB / 418.4 MB, free: 7.426 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.001388/0.277, allocations: 1.064 MB / 419.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004405/0.2774, allocations: 211.7 kB / 419.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2774, allocations: 0 / 419.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.2776, allocations: 67.91 kB / 419.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001722/0.2778, allocations: 8 kB / 419.8 MB, free: 6.074 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.2806, allocations: 2.327 MB / 422.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.2809, allocations: 0.7238 MB / 422.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.627e-05/0.281, allocations: 17.42 kB / 422.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.2811, allocations: 55.42 kB / 422.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2811, allocations: 0 / 422.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.304, allocations: 5.505 MB / 428.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.222/8.526, allocations: 19.48 kB / 428.4 MB, free: 13.38 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.0.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