Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 112.4 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 189.6 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 51.92 kB / 370.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.296, allocations: 52.17 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002835/0.2988, allocations: 1.547 MB / 424.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002619/0.3014, allocations: 1.472 MB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.8e-05/0.3015, allocations: 0 / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.3016, allocations: 15.86 kB / 425.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.3017, allocations: 23.73 kB / 425.7 MB, free: 11.54 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.001186/0.3029, allocations: 394.8 kB / 426.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.3031, allocations: 123.6 kB / 426.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.238e-05/0.3031, allocations: 13.67 kB / 426.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.303e-05/0.3032, allocations: 63.7 kB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006412/0.3038, allocations: 82.62 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/0.3039, allocations: 8 kB / 426.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008186/0.3047, allocations: 467.1 kB / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.547e-05/0.3048, allocations: 31.86 kB / 426.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.303e-05/0.3048, allocations: 71.58 kB / 426.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007113/0.3056, allocations: 395.1 kB / 427.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.794e-06/0.3056, allocations: 4 kB / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3056, allocations: 0 / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3056, allocations: 0 / 427.3 MB, free: 9.93 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.0008623/0.3064, allocations: 456.7 kB / 427.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.3065, allocations: 8.031 kB / 427.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.78e-05/0.3065, allocations: 46.69 kB / 427.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.3068, allocations: 32.83 kB / 427.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.307, allocations: 159.4 kB / 428 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.307, allocations: 11.98 kB / 428 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.307, allocations: 8 kB / 428 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.3073, allocations: 127.3 kB / 428.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.3073, allocations: 0 / 428.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.3073, allocations: 4 kB / 428.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3073, allocations: 4 kB / 428.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.3075, allocations: 71.83 kB / 428.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007842/0.3083, allocations: 0.5274 MB / 428.7 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.3086, allocations: 143.8 kB / 428.9 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.3088, allocations: 62.61 kB / 428.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.3088, allocations: 4 kB / 428.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.3091, allocations: 145.8 kB / 429.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.232e-06/0.3091, allocations: 0 / 429.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006236/0.3097, allocations: 261.4 kB / 429.3 MB, free: 7.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.639e-05/0.3098, allocations: 118.8 kB / 429.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.31, allocations: 199.1 kB / 429.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.3101, allocations: 53.62 kB / 429.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.3101, allocations: 108.5 kB / 429.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.959e-05/0.3102, allocations: 51.73 kB / 429.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.899e-05/0.3103, allocations: 61.69 kB / 429.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3104, allocations: 330.8 kB / 430.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.3106, allocations: 95.95 kB / 430.3 MB, free: 6.641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002339/0.3109, allocations: 144.2 kB / 430.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003947/0.3113, allocations: 224.2 kB / 430.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.3113, allocations: 4 kB / 430.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005556/0.3118, allocations: 305.5 kB / 431 MB, free: 5.949 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3119, allocations: 11.94 kB / 431 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.3119, allocations: 0 / 431 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.3119, allocations: 4 kB / 431 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.312, allocations: 31.91 kB / 431 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.3121, allocations: 4 kB / 431 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.125e-05/0.3121, allocations: 19.89 kB / 431.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.3122, allocations: 11.98 kB / 431.1 MB, free: 5.867 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.0001583/0.3123, allocations: 145.9 kB / 431.2 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.3124, allocations: 27.81 kB / 431.2 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.3124, allocations: 13.41 kB / 431.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.3124, allocations: 4 kB / 431.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3124, allocations: 0 / 431.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3124, allocations: 0 / 431.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/0.3126, allocations: 200.5 kB / 431.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3126, allocations: 0 / 431.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.3127, allocations: 8 kB / 431.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.3127, allocations: 15.88 kB / 431.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.3127, allocations: 3.984 kB / 431.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3127, allocations: 0 / 431.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.3127, allocations: 7.938 kB / 431.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004237/0.3132, allocations: 233.1 kB / 431.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.168e-05/0.3132, allocations: 19.86 kB / 431.7 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.3132, allocations: 15.92 kB / 431.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.951e-05/0.3133, allocations: 8 kB / 431.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.3134, allocations: 11.97 kB / 431.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.3134, allocations: 4 kB / 431.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001348/0.3135, allocations: 149.1 kB / 431.9 MB, free: 4.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3135, allocations: 4 kB / 431.9 MB, free: 4.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004946/0.314, allocations: 119.6 kB / 432 MB, free: 4.82 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.001582/0.3156, allocations: 1.063 MB / 433.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000462/0.3161, allocations: 179.8 kB / 433.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3161, allocations: 0 / 433.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001592/0.3162, allocations: 59.91 kB / 433.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001853/0.3164, allocations: 8 kB / 433.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.3197, allocations: 2.323 MB / 435.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3201, allocations: 0.7239 MB / 436.4 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.305e-05/0.3202, allocations: 17.42 kB / 436.4 MB, free: 320 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.681e-05/0.3202, allocations: 43.42 kB / 436.5 MB, free: 276 kB / 334.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3202, allocations: 4 kB / 436.5 MB, free: 272 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03455/0.3548, allocations: 5.645 MB / 442.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.57, allocations: 15.28 kB / 442.1 MB, free: 10.74 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.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.380881729000976]