Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001618/0.001618, allocations: 120.5 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001619/0.001619, allocations: 215.8 kB / 19.41 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 67.89 kB / 359.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2571, allocations: 50.54 MB / 410.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002903/0.26, allocations: 1.551 MB / 411.7 MB, free: 48 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002682/0.2627, allocations: 1.487 MB / 413.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.677e-05/0.2627, allocations: 0 / 413.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.2628, allocations: 7.875 kB / 413.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.686e-05/0.2629, allocations: 31.72 kB / 413.3 MB, free: 14.51 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.001074/0.264, allocations: 386.8 kB / 413.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001928/0.2642, allocations: 139.5 kB / 413.8 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.681e-05/0.2643, allocations: 5.5 kB / 413.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.016e-05/0.2643, allocations: 55.77 kB / 413.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006446/0.265, allocations: 92.17 kB / 413.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.265, allocations: 12 kB / 414 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006528/0.2657, allocations: 415.3 kB / 414.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.2657, allocations: 43.77 kB / 414.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.563e-05/0.2658, allocations: 59.61 kB / 414.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006205/0.2664, allocations: 410.6 kB / 414.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2664, allocations: 0 / 414.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2664, allocations: 0 / 414.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.2664, allocations: 0 / 414.9 MB, free: 12.93 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.0008321/0.2673, allocations: 0.5174 MB / 415.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.2673, allocations: 8.031 kB / 415.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002428/0.2676, allocations: 40.83 kB / 415.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/0.2678, allocations: 213.7 kB / 415.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.2678, allocations: 384 / 415.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.2678, allocations: 16.12 kB / 415.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.2681, allocations: 124.1 kB / 415.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.2681, allocations: 0 / 415.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.2681, allocations: 0 / 415.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.2681, allocations: 8 kB / 415.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002151/0.2683, allocations: 63.94 kB / 415.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008006/0.2691, allocations: 0.5516 MB / 416.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003683/0.2695, allocations: 139.7 kB / 416.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.2696, allocations: 62.61 kB / 416.6 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.2696, allocations: 0 / 416.6 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003063/0.27, allocations: 153 kB / 416.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.27, allocations: 4 kB / 416.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006446/0.2706, allocations: 249.4 kB / 417 MB, free: 10.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.791e-05/0.2707, allocations: 122.8 kB / 417.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.2709, allocations: 199 kB / 417.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.2709, allocations: 45.69 kB / 417.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2711, allocations: 108.6 kB / 417.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.912e-05/0.2711, allocations: 43.81 kB / 417.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.963e-05/0.2712, allocations: 65.67 kB / 417.6 MB, free: 9.953 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2714, allocations: 330.8 kB / 417.9 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.2716, allocations: 103.9 kB / 418 MB, free: 9.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.2718, allocations: 128.3 kB / 418.1 MB, free: 9.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004179/0.2722, allocations: 232.2 kB / 418.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2722, allocations: 0 / 418.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005583/0.2728, allocations: 301.5 kB / 418.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2728, allocations: 4 kB / 418.6 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2728, allocations: 0 / 418.6 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2728, allocations: 4 kB / 418.6 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.273, allocations: 39.91 kB / 418.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.273, allocations: 3.938 kB / 418.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.2731, allocations: 27.78 kB / 418.7 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.2731, allocations: 4 kB / 418.7 MB, free: 8.762 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.0001605/0.2733, allocations: 165.8 kB / 418.9 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.2733, allocations: 15.91 kB / 418.9 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.2733, allocations: 17.39 kB / 418.9 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2733, allocations: 0 / 418.9 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.2733, allocations: 3.938 kB / 418.9 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.2734, allocations: 7.938 kB / 418.9 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.2736, allocations: 217.5 kB / 419.1 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2736, allocations: 0 / 419.1 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.2737, allocations: 11.98 kB / 419.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2737, allocations: 4 kB / 419.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.2737, allocations: 4 kB / 419.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2737, allocations: 3.938 kB / 419.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2737, allocations: 0 / 419.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004566/0.2741, allocations: 254.9 kB / 419.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.546e-05/0.2742, allocations: 89.02 kB / 419.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/0.2742, allocations: 11.98 kB / 419.5 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-05/0.2743, allocations: 8 kB / 419.5 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.2744, allocations: 15.86 kB / 419.5 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.2744, allocations: 11.98 kB / 419.5 MB, free: 7.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001239/0.2745, allocations: 133.2 kB / 419.7 MB, free: 7.699 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2745, allocations: 0 / 419.7 MB, free: 7.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004611/0.275, allocations: 131.6 kB / 419.8 MB, free: 7.57 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.000811/0.2758, allocations: 338.3 kB / 420.1 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000462/0.2762, allocations: 186.1 kB / 420.3 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2762, allocations: 0 / 420.3 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.2764, allocations: 55.97 kB / 420.4 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.2766, allocations: 11.94 kB / 420.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005765/0.2772, allocations: 289 kB / 420.7 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.2775, allocations: 0.7123 MB / 421.4 MB, free: 5.961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.568e-05/0.2776, allocations: 21.42 kB / 421.4 MB, free: 5.938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.488e-05/0.2776, allocations: 23.42 kB / 421.4 MB, free: 5.918 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2776, allocations: 0 / 421.4 MB, free: 5.918 MB / 334.1 MB Notification: Performance of Templates: time 0.0081/0.2857, allocations: 3.568 MB / 425 MB, free: 2.359 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches