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.001126/0.001126, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.004204/0.004204, allocations: 150.2 kB / 24.81 MB, free: 9.285 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 1.041/1.041, allocations: 173.3 MB / 201.4 MB, free: 9.203 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: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.601e-05/1.762e-05, allocations: 2.312 kB / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001775/0.001792, allocations: 1.543 MB / 270 MB, free: 4.621 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.003363, allocations: 1.375 MB / 271.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.261e-05/0.003416, allocations: 0 / 271.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.32e-05/0.003499, allocations: 19.8 kB / 271.3 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.738e-05/0.003576, allocations: 27.73 kB / 271.4 MB, free: 3.191 MB / 250.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.0007314/0.004308, allocations: 398.5 kB / 271.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001327/0.004441, allocations: 139.5 kB / 271.9 MB, free: 2.664 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.564e-05/0.004476, allocations: 9.672 kB / 271.9 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.204e-05/0.004548, allocations: 75.8 kB / 272 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.004886, allocations: 100.2 kB / 272.1 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.004909, allocations: 12 kB / 272.1 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004666/0.005375, allocations: 427 kB / 272.5 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.305e-05/0.005418, allocations: 39.83 kB / 272.5 MB, free: 2.027 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.589e-05/0.005454, allocations: 39.84 kB / 272.6 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000424/0.005878, allocations: 434.6 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.00588, allocations: 0 / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005881, allocations: 0 / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.005884, allocations: 0 / 273 MB, free: 1.562 MB / 250.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.0004996/0.006384, allocations: 0.5381 MB / 273.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.006416, allocations: 8.922 kB / 273.6 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.006561, allocations: 36.77 kB / 273.6 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.006667, allocations: 157.9 kB / 273.7 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.006684, allocations: 16.31 kB / 273.8 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.006695, allocations: 7.938 kB / 273.8 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.006827, allocations: 96.69 kB / 273.9 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.006833, allocations: 0 / 273.9 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.00684, allocations: 0 / 273.9 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.006844, allocations: 4 kB / 273.9 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.703e-05/0.006881, allocations: 27.92 kB / 273.9 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004063/0.007288, allocations: 0.5801 MB / 274.5 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.007398, allocations: 109.2 kB / 274.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.081e-05/0.007429, allocations: 35.12 kB / 274.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.007438, allocations: 7.984 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.007565, allocations: 130.1 kB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.012e-06/0.007566, allocations: 4 kB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002282/0.007794, allocations: 153.5 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.007845, allocations: 118.7 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.007969, allocations: 242.5 kB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.007998, allocations: 49.69 kB / 275.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.027e-05/0.008059, allocations: 151.3 kB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.008094, allocations: 47.66 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.311e-05/0.008157, allocations: 71.31 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.008276, allocations: 0.5039 MB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.124e-05/0.008328, allocations: 32.09 kB / 276.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.214e-05/0.00839, allocations: 78.56 kB / 276.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001041/0.008494, allocations: 119.1 kB / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.008496, allocations: 0 / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000179/0.008675, allocations: 177.4 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.008689, allocations: 4 kB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.008696, allocations: 0 / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.008709, allocations: 8.094 kB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.008824, allocations: 47.92 kB / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.266e-06/0.008827, allocations: 0 / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.31e-05/0.008871, allocations: 19.88 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.008882, allocations: 8 kB / 276.6 MB, free: 13.69 MB / 266.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,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,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],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]) * 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.433e-05/0.008977, allocations: 188.5 kB / 276.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.008998, allocations: 23.84 kB / 276.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.009026, allocations: 17.41 kB / 276.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.009029, allocations: 8 kB / 276.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.009031, allocations: 0 / 276.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.009034, allocations: 0 / 276.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.009142, allocations: 137.1 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.009144, allocations: 0 / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.488e-05/0.009169, allocations: 15.92 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.009171, allocations: 0 / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.009178, allocations: 4 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.009179, allocations: 0 / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.009181, allocations: 4 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001678/0.009349, allocations: 199.5 kB / 277.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.635e-05/0.009365, allocations: 23.84 kB / 277.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.009386, allocations: 11.98 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.591e-05/0.009412, allocations: 4 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.00945, allocations: 15.97 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.009457, allocations: 4 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.527e-05/0.009522, allocations: 173 kB / 277.4 MB, free: 12.81 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.009522, allocations: 0 / 277.4 MB, free: 12.81 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000269/0.009791, allocations: 119.7 kB / 277.5 MB, free: 12.69 MB / 266.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,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.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.0004987/0.01029, allocations: 362.3 kB / 277.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.01044, allocations: 103.5 kB / 277.9 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.01044, allocations: 0 / 277.9 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.042e-05/0.01048, allocations: 35.61 kB / 278 MB, free: 12.22 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.01063, allocations: 19.92 kB / 278 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000315/0.01095, allocations: 264 kB / 278.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.726e-05/0.01099, allocations: 75.69 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.414e-05/0.01103, allocations: 21.73 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.034e-05/0.01109, allocations: 86.2 kB / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01109, allocations: 0 / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of Templates: time 0.005408/0.0165, allocations: 4.131 MB / 282.6 MB, free: 7.605 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.951448035892099]