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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009904/0.0009904, allocations: 106.1 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009972/0.0009974, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.254, allocations: 50.45 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003088/0.2571, allocations: 1.618 MB / 408.7 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.2596, allocations: 1.548 MB / 410.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.2598, allocations: 0 / 410.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.2599, allocations: 3.938 kB / 410.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.998e-05/0.26, allocations: 31.72 kB / 410.2 MB, free: 24.61 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.001028/0.2611, allocations: 307.3 kB / 410.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001623/0.2612, allocations: 131.5 kB / 410.7 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.795e-05/0.2613, allocations: 9.484 kB / 410.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.138e-05/0.2614, allocations: 51.72 kB / 410.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008167/0.2622, allocations: 77.08 kB / 410.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.325e-05/0.2622, allocations: 4 kB / 410.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005726/0.2628, allocations: 455.1 kB / 411.3 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.983e-05/0.2629, allocations: 31.84 kB / 411.3 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.742e-05/0.2629, allocations: 63.58 kB / 411.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004438/0.2634, allocations: 408.5 kB / 411.7 MB, free: 23.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2634, allocations: 0 / 411.7 MB, free: 23.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2634, allocations: 0 / 411.7 MB, free: 23.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.2634, allocations: 0 / 411.7 MB, free: 23.1 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.0006812/0.2641, allocations: 0.5105 MB / 412.3 MB, free: 22.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.2641, allocations: 8.031 kB / 412.3 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002105/0.2644, allocations: 36.73 kB / 412.3 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.2645, allocations: 213.3 kB / 412.5 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.2645, allocations: 12.3 kB / 412.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.2646, allocations: 12.12 kB / 412.5 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.2648, allocations: 128.2 kB / 412.7 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.2648, allocations: 0 / 412.7 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.2649, allocations: 0 / 412.7 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.2649, allocations: 4 kB / 412.7 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.2651, allocations: 67.88 kB / 412.7 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000664/0.2658, allocations: 0.5399 MB / 413.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.2661, allocations: 151.7 kB / 413.4 MB, free: 21.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.2662, allocations: 66.55 kB / 413.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.2662, allocations: 0 / 413.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000258/0.2665, allocations: 164.8 kB / 413.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 2.144e-06/0.2665, allocations: 3.938 kB / 413.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005119/0.267, allocations: 257.7 kB / 413.9 MB, free: 20.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.2671, allocations: 114.8 kB / 414 MB, free: 20.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.2672, allocations: 199.2 kB / 414.2 MB, free: 20.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.2673, allocations: 49.67 kB / 414.3 MB, free: 20.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.2673, allocations: 108.5 kB / 414.4 MB, free: 20.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.2673, allocations: 39.55 kB / 414.4 MB, free: 20.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.88e-05/0.2674, allocations: 61.69 kB / 414.5 MB, free: 20.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.13e-05/0.2675, allocations: 330.8 kB / 414.8 MB, free: 19.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.2677, allocations: 99.94 kB / 414.9 MB, free: 19.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.2679, allocations: 147.2 kB / 415 MB, free: 19.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.2682, allocations: 224.3 kB / 415.2 MB, free: 19.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2682, allocations: 8 kB / 415.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004304/0.2686, allocations: 302.7 kB / 415.5 MB, free: 18.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.2686, allocations: 8 kB / 415.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.2687, allocations: 0 / 415.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2687, allocations: 0 / 415.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.2688, allocations: 39.91 kB / 415.6 MB, free: 18.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.2689, allocations: 4 kB / 415.6 MB, free: 18.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.669e-05/0.2689, allocations: 23.88 kB / 415.6 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.269, allocations: 8 kB / 415.6 MB, free: 18.91 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,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.0001062/0.2691, allocations: 157.7 kB / 415.8 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.2691, allocations: 15.81 kB / 415.8 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.395e-05/0.2692, allocations: 17.39 kB / 415.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2692, allocations: 0 / 415.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2692, allocations: 4 kB / 415.8 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2692, allocations: 7.938 kB / 415.8 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.2693, allocations: 217.4 kB / 416 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2693, allocations: 0 / 416 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.314e-05/0.2694, allocations: 11.98 kB / 416.1 MB, free: 18.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.2694, allocations: 4 kB / 416.1 MB, free: 18.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.2694, allocations: 4 kB / 416.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.2694, allocations: 4 kB / 416.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2694, allocations: 0 / 416.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005986/0.27, allocations: 0.8634 MB / 416.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.51e-05/0.2701, allocations: 96.86 kB / 417 MB, free: 17.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.2701, allocations: 7.984 kB / 417 MB, free: 17.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.415e-05/0.2702, allocations: 11.98 kB / 417 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.352e-05/0.2703, allocations: 15.98 kB / 417.1 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.036e-06/0.2703, allocations: 4.094 kB / 417.1 MB, free: 17.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.754e-05/0.2704, allocations: 149.1 kB / 417.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2704, allocations: 0 / 417.2 MB, free: 17.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005189/0.2709, allocations: 131.9 kB / 417.3 MB, free: 17.05 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,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.0007025/0.2716, allocations: 319.6 kB / 417.6 MB, free: 16.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003788/0.272, allocations: 207.8 kB / 417.8 MB, free: 16.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.272, allocations: 0 / 417.8 MB, free: 16.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.2722, allocations: 67.91 kB / 417.9 MB, free: 16.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.2724, allocations: 15.92 kB / 417.9 MB, free: 16.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005751/0.273, allocations: 469.6 kB / 418.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.2732, allocations: 0.7201 MB / 419.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.478e-05/0.2733, allocations: 25.39 kB / 419.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.661e-05/0.2733, allocations: 15.44 kB / 419.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2733, allocations: 0 / 419.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of Templates: time 0.006267/0.2796, allocations: 3.499 MB / 422.6 MB, free: 11.7 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches