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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 221.3 MB / 235.5 MB, free: 2.926 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008262/0.0008263, allocations: 87 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.251e-05/2.255e-05, allocations: 0 / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 50.42 MB / 394.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2978/0.4152, allocations: 79 MB / 473.3 MB, free: 8.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.4154, allocations: 81.47 kB / 473.3 MB, free: 8.445 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02088/0.4363, allocations: 7.598 MB / 480.9 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4364, allocations: 0 / 480.9 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.4364, allocations: 0 / 480.9 MB, free: 0.8242 MB / 346.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.0006305/0.437, allocations: 0.4911 MB / 481.4 MB, free: 296 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.4371, allocations: 8.031 kB / 481.4 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002144/0.4373, allocations: 35.7 kB / 481.5 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.4375, allocations: 199.7 kB / 481.7 MB, free: 8 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.4375, allocations: 8 kB / 481.7 MB, free: 0 / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.4376, allocations: 11.98 kB / 481.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.4378, allocations: 112.2 kB / 481.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.914e-06/0.4378, allocations: 352 / 481.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.4378, allocations: 7.953 kB / 481.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.4378, allocations: 0 / 481.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.539e-05/0.4379, allocations: 47.91 kB / 481.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007354/0.4387, allocations: 0.5633 MB / 482.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.4389, allocations: 124.1 kB / 482.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.122e-05/0.439, allocations: 62.61 kB / 482.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.439, allocations: 3.953 kB / 482.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/0.4392, allocations: 149.9 kB / 482.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.462e-06/0.4392, allocations: 0 / 482.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003403/0.4396, allocations: 181.3 kB / 482.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.4397, allocations: 122.8 kB / 483 MB, free: 14.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.4399, allocations: 174.2 kB / 483.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.486e-05/0.4399, allocations: 41.69 kB / 483.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.716e-05/0.44, allocations: 120.6 kB / 483.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.662e-05/0.4401, allocations: 39.45 kB / 483.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.4401, allocations: 8 kB / 483.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4402, allocations: 330.8 kB / 483.7 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.4403, allocations: 79.84 kB / 483.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.4405, allocations: 119.2 kB / 483.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.4407, allocations: 95.92 kB / 484 MB, free: 13.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4407, allocations: 3.938 kB / 484 MB, free: 13.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00038/0.441, allocations: 257.3 kB / 484.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.4411, allocations: 13.5 kB / 484.3 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.4411, allocations: 4 kB / 484.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.4411, allocations: 0 / 484.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.4413, allocations: 36.02 kB / 484.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.4413, allocations: 0 / 484.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.4414, allocations: 31.67 kB / 484.4 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.4414, allocations: 19.98 kB / 484.4 MB, free: 13.08 MB / 362.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,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.4416, allocations: 124.9 kB / 484.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.4416, allocations: 23.8 kB / 484.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.891e-05/0.4417, allocations: 17.48 kB / 484.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.4417, allocations: 4 kB / 484.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.4417, allocations: 0 / 484.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.4417, allocations: 4 kB / 484.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.4419, allocations: 213.6 kB / 484.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4419, allocations: 0 / 484.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.093e-05/0.442, allocations: 15.98 kB / 484.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.442, allocations: 96 / 484.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.442, allocations: 7.984 kB / 484.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.442, allocations: 7.938 kB / 484.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.442, allocations: 4 kB / 484.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002879/0.4423, allocations: 241.9 kB / 485 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.4424, allocations: 96.81 kB / 485.1 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.933e-05/0.4424, allocations: 15.98 kB / 485.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.641e-05/0.4425, allocations: 11.98 kB / 485.2 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/0.4426, allocations: 11.98 kB / 485.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.4426, allocations: 11.98 kB / 485.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001063/0.4427, allocations: 137.2 kB / 485.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4427, allocations: 0 / 485.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004114/0.4431, allocations: 159.8 kB / 485.5 MB, free: 11.88 MB / 362.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]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008818/0.444, allocations: 384 kB / 485.8 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003465/0.4444, allocations: 236.7 kB / 486.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4444, allocations: 0 / 486.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.551e-05/0.4445, allocations: 55.98 kB / 486.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.4446, allocations: 12.14 kB / 486.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003927/0.445, allocations: 208.5 kB / 486.3 MB, free: 10.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.4453, allocations: 0.72 MB / 487.1 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.784e-05/0.4454, allocations: 21.19 kB / 487.1 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.634e-05/0.4455, allocations: 23.42 kB / 487.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4455, allocations: 0 / 487.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of Templates: time 0.006549/0.452, allocations: 3.506 MB / 490.6 MB, free: 6.707 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches