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.002051/0.002051, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002534/0.002534, allocations: 209.6 kB / 23.73 MB, free: 4.387 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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001837/0.001837, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2557, allocations: 53.36 MB / 431.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002752/0.2585, allocations: 1.524 MB / 432.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002568/0.2611, allocations: 1.403 MB / 434 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.547e-05/0.2611, allocations: 0 / 434 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.2612, allocations: 15.8 kB / 434 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.596e-05/0.2613, allocations: 27.8 kB / 434.1 MB, free: 3.809 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.001042/0.2623, allocations: 398.8 kB / 434.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.2625, allocations: 131.6 kB / 434.6 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.257e-05/0.2626, allocations: 9.672 kB / 434.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.963e-05/0.2627, allocations: 55.77 kB / 434.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00058/0.2632, allocations: 81.25 kB / 434.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.733e-05/0.2633, allocations: 12 kB / 434.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007511/0.264, allocations: 435.2 kB / 435.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.262e-05/0.2641, allocations: 43.78 kB / 435.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.769e-05/0.2642, allocations: 47.72 kB / 435.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000616/0.2648, allocations: 400.9 kB / 435.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2648, allocations: 8 kB / 435.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2648, allocations: 0 / 435.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.463e-06/0.2648, allocations: 0 / 435.6 MB, free: 2.219 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.0008375/0.2656, allocations: 452.7 kB / 436.1 MB, free: 1.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.2657, allocations: 12.03 kB / 436.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.897e-05/0.2657, allocations: 50.61 kB / 436.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.266, allocations: 28.83 kB / 436.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.2661, allocations: 152 kB / 436.3 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.2662, allocations: 4.375 kB / 436.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.783e-05/0.2662, allocations: 23.92 kB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002833/0.2665, allocations: 138.1 kB / 436.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.2665, allocations: 4 kB / 436.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.2665, allocations: 0 / 436.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.2665, allocations: 0 / 436.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.2667, allocations: 71.88 kB / 436.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007986/0.2675, allocations: 0.5 MB / 437.1 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000349/0.2679, allocations: 148 kB / 437.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.268, allocations: 54.55 kB / 437.3 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.268, allocations: 3.938 kB / 437.3 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/0.2683, allocations: 157.9 kB / 437.4 MB, free: 264 kB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.233e-06/0.2683, allocations: 4 kB / 437.4 MB, free: 260 kB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006084/0.2689, allocations: 253.4 kB / 437.7 MB, free: 0 / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.222e-05/0.269, allocations: 122.8 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.2692, allocations: 195.1 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.806e-05/0.2693, allocations: 49.69 kB / 438 MB, free: 15.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.242e-05/0.2693, allocations: 112.5 kB / 438.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/0.2694, allocations: 43.69 kB / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.545e-05/0.2695, allocations: 57.81 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.2697, allocations: 330.8 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.2699, allocations: 99.94 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.2701, allocations: 132.1 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003923/0.2705, allocations: 228.2 kB / 439 MB, free: 14.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2705, allocations: 4 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005378/0.271, allocations: 309.2 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.271, allocations: 8 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.271, allocations: 0 / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.2711, allocations: 4 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.2712, allocations: 27.92 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.2712, allocations: 11.92 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.458e-05/0.2713, allocations: 24 kB / 439.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.2713, allocations: 7.984 kB / 439.4 MB, free: 14.18 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.0001635/0.2715, allocations: 149.8 kB / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.2715, allocations: 11.91 kB / 439.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.66e-05/0.2716, allocations: 21.39 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.2716, allocations: 11.88 kB / 439.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2716, allocations: 0 / 439.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2716, allocations: 0 / 439.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.2718, allocations: 184.6 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2718, allocations: 0 / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.693e-05/0.2719, allocations: 8 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.2719, allocations: 0 / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.2719, allocations: 7.984 kB / 439.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.2719, allocations: 3.938 kB / 439.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.2719, allocations: 4 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004265/0.2724, allocations: 243.1 kB / 440 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.2724, allocations: 23.83 kB / 440 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.2724, allocations: 12 kB / 440.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.09e-05/0.2725, allocations: 11.92 kB / 440.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.2726, allocations: 15.98 kB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.2726, allocations: 8 kB / 440.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001271/0.2727, allocations: 145.1 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2727, allocations: 0 / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004163/0.2731, allocations: 123.7 kB / 440.4 MB, free: 13.14 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.001553/0.2747, allocations: 1.062 MB / 441.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.2751, allocations: 187.7 kB / 441.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2751, allocations: 0 / 441.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.2753, allocations: 55.95 kB / 441.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.2754, allocations: 11.94 kB / 441.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/0.2785, allocations: 2.32 MB / 444 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.2786, allocations: 111.1 kB / 444.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.997e-05/0.2787, allocations: 29.39 kB / 444.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.871e-05/0.2788, allocations: 47.42 kB / 444.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2788, allocations: 0 / 444.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.3129, allocations: 6.188 MB / 450.4 MB, free: 3.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.86, allocations: 11.28 kB / 450.4 MB, free: 3.137 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.489886216819286]