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.0008196/0.0008196, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008885/0.0008885, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8899/0.8899, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.814e-05/1.963e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002066/0.002086, allocations: 1.528 MB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.003888, allocations: 1.395 MB / 327.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.177e-05/0.00395, allocations: 3.938 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.962e-05/0.00404, allocations: 15.8 kB / 327.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.96e-05/0.004119, allocations: 23.8 kB / 327.5 MB, free: 12.95 MB / 298.7 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.0008688/0.004988, allocations: 414.4 kB / 327.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001567/0.005145, allocations: 127.6 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.887e-05/0.005194, allocations: 13.67 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.567e-05/0.00528, allocations: 79.73 kB / 328.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004341/0.005714, allocations: 68.02 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.891e-05/0.005753, allocations: 12 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005966/0.006349, allocations: 443 kB / 328.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.81e-05/0.006397, allocations: 39.84 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.594e-05/0.006443, allocations: 39.84 kB / 328.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005127/0.006956, allocations: 462.7 kB / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.006958, allocations: 0 / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.00696, allocations: 0 / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.006964, allocations: 0 / 329.2 MB, free: 11.28 MB / 298.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.0006433/0.007607, allocations: 455.7 kB / 329.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.007648, allocations: 11.97 kB / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.331e-05/0.007712, allocations: 46.67 kB / 329.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.007867, allocations: 40.72 kB / 329.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.007996, allocations: 147.3 kB / 329.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.008014, allocations: 4.375 kB / 329.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.008031, allocations: 12.38 kB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.008233, allocations: 136.5 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.557e-06/0.008242, allocations: 0 / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.008253, allocations: 0 / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.008259, allocations: 4 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001225/0.008381, allocations: 71.88 kB / 330.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005269/0.008908, allocations: 0.5039 MB / 330.6 MB, free: 9.738 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.009112, allocations: 143.9 kB / 330.8 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.129e-05/0.009183, allocations: 58.61 kB / 330.8 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.009193, allocations: 15.88 kB / 330.8 MB, free: 9.488 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.009381, allocations: 145.9 kB / 331 MB, free: 9.324 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.042e-06/0.009382, allocations: 0 / 331 MB, free: 9.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003791/0.009761, allocations: 257.4 kB / 331.2 MB, free: 9.066 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.009818, allocations: 110.8 kB / 331.3 MB, free: 8.934 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.009962, allocations: 207 kB / 331.5 MB, free: 8.723 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.009992, allocations: 45.81 kB / 331.6 MB, free: 8.672 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.854e-05/0.01005, allocations: 116.5 kB / 331.7 MB, free: 8.555 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.466e-05/0.01009, allocations: 47.67 kB / 331.7 MB, free: 8.508 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.209e-05/0.01015, allocations: 57.7 kB / 331.8 MB, free: 8.445 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.637e-05/0.01023, allocations: 334.8 kB / 332.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.01036, allocations: 100.5 kB / 332.2 MB, free: 8.012 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.01049, allocations: 139.2 kB / 332.4 MB, free: 7.863 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.01072, allocations: 224.3 kB / 332.6 MB, free: 7.633 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.01072, allocations: 3.984 kB / 332.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003133/0.01104, allocations: 301.3 kB / 332.9 MB, free: 7.328 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.01105, allocations: 4 kB / 332.9 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.01106, allocations: 4 kB / 332.9 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.01107, allocations: 4 kB / 332.9 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.84e-05/0.01116, allocations: 36.08 kB / 332.9 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.01116, allocations: 3.938 kB / 332.9 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.96e-05/0.01121, allocations: 27.83 kB / 332.9 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.01123, allocations: 8 kB / 333 MB, free: 7.242 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 9.92e-05/0.01132, allocations: 145.8 kB / 333.1 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.01134, allocations: 15.91 kB / 333.1 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.282e-05/0.01137, allocations: 17.45 kB / 333.1 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.01137, allocations: 4 kB / 333.1 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.01137, allocations: 7.938 kB / 333.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.01138, allocations: 0 / 333.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.01151, allocations: 180.6 kB / 333.3 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01152, allocations: 4 kB / 333.3 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/0.01154, allocations: 11.94 kB / 333.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.01154, allocations: 0 / 333.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.01156, allocations: 7.984 kB / 333.3 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.01156, allocations: 4 kB / 333.3 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.01156, allocations: 0 / 333.3 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002319/0.01179, allocations: 242.6 kB / 333.6 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.274e-05/0.01181, allocations: 23.83 kB / 333.6 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.01184, allocations: 11.98 kB / 333.6 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.111e-05/0.01187, allocations: 8.078 kB / 333.6 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.696e-05/0.01191, allocations: 19.86 kB / 333.6 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.01192, allocations: 4 kB / 333.6 MB, free: 6.477 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.029e-05/0.012, allocations: 145.1 kB / 333.8 MB, free: 6.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.012, allocations: 0 / 333.8 MB, free: 6.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002954/0.0123, allocations: 123.7 kB / 333.9 MB, free: 6.215 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.0009653/0.01326, allocations: 1.088 MB / 335 MB, free: 5.129 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002806/0.01354, allocations: 191.7 kB / 335.2 MB, free: 4.941 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.01354, allocations: 0 / 335.2 MB, free: 4.941 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.296e-05/0.01363, allocations: 64.14 kB / 335.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.01376, allocations: 15.94 kB / 335.3 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.01582, allocations: 2.321 MB / 337.6 MB, free: 2.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.24e-05/0.01589, allocations: 115.4 kB / 337.7 MB, free: 2.285 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.023e-05/0.01594, allocations: 17.48 kB / 337.7 MB, free: 2.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.253e-05/0.01601, allocations: 44.48 kB / 337.8 MB, free: 2.227 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01601, allocations: 0 / 337.8 MB, free: 2.227 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01823/0.03423, allocations: 6.382 MB / 344.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.992/7.026, allocations: 3.938 kB / 344.1 MB, free: 11.96 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/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: 8.828120087273419]