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.00185/0.00185, allocations: 113.1 kB / 17.99 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002354/0.002354, allocations: 209.8 kB / 18.92 MB, free: 4.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.652/2.652, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 64.31 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2819, allocations: 50.54 MB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.004418/0.2864, allocations: 1.621 MB / 359.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003861/0.2903, allocations: 1.489 MB / 360.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.2905, allocations: 4 kB / 360.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.2907, allocations: 3.938 kB / 360.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.2909, allocations: 11.88 kB / 360.8 MB, free: 11.26 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.001814/0.2927, allocations: 347.2 kB / 361.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002429/0.2929, allocations: 139.5 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.337e-05/0.293, allocations: 13.47 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.2932, allocations: 51.78 kB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01718/0.3104, allocations: 83.73 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.3105, allocations: 12 kB / 361.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001416/0.3119, allocations: 455.1 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.915e-05/0.3121, allocations: 35.84 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.3122, allocations: 67.58 kB / 361.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007253/0.313, allocations: 291.7 kB / 362.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.768e-06/0.313, allocations: 4 kB / 362.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.313, allocations: 0 / 362.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.313, allocations: 0 / 362.2 MB, free: 9.793 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.001143/0.3142, allocations: 0.5064 MB / 362.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.3143, allocations: 8.031 kB / 362.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004087/0.3147, allocations: 32.72 kB / 362.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.315, allocations: 205.7 kB / 363 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.315, allocations: 12.38 kB / 363 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.3151, allocations: 8.125 kB / 363 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004048/0.3155, allocations: 124.2 kB / 363.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3155, allocations: 7.938 kB / 363.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.3155, allocations: 0 / 363.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3156, allocations: 0 / 363.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003322/0.3159, allocations: 63.95 kB / 363.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.3171, allocations: 0.5437 MB / 363.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000578/0.3177, allocations: 159.9 kB / 363.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.3179, allocations: 66.53 kB / 364 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.318, allocations: 4 kB / 364 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004669/0.3184, allocations: 157.8 kB / 364.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 3.035e-06/0.3185, allocations: 0 / 364.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009729/0.3194, allocations: 249.3 kB / 364.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.3196, allocations: 118.7 kB / 364.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.3199, allocations: 199 kB / 364.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/0.32, allocations: 49.69 kB / 364.7 MB, free: 7.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.3201, allocations: 116.4 kB / 364.8 MB, free: 6.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.263e-05/0.3202, allocations: 35.55 kB / 364.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.3203, allocations: 57.81 kB / 364.9 MB, free: 6.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3205, allocations: 338.8 kB / 365.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.3209, allocations: 99.95 kB / 365.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000376/0.3213, allocations: 143.2 kB / 365.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006539/0.3219, allocations: 232.2 kB / 365.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3219, allocations: 0 / 365.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009211/0.3229, allocations: 301.2 kB / 366 MB, free: 5.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.3229, allocations: 4 kB / 366 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3229, allocations: 4.562 kB / 366 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.323, allocations: 4.094 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.3233, allocations: 35.91 kB / 366.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.3233, allocations: 3.938 kB / 366.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.3235, allocations: 23.83 kB / 366.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.787e-05/0.3235, allocations: 4 kB / 366.1 MB, free: 5.617 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.0002207/0.3237, allocations: 158.7 kB / 366.2 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.278e-05/0.3238, allocations: 19.81 kB / 366.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.104e-05/0.3239, allocations: 17.39 kB / 366.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3239, allocations: 0 / 366.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3239, allocations: 0 / 366.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3239, allocations: 3.938 kB / 366.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/0.3242, allocations: 221.5 kB / 366.5 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.3243, allocations: 0 / 366.5 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.3244, allocations: 15.92 kB / 366.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3244, allocations: 0 / 366.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/0.3244, allocations: 4 kB / 366.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.3244, allocations: 7.938 kB / 366.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.3245, allocations: 3.984 kB / 366.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006776/0.3251, allocations: 234.5 kB / 366.8 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.434e-05/0.3253, allocations: 96.84 kB / 366.9 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.707e-05/0.3253, allocations: 16 kB / 366.9 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.3255, allocations: 7.984 kB / 366.9 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.769e-05/0.3256, allocations: 19.86 kB / 366.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.3256, allocations: 8 kB / 366.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001917/0.3258, allocations: 137.2 kB / 367 MB, free: 4.566 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3258, allocations: 0 / 367 MB, free: 4.566 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.01698/0.3428, allocations: 131.9 kB / 367.2 MB, free: 4.438 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.001506/0.3444, allocations: 316.2 kB / 367.5 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009028/0.3453, allocations: 207.8 kB / 367.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.3453, allocations: 0 / 367.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002831/0.3456, allocations: 67.91 kB / 367.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.346, allocations: 11.94 kB / 367.8 MB, free: 3.863 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009475/0.347, allocations: 343.1 kB / 368.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.3474, allocations: 0.7201 MB / 368.8 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.474e-05/0.3475, allocations: 19.44 kB / 368.8 MB, free: 2.719 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3475, allocations: 0 / 368.8 MB, free: 2.719 MB / 302.1 MB Notification: Performance of Templates: time 0.3841/0.7316, allocations: 3.93 MB / 372.8 MB, free: 18.54 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches