Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009412/0.0009412, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008572/0.0008572, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8905/0.8905, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.809e-05/1.965e-05, allocations: 2.844 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001843/0.001863, allocations: 1.532 MB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.003371, allocations: 1.402 MB / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.276e-05/0.003424, allocations: 0 / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.284e-05/0.003507, allocations: 11.86 kB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.225e-05/0.003579, allocations: 23.8 kB / 327.5 MB, free: 12.91 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0008247/0.004404, allocations: 406.4 kB / 327.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.004538, allocations: 143.5 kB / 328 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.004579, allocations: 9.688 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.077e-05/0.00465, allocations: 79.73 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003626/0.005012, allocations: 76.38 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.005037, allocations: 12 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004828/0.00552, allocations: 431 kB / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.107e-05/0.005571, allocations: 35.84 kB / 328.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.984e-05/0.00562, allocations: 43.83 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000476/0.006096, allocations: 462.7 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.006098, allocations: 0 / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.006099, allocations: 0 / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.006103, allocations: 4 kB / 329.2 MB, free: 11.24 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.0005281/0.006631, allocations: 456.7 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.006669, allocations: 11.98 kB / 329.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.636e-05/0.006726, allocations: 46.67 kB / 329.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.006859, allocations: 40.78 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.006974, allocations: 143.5 kB / 329.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.006992, allocations: 8.375 kB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.007006, allocations: 8.359 kB / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.007176, allocations: 132.8 kB / 330 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.007184, allocations: 192 / 330 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.007195, allocations: 8.125 kB / 330 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.0072, allocations: 4 kB / 330 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.007313, allocations: 67.88 kB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004726/0.007785, allocations: 0.5039 MB / 330.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.007975, allocations: 143.8 kB / 330.7 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.555e-05/0.008041, allocations: 58.61 kB / 330.8 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.00805, allocations: 0 / 330.8 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.008222, allocations: 157.8 kB / 330.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 9.62e-07/0.008223, allocations: 0 / 330.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003329/0.008556, allocations: 261.3 kB / 331.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/0.008611, allocations: 118.8 kB / 331.3 MB, free: 8.887 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.008736, allocations: 199 kB / 331.5 MB, free: 8.684 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.008762, allocations: 49.69 kB / 331.5 MB, free: 8.629 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.372e-05/0.008816, allocations: 112.6 kB / 331.6 MB, free: 8.516 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.008845, allocations: 43.69 kB / 331.7 MB, free: 8.473 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.008903, allocations: 65.62 kB / 331.7 MB, free: 8.402 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.00899, allocations: 330.8 kB / 332.1 MB, free: 8.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.009109, allocations: 104.1 kB / 332.2 MB, free: 7.969 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.009239, allocations: 135.8 kB / 332.3 MB, free: 7.824 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.009468, allocations: 223.7 kB / 332.5 MB, free: 7.594 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.009471, allocations: 0 / 332.5 MB, free: 7.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003149/0.009786, allocations: 305.4 kB / 332.8 MB, free: 7.289 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.009799, allocations: 4 kB / 332.8 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.009806, allocations: 4 kB / 332.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.009817, allocations: 96 / 332.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.531e-05/0.009902, allocations: 35.91 kB / 332.9 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.009909, allocations: 3.984 kB / 332.9 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.833e-05/0.009958, allocations: 19.91 kB / 332.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.009972, allocations: 15.98 kB / 332.9 MB, free: 7.207 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.0001039/0.01008, allocations: 157.7 kB / 333.1 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.816e-05/0.01009, allocations: 19.91 kB / 333.1 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.01012, allocations: 17.45 kB / 333.1 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01012, allocations: 0 / 333.1 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.01013, allocations: 4 kB / 333.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.01013, allocations: 0 / 333.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.01026, allocations: 176.6 kB / 333.3 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.01026, allocations: 4 kB / 333.3 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.673e-05/0.01029, allocations: 12 kB / 333.3 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.01029, allocations: 0 / 333.3 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.0103, allocations: 11.98 kB / 333.3 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.0103, allocations: 0 / 333.3 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.0103, allocations: 0 / 333.3 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.01054, allocations: 242.5 kB / 333.5 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.002e-05/0.01056, allocations: 19.83 kB / 333.6 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.01059, allocations: 12 kB / 333.6 MB, free: 6.473 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.003e-05/0.01062, allocations: 7.984 kB / 333.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.612e-05/0.01066, allocations: 16.08 kB / 333.6 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.01067, allocations: 7.938 kB / 333.6 MB, free: 6.441 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.339e-05/0.01074, allocations: 137.2 kB / 333.7 MB, free: 6.309 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01074, allocations: 4 kB / 333.7 MB, free: 6.305 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002718/0.01101, allocations: 131.5 kB / 333.9 MB, free: 6.176 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.0008796/0.01189, allocations: 1.082 MB / 334.9 MB, free: 5.086 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002644/0.01216, allocations: 191.7 kB / 335.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.01216, allocations: 0 / 335.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.182e-05/0.01224, allocations: 63.89 kB / 335.2 MB, free: 4.836 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.01237, allocations: 15.06 kB / 335.2 MB, free: 4.824 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.01417, allocations: 2.317 MB / 337.5 MB, free: 2.387 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.461e-05/0.01423, allocations: 107.4 kB / 337.6 MB, free: 2.262 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.865e-05/0.01428, allocations: 21.42 kB / 337.7 MB, free: 2.242 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.01435, allocations: 52.48 kB / 337.7 MB, free: 2.191 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01435, allocations: 0 / 337.7 MB, free: 2.191 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.03157, allocations: 6.37 MB / 344.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.846/6.878, allocations: 2.953 kB / 344.1 MB, free: 11.9 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.629350576549768]