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.001727/0.001727, allocations: 197.3 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 226.6 MB / 244.3 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007312/0.0007313, allocations: 98.75 kB / 296.4 MB, free: 6.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.0002562, allocations: 11.92 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.218, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001262/0.2193, allocations: 1.259 MB / 408.8 MB, free: 26.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.2209, allocations: 1.388 MB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.303e-05/0.2209, allocations: 0 / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.392e-05/0.221, allocations: 7.875 kB / 410.2 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.406e-05/0.2211, allocations: 20.31 kB / 410.2 MB, free: 25.15 MB / 298.7 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.0006514/0.2218, allocations: 306 kB / 410.5 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.299e-05/0.2219, allocations: 115.6 kB / 410.6 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.844e-05/0.2219, allocations: 13.48 kB / 410.6 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.711e-05/0.222, allocations: 50.19 kB / 410.6 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.2221, allocations: 75.66 kB / 410.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.2222, allocations: 8 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004694/0.2226, allocations: 439.2 kB / 411.2 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.831e-05/0.2227, allocations: 35.83 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.2227, allocations: 49.58 kB / 411.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.223, allocations: 268.5 kB / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.223, allocations: 0 / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.223, allocations: 0 / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.2231, allocations: 0 / 411.5 MB, free: 23.81 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.0005847/0.2236, allocations: 0.4908 MB / 412 MB, free: 23.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.2237, allocations: 11.97 kB / 412 MB, free: 23.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001932/0.2239, allocations: 31.8 kB / 412 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.224, allocations: 200.5 kB / 412.2 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.2241, allocations: 19.88 kB / 412.3 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.2241, allocations: 8 kB / 412.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.2243, allocations: 140 kB / 412.4 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.2243, allocations: 0 / 412.4 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.2243, allocations: 0 / 412.4 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2243, allocations: 0 / 412.4 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.2245, allocations: 75.89 kB / 412.5 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006357/0.2252, allocations: 0.5555 MB / 413 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.2255, allocations: 167.8 kB / 413.2 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.2256, allocations: 58.56 kB / 413.2 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.2256, allocations: 7.984 kB / 413.3 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.2259, allocations: 157.8 kB / 413.4 MB, free: 21.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.2259, allocations: 0 / 413.4 MB, free: 21.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.000524/0.2264, allocations: 269.4 kB / 413.7 MB, free: 21.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.2265, allocations: 114.8 kB / 413.8 MB, free: 21.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001958/0.2267, allocations: 199.6 kB / 414 MB, free: 21.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.2268, allocations: 41.7 kB / 414 MB, free: 21.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.2268, allocations: 108.6 kB / 414.1 MB, free: 20.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.751e-05/0.2269, allocations: 51.56 kB / 414.2 MB, free: 20.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.2269, allocations: 4 kB / 414.2 MB, free: 20.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.409e-05/0.227, allocations: 334.8 kB / 414.5 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.2272, allocations: 103.9 kB / 414.6 MB, free: 20.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.2274, allocations: 143.2 kB / 414.7 MB, free: 20.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.2275, allocations: 112 kB / 414.9 MB, free: 20.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2276, allocations: 4 kB / 414.9 MB, free: 20.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004314/0.228, allocations: 313.7 kB / 415.2 MB, free: 19.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.228, allocations: 4 kB / 415.2 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.228, allocations: 0 / 415.2 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.228, allocations: 4 kB / 415.2 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.2282, allocations: 39.91 kB / 415.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.2282, allocations: 0 / 415.2 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.351e-05/0.2283, allocations: 27.94 kB / 415.2 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.2283, allocations: 4 kB / 415.2 MB, free: 19.77 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,$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): 27 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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.0001053/0.2284, allocations: 158 kB / 415.4 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.137e-05/0.2285, allocations: 15.72 kB / 415.4 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.956e-05/0.2285, allocations: 21.33 kB / 415.4 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2285, allocations: 4 kB / 415.4 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2285, allocations: 4 kB / 415.4 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2285, allocations: 0 / 415.4 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.2287, allocations: 221.5 kB / 415.7 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2287, allocations: 4 kB / 415.7 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.861e-05/0.2287, allocations: 11.98 kB / 415.7 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2288, allocations: 0 / 415.7 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.2288, allocations: 4 kB / 415.7 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2288, allocations: 0 / 415.7 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2288, allocations: 4 kB / 415.7 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003362/0.2291, allocations: 257 kB / 415.9 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.06e-05/0.2292, allocations: 92.92 kB / 416 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.2292, allocations: 7.984 kB / 416 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.101e-05/0.2293, allocations: 20 kB / 416.1 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.048e-05/0.2293, allocations: 15.91 kB / 416.1 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.2293, allocations: 4 kB / 416.1 MB, free: 18.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.164e-05/0.2294, allocations: 141.2 kB / 416.2 MB, free: 18.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2294, allocations: 0 / 416.2 MB, free: 18.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003316/0.2298, allocations: 120 kB / 416.3 MB, free: 18.58 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 (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.000631/0.2304, allocations: 336.1 kB / 416.7 MB, free: 18.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003689/0.2308, allocations: 199.8 kB / 416.9 MB, free: 18.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2308, allocations: 0 / 416.9 MB, free: 18.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.2309, allocations: 76.16 kB / 416.9 MB, free: 18.01 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/0.2311, allocations: 19.88 kB / 416.9 MB, free: 17.99 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004315/0.2316, allocations: 333.6 kB / 417.3 MB, free: 17.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.2317, allocations: 0.72 MB / 418 MB, free: 16.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.2317, allocations: 15.44 kB / 418 MB, free: 16.86 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2317, allocations: 0 / 418 MB, free: 16.86 MB / 298.7 MB Notification: Performance of Templates: time 0.004713/0.2365, allocations: 3.91 MB / 421.9 MB, free: 12.96 MB / 298.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/jenkins/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