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.001038/0.001038, allocations: 76.08 kB / 20.67 MB, free: 3.875 MB / 18.57 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.001023/0.001023, allocations: 153.1 kB / 23.93 MB, free: 0.6172 MB / 18.57 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 0.9667/0.9667, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 2.324e-06/2.324e-06, allocations: 0 / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.481e-05/2.713e-05, allocations: 6.219 kB / 318.4 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002487/0.002514, allocations: 1.493 MB / 319.9 MB, free: 4.824 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.004238, allocations: 1.348 MB / 321.3 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.364e-05/0.004292, allocations: 4 kB / 321.3 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.96e-05/0.004391, allocations: 23.73 kB / 321.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.402e-05/0.004475, allocations: 19.8 kB / 321.3 MB, free: 3.422 MB / 282.7 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.0009832/0.005458, allocations: 402.5 kB / 321.7 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000161/0.005619, allocations: 143.5 kB / 321.9 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.026e-05/0.00567, allocations: 5.688 kB / 321.9 MB, free: 2.875 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.265e-05/0.005752, allocations: 79.8 kB / 321.9 MB, free: 2.797 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004505/0.006203, allocations: 65.98 kB / 322 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.006227, allocations: 12 kB / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004677/0.006695, allocations: 434.9 kB / 322.4 MB, free: 2.301 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.887e-05/0.006754, allocations: 39.83 kB / 322.5 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.89e-05/0.006803, allocations: 35.86 kB / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004864/0.007289, allocations: 454.8 kB / 323 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.007293, allocations: 0 / 323 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.007294, allocations: 0 / 323 MB, free: 1.781 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.0073, allocations: 0 / 323 MB, free: 1.781 MB / 282.7 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.0006638/0.007964, allocations: 460 kB / 323.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.008005, allocations: 8.922 kB / 323.4 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.682e-05/0.008081, allocations: 42.73 kB / 323.5 MB, free: 1.246 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.008246, allocations: 28.83 kB / 323.5 MB, free: 1.219 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.008406, allocations: 163.1 kB / 323.7 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.008427, allocations: 12.12 kB / 323.7 MB, free: 1.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.008442, allocations: 4 kB / 323.7 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.008647, allocations: 132.1 kB / 323.8 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.008657, allocations: 4 kB / 323.8 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.008669, allocations: 4 kB / 323.8 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.008677, allocations: 7.984 kB / 323.8 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001243/0.008801, allocations: 63.89 kB / 323.9 MB, free: 0.793 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005678/0.009369, allocations: 0.4962 MB / 324.4 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.009603, allocations: 143.8 kB / 324.5 MB, free: 80 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.5e-05/0.009678, allocations: 58.61 kB / 324.6 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.009691, allocations: 0 / 324.6 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.009933, allocations: 161.8 kB / 324.7 MB, free: 15.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.009935, allocations: 0 / 324.7 MB, free: 15.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004287/0.01036, allocations: 253.9 kB / 325 MB, free: 15.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.01044, allocations: 126.7 kB / 325.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.01059, allocations: 199.1 kB / 325.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.01063, allocations: 53.67 kB / 325.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.778e-05/0.01069, allocations: 108.6 kB / 325.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.01073, allocations: 43.69 kB / 325.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/0.01079, allocations: 61.69 kB / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.973e-05/0.01089, allocations: 330.8 kB / 325.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.01102, allocations: 96.06 kB / 326 MB, free: 14.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.01116, allocations: 147.2 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.01139, allocations: 223.8 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.01139, allocations: 0 / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003125/0.0117, allocations: 313.4 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.01171, allocations: 4 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.01172, allocations: 4 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.01174, allocations: 3.938 kB / 326.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-05/0.01183, allocations: 40 kB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.01183, allocations: 0 / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.486e-05/0.01188, allocations: 23.84 kB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.0119, allocations: 15.98 kB / 326.7 MB, free: 13.73 MB / 298.7 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.0002315/0.01213, allocations: 145.8 kB / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.01214, allocations: 15.91 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.633e-05/0.01217, allocations: 21.45 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.01217, allocations: 3.938 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.01218, allocations: 4 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.01218, allocations: 0 / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.01232, allocations: 176.6 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.01232, allocations: 4 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.587e-05/0.01234, allocations: 8 kB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.01235, allocations: 7.984 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.01235, allocations: 0 / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.01236, allocations: 11.88 kB / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01236, allocations: 0 / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.01259, allocations: 236.9 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.948e-05/0.01261, allocations: 15.89 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.01263, allocations: 12 kB / 327.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.264e-05/0.01266, allocations: 11.92 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.01272, allocations: 15.92 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.01272, allocations: 11.94 kB / 327.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.26e-05/0.01281, allocations: 141.1 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01281, allocations: 0 / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002936/0.0131, allocations: 135.6 kB / 327.7 MB, free: 12.7 MB / 298.7 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.001176/0.01427, allocations: 1.067 MB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003333/0.01461, allocations: 200.4 kB / 328.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.01461, allocations: 0 / 328.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.428e-05/0.01469, allocations: 51.91 kB / 329 MB, free: 11.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.01484, allocations: 19.92 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.01672, allocations: 2.329 MB / 331.3 MB, free: 8.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.685e-05/0.0168, allocations: 103.4 kB / 331.4 MB, free: 8.805 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.559e-05/0.01686, allocations: 21.47 kB / 331.5 MB, free: 8.785 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.835e-05/0.01693, allocations: 48.48 kB / 331.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of SimCode: time 8.31e-07/0.01693, allocations: 4 kB / 331.5 MB, free: 8.73 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.03969, allocations: 6.258 MB / 337.8 MB, free: 2.586 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.808/6.848, allocations: 6.625 kB / 337.8 MB, free: 2.582 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/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: 8.780974809080362]