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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions") translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 63.33 kB / 306.3 MB, free: 1.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1829, allocations: 50.53 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.005196/0.1882, allocations: 1.632 MB / 358.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004456/0.1927, allocations: 1.543 MB / 360 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.1928, allocations: 0 / 360 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.1931, allocations: 11.88 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.1933, allocations: 19.86 kB / 360 MB, free: 11.3 MB / 302.1 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.001765/0.1951, allocations: 299.3 kB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.1954, allocations: 135.5 kB / 360.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.585e-05/0.1955, allocations: 9.5 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1956, allocations: 55.72 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.1967, allocations: 73.38 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.1968, allocations: 8 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001218/0.198, allocations: 459 kB / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.106e-05/0.1981, allocations: 27.91 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.1982, allocations: 63.59 kB / 361.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000938/0.1992, allocations: 411.1 kB / 361.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1992, allocations: 4 kB / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1992, allocations: 0 / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.1992, allocations: 0 / 361.5 MB, free: 9.781 MB / 302.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.001137/0.2004, allocations: 0.5104 MB / 362 MB, free: 9.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.2004, allocations: 8.031 kB / 362 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.2008, allocations: 36.7 kB / 362.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.2011, allocations: 205.7 kB / 362.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.2012, allocations: 8.375 kB / 362.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.902e-05/0.2012, allocations: 12.12 kB / 362.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.2016, allocations: 124.1 kB / 362.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2017, allocations: 4 kB / 362.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.2017, allocations: 4 kB / 362.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.2017, allocations: 0 / 362.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003042/0.202, allocations: 63.89 kB / 362.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.2031, allocations: 0.5478 MB / 363 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005444/0.2037, allocations: 159.8 kB / 363.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.2039, allocations: 62.55 kB / 363.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.2039, allocations: 4 kB / 363.2 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004077/0.2044, allocations: 153.8 kB / 363.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.984e-06/0.2044, allocations: 0 / 363.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009397/0.2053, allocations: 253.3 kB / 363.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.2055, allocations: 118.8 kB / 363.8 MB, free: 7.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.2058, allocations: 195 kB / 363.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.938e-05/0.2059, allocations: 49.69 kB / 364 MB, free: 7.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.206, allocations: 112.5 kB / 364.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.201e-05/0.2061, allocations: 35.55 kB / 364.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.2063, allocations: 61.81 kB / 364.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.2065, allocations: 338.8 kB / 364.5 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.2069, allocations: 99.94 kB / 364.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.2073, allocations: 147.2 kB / 364.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006385/0.208, allocations: 232.2 kB / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.208, allocations: 0 / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009081/0.2089, allocations: 301.2 kB / 365.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.2089, allocations: 4 kB / 365.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.209, allocations: 4.094 kB / 365.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.209, allocations: 4 kB / 365.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.2092, allocations: 31.92 kB / 365.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.2093, allocations: 0 / 365.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.2094, allocations: 27.77 kB / 365.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.2095, allocations: 8 kB / 365.4 MB, free: 5.598 MB / 302.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,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 0.0002265/0.2097, allocations: 162.8 kB / 365.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.2098, allocations: 15.81 kB / 365.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.35e-05/0.2098, allocations: 21.39 kB / 365.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2098, allocations: 0 / 365.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.2098, allocations: 0 / 365.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.2099, allocations: 3.938 kB / 365.6 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003451/0.2102, allocations: 217.5 kB / 365.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.2102, allocations: 0 / 365.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.2104, allocations: 19.92 kB / 365.8 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2104, allocations: 0 / 365.8 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.2104, allocations: 4 kB / 365.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2104, allocations: 4 kB / 365.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2104, allocations: 0 / 365.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007345/0.2112, allocations: 237.3 kB / 366 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.2113, allocations: 100.8 kB / 366.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.807e-05/0.2114, allocations: 12 kB / 366.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.2115, allocations: 7.984 kB / 366.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.381e-05/0.2116, allocations: 15.92 kB / 366.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.2117, allocations: 4 kB / 366.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.2119, allocations: 141.2 kB / 366.3 MB, free: 4.555 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2119, allocations: 0 / 366.3 MB, free: 4.555 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008159/0.2127, allocations: 127.9 kB / 366.4 MB, free: 4.43 MB / 302.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,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.00148/0.2142, allocations: 329.2 kB / 366.8 MB, free: 4.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007432/0.215, allocations: 195.8 kB / 367 MB, free: 3.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.215, allocations: 0 / 367 MB, free: 3.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003226/0.2154, allocations: 67.91 kB / 367 MB, free: 3.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.2157, allocations: 10.66 kB / 367 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009371/0.2167, allocations: 314.8 kB / 367.3 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.2172, allocations: 0.7162 MB / 368.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000126/0.2173, allocations: 21.36 kB / 368.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.144e-05/0.2174, allocations: 15.44 kB / 368.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2174, allocations: 0 / 368.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of Templates: time 0.2142/0.4316, allocations: 3.415 MB / 371.5 MB, free: 19.55 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches