Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.397/1.397, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 43.94 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.274, allocations: 53.35 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.00276/0.2767, allocations: 1.561 MB / 432.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002582/0.2793, allocations: 1.527 MB / 434.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.689e-05/0.2794, allocations: 0 / 434.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.2795, allocations: 11.81 kB / 434.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.651e-05/0.2796, allocations: 23.8 kB / 434.3 MB, free: 3.73 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.001184/0.2808, allocations: 398.8 kB / 434.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.281, allocations: 143.5 kB / 434.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.708e-05/0.281, allocations: 5.688 kB / 434.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.238e-05/0.2811, allocations: 51.78 kB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006157/0.2817, allocations: 87.97 kB / 434.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.651e-05/0.2818, allocations: 8 kB / 434.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007801/0.2825, allocations: 475 kB / 435.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.284e-05/0.2826, allocations: 35.91 kB / 435.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.839e-05/0.2827, allocations: 67.53 kB / 435.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006312/0.2833, allocations: 411.1 kB / 435.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2833, allocations: 0 / 435.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2833, allocations: 4 kB / 435.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.2833, allocations: 4 kB / 435.9 MB, free: 2.082 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.0008085/0.2841, allocations: 460.7 kB / 436.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2842, allocations: 8.031 kB / 436.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.106e-05/0.2842, allocations: 42.73 kB / 436.4 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/0.2845, allocations: 28.83 kB / 436.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.2846, allocations: 148 kB / 436.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.2847, allocations: 4.375 kB / 436.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.2847, allocations: 27.86 kB / 436.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.285, allocations: 126.6 kB / 436.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.285, allocations: 0 / 436.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.285, allocations: 4 kB / 436.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.285, allocations: 0 / 436.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.2852, allocations: 67.89 kB / 436.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007774/0.286, allocations: 0.5352 MB / 437.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.2863, allocations: 143.7 kB / 437.5 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.2864, allocations: 54.61 kB / 437.5 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.2865, allocations: 4 kB / 437.5 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.2867, allocations: 161.7 kB / 437.7 MB, free: 108 kB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.2867, allocations: 0 / 437.7 MB, free: 108 kB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006176/0.2874, allocations: 254 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.896e-05/0.2874, allocations: 114.8 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002484/0.2877, allocations: 203.1 kB / 438.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.796e-05/0.2877, allocations: 45.69 kB / 438.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.51e-05/0.2878, allocations: 112.5 kB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.928e-05/0.2879, allocations: 47.62 kB / 438.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.835e-05/0.288, allocations: 57.69 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2881, allocations: 330.9 kB / 438.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.2883, allocations: 99.94 kB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.2886, allocations: 144 kB / 439.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/0.289, allocations: 224.2 kB / 439.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.289, allocations: 0 / 439.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005556/0.2895, allocations: 297.4 kB / 439.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.2895, allocations: 4 kB / 439.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.2895, allocations: 0 / 439.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.2896, allocations: 4 kB / 439.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.2897, allocations: 43.94 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.2897, allocations: 11.92 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.619e-05/0.2898, allocations: 27.78 kB / 439.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.2899, allocations: 7.984 kB / 439.7 MB, free: 14.03 MB / 350.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.0001739/0.29, allocations: 153.8 kB / 439.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-05/0.2901, allocations: 19.89 kB / 439.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.64e-05/0.2901, allocations: 13.41 kB / 439.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2901, allocations: 7.938 kB / 439.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.2901, allocations: 0 / 439.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2901, allocations: 0 / 439.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.2904, allocations: 188.6 kB / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2904, allocations: 0 / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.118e-05/0.2904, allocations: 11.98 kB / 440.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.2904, allocations: 4 kB / 440.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.2904, allocations: 4 kB / 440.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.2904, allocations: 7.922 kB / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.2905, allocations: 8 kB / 440.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.2909, allocations: 234.5 kB / 440.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.536e-05/0.2909, allocations: 15.84 kB / 440.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.291, allocations: 15.98 kB / 440.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.239e-05/0.291, allocations: 15.94 kB / 440.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.866e-05/0.2911, allocations: 15.97 kB / 440.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.2911, allocations: 4 kB / 440.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001277/0.2912, allocations: 141.2 kB / 440.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2912, allocations: 4 kB / 440.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005092/0.2917, allocations: 115.7 kB / 440.6 MB, free: 12.99 MB / 350.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.001601/0.2933, allocations: 1.058 MB / 441.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004718/0.2938, allocations: 187.7 kB / 441.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2938, allocations: 4.188 kB / 441.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.294, allocations: 63.89 kB / 441.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000195/0.2942, allocations: 8 kB / 442 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00309/0.2973, allocations: 2.313 MB / 444.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.2976, allocations: 0.7201 MB / 445 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.822e-05/0.2977, allocations: 21.41 kB / 445 MB, free: 8.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.909e-05/0.2978, allocations: 55.41 kB / 445.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2978, allocations: 0 / 445.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03485/0.3326, allocations: 5.75 MB / 450.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.89, allocations: 7.984 kB / 450.8 MB, free: 2.801 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.00039208 Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.351683351000247]