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.001406/0.001406, allocations: 117.7 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001504/0.001504, allocations: 204.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2474, allocations: 50.54 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002478/0.2499, allocations: 1.528 MB / 411.5 MB, free: 28 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002269/0.2522, allocations: 1.491 MB / 413 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.146e-05/0.2523, allocations: 0 / 413 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.2524, allocations: 11.81 kB / 413 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.599e-05/0.2525, allocations: 23.78 kB / 413 MB, free: 14.49 MB / 334.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.001235/0.2537, allocations: 390.8 kB / 413.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001833/0.2539, allocations: 135.5 kB / 413.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.537e-05/0.254, allocations: 13.5 kB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.1e-05/0.2541, allocations: 55.77 kB / 413.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005716/0.2546, allocations: 82.16 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.2547, allocations: 12 kB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006101/0.2553, allocations: 407.3 kB / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.2554, allocations: 47.77 kB / 414.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.638e-05/0.2554, allocations: 59.59 kB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00053/0.256, allocations: 414.7 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.256, allocations: 0 / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.256, allocations: 0 / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.256, allocations: 0 / 414.6 MB, free: 12.91 MB / 334.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.0007349/0.2568, allocations: 0.5079 MB / 415.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2568, allocations: 12.03 kB / 415.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.257, allocations: 28.73 kB / 415.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.2572, allocations: 209.6 kB / 415.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.2572, allocations: 12.38 kB / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.2573, allocations: 8.125 kB / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002394/0.2575, allocations: 128.1 kB / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.2575, allocations: 0 / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.2575, allocations: 0 / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.2575, allocations: 4 kB / 415.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.2577, allocations: 67.94 kB / 415.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006921/0.2584, allocations: 0.5438 MB / 416.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.2588, allocations: 151.7 kB / 416.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.2589, allocations: 62.61 kB / 416.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.2589, allocations: 4 kB / 416.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002627/0.2592, allocations: 160.3 kB / 416.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.402e-06/0.2592, allocations: 0 / 416.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005519/0.2598, allocations: 253.9 kB / 416.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/0.2599, allocations: 122.7 kB / 416.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.26, allocations: 203.5 kB / 417 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.2601, allocations: 49.69 kB / 417.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.485e-05/0.2602, allocations: 104.6 kB / 417.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.566e-05/0.2602, allocations: 47.44 kB / 417.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.467e-05/0.2603, allocations: 57.69 kB / 417.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.2604, allocations: 334.9 kB / 417.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.2606, allocations: 99.94 kB / 417.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.2608, allocations: 132.3 kB / 417.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003667/0.2612, allocations: 232.2 kB / 418.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2612, allocations: 0 / 418.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004885/0.2617, allocations: 293.3 kB / 418.3 MB, free: 8.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2617, allocations: 8 kB / 418.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2617, allocations: 0 / 418.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.2618, allocations: 8.094 kB / 418.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.2619, allocations: 31.91 kB / 418.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.2619, allocations: 4 kB / 418.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.571e-05/0.262, allocations: 23.69 kB / 418.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.262, allocations: 12 kB / 418.4 MB, free: 8.742 MB / 334.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.0001367/0.2622, allocations: 153.8 kB / 418.6 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.2622, allocations: 15.81 kB / 418.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.673e-05/0.2623, allocations: 21.39 kB / 418.6 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2623, allocations: 4 kB / 418.6 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.2623, allocations: 0 / 418.6 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.2623, allocations: 7.875 kB / 418.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.2625, allocations: 217.5 kB / 418.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2625, allocations: 0 / 418.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.86e-05/0.2626, allocations: 15.92 kB / 418.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.2626, allocations: 4 kB / 418.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.2626, allocations: 0 / 418.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2626, allocations: 4 kB / 418.9 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2626, allocations: 4 kB / 418.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003667/0.263, allocations: 238.4 kB / 419.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.859e-05/0.263, allocations: 88.92 kB / 419.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.2631, allocations: 15.98 kB / 419.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/0.2631, allocations: 11.94 kB / 419.2 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/0.2632, allocations: 20.02 kB / 419.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.2632, allocations: 11.92 kB / 419.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001025/0.2633, allocations: 133.2 kB / 419.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2633, allocations: 0 / 419.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000416/0.2638, allocations: 127.9 kB / 419.5 MB, free: 7.562 MB / 334.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.0006709/0.2644, allocations: 325.6 kB / 419.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000412/0.2649, allocations: 207.7 kB / 420 MB, free: 7.055 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2649, allocations: 0 / 420 MB, free: 7.055 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.265, allocations: 63.97 kB / 420.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001845/0.2652, allocations: 11.23 kB / 420.1 MB, free: 6.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004784/0.2657, allocations: 315 kB / 420.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.266, allocations: 0.7161 MB / 421.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.643e-05/0.266, allocations: 23.44 kB / 421.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.266, allocations: 0 / 421.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of Templates: time 0.005833/0.2719, allocations: 3.947 MB / 425.1 MB, free: 1.93 MB / 334.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