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.00223/0.00223, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 226.5 MB / 244.7 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008176/0.0008176, allocations: 95.69 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002083/0.0002083, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2057, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001143/0.2069, allocations: 1.261 MB / 409.3 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2084, allocations: 1.385 MB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.477e-05/0.2084, allocations: 0 / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.455e-05/0.2085, allocations: 15.86 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.938e-05/0.2086, allocations: 12.52 kB / 410.7 MB, free: 25.02 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.0006359/0.2092, allocations: 318.8 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.096e-05/0.2093, allocations: 115.6 kB / 411.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.791e-05/0.2094, allocations: 17.48 kB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.281e-05/0.2094, allocations: 47.78 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003698/0.2098, allocations: 71.67 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.2098, allocations: 14.55 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004831/0.2103, allocations: 435.2 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.064e-05/0.2104, allocations: 31.84 kB / 411.7 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.642e-05/0.2104, allocations: 87.8 kB / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002958/0.2107, allocations: 276.5 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2108, allocations: 0 / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2108, allocations: 0 / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.2108, allocations: 0 / 412.1 MB, free: 23.63 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.0005276/0.2113, allocations: 498.8 kB / 412.6 MB, free: 23.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.902e-05/0.2113, allocations: 8.031 kB / 412.6 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.2115, allocations: 32.73 kB / 412.6 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.2117, allocations: 209.6 kB / 412.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.2117, allocations: 12.31 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.2117, allocations: 12.11 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/0.2119, allocations: 136.1 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.2119, allocations: 0 / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.212, allocations: 3.984 kB / 413 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.212, allocations: 4 kB / 413 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.2122, allocations: 71.95 kB / 413.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.2127, allocations: 0.5515 MB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.213, allocations: 163.7 kB / 413.8 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.2131, allocations: 66.61 kB / 413.8 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.2132, allocations: 0 / 413.8 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.2134, allocations: 161.8 kB / 414 MB, free: 21.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.2134, allocations: 0 / 414 MB, free: 21.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004647/0.2139, allocations: 261.6 kB / 414.3 MB, free: 21.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.2139, allocations: 122.7 kB / 414.4 MB, free: 21.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.2141, allocations: 191.6 kB / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.2141, allocations: 53.62 kB / 414.6 MB, free: 20.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.81e-05/0.2142, allocations: 116.7 kB / 414.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.2142, allocations: 43.45 kB / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-05/0.2142, allocations: 0 / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.98e-05/0.2143, allocations: 338.8 kB / 415.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.2145, allocations: 95.95 kB / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.2147, allocations: 151.2 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.215, allocations: 228.2 kB / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.215, allocations: 4 kB / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004117/0.2154, allocations: 309.2 kB / 415.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.2154, allocations: 6.969 kB / 415.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2154, allocations: 4.094 kB / 415.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2154, allocations: 4 kB / 415.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.2156, allocations: 31.92 kB / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.2156, allocations: 0 / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.075e-05/0.2157, allocations: 35.67 kB / 416 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.2157, allocations: 8 kB / 416 MB, free: 19.46 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 9.415e-05/0.2158, allocations: 150 kB / 416.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.91e-05/0.2158, allocations: 11.81 kB / 416.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/0.2159, allocations: 17.41 kB / 416.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.2159, allocations: 4 kB / 416.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2159, allocations: 0 / 416.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2159, allocations: 7.922 kB / 416.1 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001252/0.216, allocations: 213.5 kB / 416.4 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.216, allocations: 4 kB / 416.4 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.536e-05/0.2161, allocations: 15.94 kB / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2161, allocations: 4 kB / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.2161, allocations: 11.98 kB / 416.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2161, allocations: 0 / 416.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.2161, allocations: 4 kB / 416.4 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.2164, allocations: 242.4 kB / 416.6 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.102e-05/0.2165, allocations: 100.9 kB / 416.7 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.2165, allocations: 7.938 kB / 416.7 MB, free: 18.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.508e-05/0.2166, allocations: 11.98 kB / 416.8 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.032e-05/0.2166, allocations: 15.92 kB / 416.8 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.2167, allocations: 4 kB / 416.8 MB, free: 18.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.89e-05/0.2167, allocations: 149.1 kB / 416.9 MB, free: 18.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2168, allocations: 0 / 416.9 MB, free: 18.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003252/0.2171, allocations: 127.9 kB / 417 MB, free: 18.28 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.0006001/0.2177, allocations: 330 kB / 417.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003571/0.2181, allocations: 207.8 kB / 417.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2181, allocations: 0 / 417.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.2182, allocations: 63.97 kB / 417.6 MB, free: 17.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.2184, allocations: 11.75 kB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000373/0.2188, allocations: 345.8 kB / 418 MB, free: 17.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.2189, allocations: 0.7239 MB / 418.7 MB, free: 16.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.945e-05/0.2189, allocations: 19.44 kB / 418.7 MB, free: 16.55 MB / 298.7 MB Notification: Performance of SimCode: time 2.8e-07/0.2189, allocations: 0 / 418.7 MB, free: 16.55 MB / 298.7 MB Notification: Performance of Templates: time 0.004534/0.2235, allocations: 3.902 MB / 422.6 MB, free: 12.66 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