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.001589/0.001589, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.32/1.32, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 103.8 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009684/0.0009686, allocations: 43.92 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3002, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002691/0.303, allocations: 1.596 MB / 401.1 MB, free: 31.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.3053, allocations: 1.494 MB / 402.6 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.451e-05/0.3055, allocations: 4 kB / 402.6 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.3056, allocations: 3.938 kB / 402.6 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.047e-05/0.3057, allocations: 19.8 kB / 402.6 MB, free: 30.23 MB / 298.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.00104/0.3067, allocations: 311.3 kB / 402.9 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.3069, allocations: 127.6 kB / 403 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.362e-05/0.307, allocations: 5.5 kB / 403 MB, free: 29.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.093e-05/0.307, allocations: 47.78 kB / 403.1 MB, free: 29.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008312/0.3079, allocations: 97.03 kB / 403.2 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.3079, allocations: 4 kB / 403.2 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005875/0.3085, allocations: 439.1 kB / 403.6 MB, free: 29.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.159e-05/0.3086, allocations: 43.77 kB / 403.6 MB, free: 29.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.762e-05/0.3086, allocations: 55.59 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004655/0.3091, allocations: 396.6 kB / 404.1 MB, free: 28.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3091, allocations: 3.938 kB / 404.1 MB, free: 28.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3091, allocations: 3.938 kB / 404.1 MB, free: 28.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.3091, allocations: 0 / 404.1 MB, free: 28.73 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.0008333/0.31, allocations: 0.5182 MB / 404.6 MB, free: 28.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.31, allocations: 8.031 kB / 404.6 MB, free: 28.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002297/0.3103, allocations: 32.73 kB / 404.7 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.3104, allocations: 209.6 kB / 404.9 MB, free: 27.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.3105, allocations: 7.938 kB / 404.9 MB, free: 27.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.3105, allocations: 8 kB / 404.9 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.3107, allocations: 132.1 kB / 405 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3108, allocations: 0 / 405 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.3108, allocations: 4 kB / 405 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.3108, allocations: 4 kB / 405 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002279/0.311, allocations: 71.86 kB / 405.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006597/0.3117, allocations: 0.5399 MB / 405.6 MB, free: 27.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.312, allocations: 151.7 kB / 405.8 MB, free: 26.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.3121, allocations: 66.55 kB / 405.8 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.3122, allocations: 0 / 405.8 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.3124, allocations: 149.9 kB / 406 MB, free: 26.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.263e-06/0.3124, allocations: 0 / 406 MB, free: 26.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.000509/0.3129, allocations: 253.4 kB / 406.2 MB, free: 26.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.313, allocations: 118.8 kB / 406.3 MB, free: 26.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.3132, allocations: 203.1 kB / 406.5 MB, free: 26.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.3132, allocations: 49.69 kB / 406.6 MB, free: 25.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.245e-05/0.3133, allocations: 108.5 kB / 406.7 MB, free: 25.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.3133, allocations: 43.45 kB / 406.7 MB, free: 25.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.238e-05/0.3134, allocations: 65.69 kB / 406.8 MB, free: 25.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.902e-05/0.3135, allocations: 330.8 kB / 407.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.3136, allocations: 99.8 kB / 407.2 MB, free: 25.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.3138, allocations: 135.4 kB / 407.4 MB, free: 25.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/0.3141, allocations: 224.2 kB / 407.6 MB, free: 24.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3141, allocations: 4 kB / 407.6 MB, free: 24.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000424/0.3146, allocations: 305.2 kB / 407.9 MB, free: 24.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3146, allocations: 8 kB / 407.9 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3146, allocations: 0 / 407.9 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3146, allocations: 0 / 407.9 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.3148, allocations: 43.84 kB / 407.9 MB, free: 24.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.3148, allocations: 0 / 407.9 MB, free: 24.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.507e-05/0.3149, allocations: 15.94 kB / 407.9 MB, free: 24.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.3149, allocations: 23.92 kB / 408 MB, free: 24.54 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.0001337/0.3151, allocations: 145.8 kB / 408.1 MB, free: 24.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.955e-05/0.3151, allocations: 23.75 kB / 408.1 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.3152, allocations: 17.39 kB / 408.1 MB, free: 24.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3152, allocations: 3.938 kB / 408.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.3152, allocations: 8 kB / 408.2 MB, free: 24.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3152, allocations: 0 / 408.2 MB, free: 24.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.3154, allocations: 221.4 kB / 408.4 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.3154, allocations: 0 / 408.4 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.589e-05/0.3155, allocations: 11.98 kB / 408.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3155, allocations: 4 kB / 408.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.3155, allocations: 0 / 408.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.3155, allocations: 7.875 kB / 408.4 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3155, allocations: 4 kB / 408.4 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000622/0.3161, allocations: 0.8635 MB / 409.3 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.3162, allocations: 96.91 kB / 409.4 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.3162, allocations: 8 kB / 409.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.755e-05/0.3163, allocations: 7.984 kB / 409.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.641e-05/0.3164, allocations: 23.92 kB / 409.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.3164, allocations: 4 kB / 409.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.899e-05/0.3165, allocations: 137.2 kB / 409.5 MB, free: 22.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3165, allocations: 0 / 409.5 MB, free: 22.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006967/0.3172, allocations: 119.9 kB / 409.7 MB, free: 22.7 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.0009098/0.3181, allocations: 327 kB / 410 MB, free: 22.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004363/0.3186, allocations: 195.8 kB / 410.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.3186, allocations: 0 / 410.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.3187, allocations: 63.97 kB / 410.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.319, allocations: 18.27 kB / 410.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006642/0.3197, allocations: 481.5 kB / 410.7 MB, free: 21.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.3199, allocations: 0.724 MB / 411.4 MB, free: 20.88 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.71e-05/0.32, allocations: 17.42 kB / 411.5 MB, free: 20.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/0.32, allocations: 19.42 kB / 411.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.32, allocations: 0 / 411.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of Templates: time 0.006714/0.3267, allocations: 3.397 MB / 414.9 MB, free: 17.45 MB / 298.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@2/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