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.001385/0.001385, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001638/0.001638, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001565/0.001565, allocations: 47.92 kB / 377.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2852, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.00277/0.288, allocations: 1.527 MB / 432.6 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002552/0.2905, allocations: 1.399 MB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.695e-05/0.2906, allocations: 7.938 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.411e-05/0.2907, allocations: 7.875 kB / 434 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.735e-05/0.2908, allocations: 23.78 kB / 434.1 MB, free: 3.664 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.001061/0.2918, allocations: 402.8 kB / 434.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.292, allocations: 131.6 kB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.174e-05/0.2921, allocations: 9.672 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.107e-05/0.2922, allocations: 55.72 kB / 434.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005895/0.2927, allocations: 89.41 kB / 434.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.2928, allocations: 12 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000717/0.2935, allocations: 459.1 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.315e-05/0.2935, allocations: 47.83 kB / 435.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.302e-05/0.2936, allocations: 47.67 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005926/0.2942, allocations: 408.6 kB / 435.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2942, allocations: 0 / 435.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2942, allocations: 4 kB / 435.7 MB, free: 2.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2942, allocations: 0 / 435.7 MB, free: 2.031 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.0008239/0.295, allocations: 448.7 kB / 436.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2951, allocations: 8.031 kB / 436.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.062e-05/0.2952, allocations: 42.73 kB / 436.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.2954, allocations: 32.83 kB / 436.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.2955, allocations: 155.9 kB / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.2956, allocations: 4.375 kB / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.2956, allocations: 19.92 kB / 436.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.2959, allocations: 130.8 kB / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2959, allocations: 0 / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.2959, allocations: 0 / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.2959, allocations: 4 kB / 436.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.2961, allocations: 71.83 kB / 436.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007891/0.2969, allocations: 0.5078 MB / 437.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003506/0.2973, allocations: 139.8 kB / 437.2 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.2974, allocations: 54.61 kB / 437.3 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.2974, allocations: 8 kB / 437.3 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.2977, allocations: 157.8 kB / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.323e-06/0.2977, allocations: 3.938 kB / 437.4 MB, free: 84 kB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006247/0.2983, allocations: 249.5 kB / 437.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.513e-05/0.2984, allocations: 118.8 kB / 437.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.2986, allocations: 199.1 kB / 438 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.2987, allocations: 49.81 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.879e-05/0.2988, allocations: 108.6 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.138e-05/0.2988, allocations: 51.61 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.569e-05/0.2989, allocations: 61.62 kB / 438.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.2991, allocations: 330.8 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.2993, allocations: 95.95 kB / 438.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.2995, allocations: 144.1 kB / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/0.2999, allocations: 220.3 kB / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.2999, allocations: 0 / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005596/0.3005, allocations: 305.4 kB / 439.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.3005, allocations: 4 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.3005, allocations: 0 / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.3005, allocations: 8.078 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.3007, allocations: 39.86 kB / 439.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.3007, allocations: 3.938 kB / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.028e-05/0.3008, allocations: 23.84 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.3008, allocations: 11.98 kB / 439.4 MB, free: 14.01 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.0001636/0.3009, allocations: 149.8 kB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.162e-05/0.301, allocations: 15.91 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.98e-05/0.301, allocations: 17.41 kB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.301, allocations: 7.938 kB / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.301, allocations: 0 / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.301, allocations: 4 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.3013, allocations: 176.6 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3013, allocations: 0 / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.825e-05/0.3013, allocations: 11.98 kB / 439.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3013, allocations: 4 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.3013, allocations: 0 / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.3013, allocations: 7.938 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3013, allocations: 0 / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004361/0.3018, allocations: 249.6 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.3018, allocations: 23.84 kB / 440.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.3019, allocations: 8 kB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.859e-05/0.3019, allocations: 11.92 kB / 440.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.963e-05/0.302, allocations: 11.98 kB / 440.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.302, allocations: 7.984 kB / 440.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001305/0.3021, allocations: 137.2 kB / 440.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3021, allocations: 96 / 440.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004955/0.3026, allocations: 131.5 kB / 440.4 MB, free: 12.98 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.001615/0.3042, allocations: 1.071 MB / 441.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004616/0.3047, allocations: 187.8 kB / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3047, allocations: 0 / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.3049, allocations: 60.16 kB / 441.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.3051, allocations: 12 kB / 441.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.3081, allocations: 2.309 MB / 444 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001805/0.3083, allocations: 119.1 kB / 444.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.672e-05/0.3084, allocations: 21.36 kB / 444.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.837e-05/0.3085, allocations: 47.42 kB / 444.2 MB, free: 9.027 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3085, allocations: 0 / 444.2 MB, free: 9.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03438/0.3428, allocations: 6.227 MB / 450.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.47, allocations: 14.75 kB / 450.4 MB, free: 2.93 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.007846304011764]