Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009741/0.0009741, allocations: 198.7 kB / 18.07 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 226.5 MB / 245.3 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007533/0.0007534, allocations: 98.38 kB / 297.4 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002158/0.0002159, allocations: 8 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1929, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08627/0.2792, allocations: 79.84 MB / 488.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.2795, allocations: 75.95 kB / 488.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02161/0.3012, allocations: 7.77 MB / 496.3 MB, free: 3.867 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3012, allocations: 0 / 496.3 MB, free: 3.867 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3012, allocations: 0 / 496.3 MB, free: 3.867 MB / 362.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.0007521/0.302, allocations: 0.5262 MB / 496.9 MB, free: 3.289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.302, allocations: 8.031 kB / 496.9 MB, free: 3.281 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.3022, allocations: 28.92 kB / 496.9 MB, free: 3.254 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.3024, allocations: 205.8 kB / 497.1 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.3024, allocations: 4.375 kB / 497.1 MB, free: 3.008 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.3025, allocations: 12.36 kB / 497.1 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.3027, allocations: 132.6 kB / 497.3 MB, free: 2.852 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.3028, allocations: 4.188 kB / 497.3 MB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.3028, allocations: 3.938 kB / 497.3 MB, free: 2.844 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.3028, allocations: 0 / 497.3 MB, free: 2.844 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.303, allocations: 75.94 kB / 497.3 MB, free: 2.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007053/0.3037, allocations: 0.5633 MB / 497.9 MB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.3041, allocations: 175.7 kB / 498.1 MB, free: 1.949 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.3042, allocations: 70.55 kB / 498.1 MB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.3042, allocations: 0 / 498.1 MB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.3045, allocations: 149.8 kB / 498.3 MB, free: 1.703 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.323e-06/0.3045, allocations: 0 / 498.3 MB, free: 1.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005816/0.3051, allocations: 269.5 kB / 498.5 MB, free: 1.434 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.3052, allocations: 122.7 kB / 498.7 MB, free: 1.289 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.3053, allocations: 199.6 kB / 498.9 MB, free: 1.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.3054, allocations: 41.7 kB / 498.9 MB, free: 1.039 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.721e-05/0.3055, allocations: 112.5 kB / 499 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.3055, allocations: 55.5 kB / 499.1 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.358e-05/0.3055, allocations: 4 kB / 499.1 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.633e-05/0.3056, allocations: 326.8 kB / 499.4 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.3058, allocations: 99.94 kB / 499.5 MB, free: 452 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.3061, allocations: 131.2 kB / 499.6 MB, free: 308 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003567/0.3064, allocations: 224.2 kB / 499.8 MB, free: 72 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3064, allocations: 7.938 kB / 499.8 MB, free: 64 kB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005209/0.307, allocations: 281.3 kB / 0.4884 GB, free: 15.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.307, allocations: 6.188 kB / 0.4884 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.307, allocations: 4 kB / 0.4884 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.307, allocations: 96 / 0.4884 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.3072, allocations: 43.91 kB / 0.4884 GB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3072, allocations: 0 / 0.4884 GB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.255e-05/0.3073, allocations: 23.75 kB / 0.4885 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.3073, allocations: 15.98 kB / 0.4885 GB, free: 15.69 MB / 378.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 () * Number of clocked 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.0001276/0.3075, allocations: 157.9 kB / 0.4886 GB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.3075, allocations: 19.81 kB / 0.4887 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.217e-05/0.3075, allocations: 13.41 kB / 0.4887 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3075, allocations: 0 / 0.4887 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3075, allocations: 8 kB / 0.4887 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3076, allocations: 0 / 0.4887 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.3077, allocations: 221.5 kB / 0.4889 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3078, allocations: 4 kB / 0.4889 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.003e-05/0.3078, allocations: 11.98 kB / 0.4889 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3078, allocations: 3.938 kB / 0.4889 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.3079, allocations: 8 kB / 0.4889 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.3079, allocations: 0 / 0.4889 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.3079, allocations: 7.938 kB / 0.4889 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003931/0.3083, allocations: 250.4 kB / 0.4892 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.671e-05/0.3083, allocations: 88.92 kB / 0.4892 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.3084, allocations: 15.98 kB / 0.4893 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.097e-05/0.3085, allocations: 7.984 kB / 0.4893 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.107e-05/0.3085, allocations: 19.92 kB / 0.4893 GB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.3085, allocations: 7.984 kB / 0.4893 GB, free: 14.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001262/0.3087, allocations: 133.2 kB / 0.4894 GB, free: 14.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3087, allocations: 4 kB / 0.4894 GB, free: 14.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005325/0.3092, allocations: 163.7 kB / 0.4896 GB, free: 14.47 MB / 378.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 (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.0009003/0.3101, allocations: 407.1 kB / 0.49 GB, free: 14.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004536/0.3106, allocations: 271.1 kB / 0.4902 GB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3106, allocations: 0 / 0.4902 GB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001552/0.3108, allocations: 63.97 kB / 0.4903 GB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001866/0.311, allocations: 15.73 kB / 0.4903 GB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004964/0.3115, allocations: 333.9 kB / 0.4906 GB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.3117, allocations: 0.7201 MB / 0.4913 GB, free: 12.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.566e-05/0.3118, allocations: 15.44 kB / 0.4913 GB, free: 12.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3118, allocations: 0 / 0.4913 GB, free: 12.62 MB / 378.7 MB Notification: Performance of Templates: time 0.006161/0.3179, allocations: 4.253 MB / 0.4955 GB, free: 8.375 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches