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.001711/0.001711, allocations: 113.5 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003039/0.003039, allocations: 208.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.558/2.558, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5262/0.5284, allocations: 50.55 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.005558/0.534, allocations: 1.535 MB / 411.5 MB, free: 52 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005187/0.5393, allocations: 1.487 MB / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.5395, allocations: 0 / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.5397, allocations: 11.81 kB / 413 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.5399, allocations: 27.8 kB / 413 MB, free: 14.52 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.002298/0.5423, allocations: 386.8 kB / 413.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003392/0.5426, allocations: 139.5 kB / 413.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.927e-05/0.5427, allocations: 9.5 kB / 413.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.5429, allocations: 47.78 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001117/0.5441, allocations: 90.25 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-05/0.5441, allocations: 15.94 kB / 413.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001417/0.5456, allocations: 407.3 kB / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.5457, allocations: 43.78 kB / 414.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.5459, allocations: 63.59 kB / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001163/0.5471, allocations: 402.7 kB / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.5471, allocations: 0 / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.5471, allocations: 0 / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.5471, allocations: 0 / 414.6 MB, free: 12.94 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.00148/0.5486, allocations: 0.5157 MB / 415.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.948e-05/0.5487, allocations: 12.03 kB / 415.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004595/0.5492, allocations: 28.73 kB / 415.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.5495, allocations: 209.7 kB / 415.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.565e-05/0.5496, allocations: 4.375 kB / 415.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.5497, allocations: 16.11 kB / 415.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004897/0.5502, allocations: 132.1 kB / 415.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.5502, allocations: 0 / 415.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.5502, allocations: 0 / 415.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.5503, allocations: 7.984 kB / 415.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003287/0.5506, allocations: 59.95 kB / 415.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.5521, allocations: 0.5476 MB / 416.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000722/0.5528, allocations: 147.7 kB / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/0.5531, allocations: 66.61 kB / 416.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.5531, allocations: 4 kB / 416.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005312/0.5537, allocations: 152.2 kB / 416.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 4.038e-06/0.5537, allocations: 0 / 416.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001206/0.5549, allocations: 249.5 kB / 416.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.5551, allocations: 122.7 kB / 416.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003747/0.5555, allocations: 203.7 kB / 417 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.844e-05/0.5556, allocations: 49.69 kB / 417.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.5557, allocations: 108.5 kB / 417.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.315e-05/0.5559, allocations: 43.45 kB / 417.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.556, allocations: 57.69 kB / 417.3 MB, free: 9.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002292/0.5563, allocations: 330.8 kB / 417.6 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004123/0.5567, allocations: 99.94 kB / 417.7 MB, free: 9.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005578/0.5573, allocations: 144.2 kB / 417.8 MB, free: 9.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008487/0.5582, allocations: 220.2 kB / 418 MB, free: 9.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.5582, allocations: 0 / 418 MB, free: 9.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001061/0.5593, allocations: 301.3 kB / 418.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.5593, allocations: 11.94 kB / 418.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.5594, allocations: 0 / 418.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.92e-05/0.5594, allocations: 4 kB / 418.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.5597, allocations: 31.91 kB / 418.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.5597, allocations: 4 kB / 418.4 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.56, allocations: 35.77 kB / 418.4 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.5601, allocations: 4 kB / 418.4 MB, free: 8.77 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.0002645/0.5604, allocations: 153.7 kB / 418.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.874e-05/0.5604, allocations: 15.89 kB / 418.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.842e-05/0.5605, allocations: 17.39 kB / 418.6 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.5605, allocations: 4 kB / 418.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.5606, allocations: 3.938 kB / 418.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.5606, allocations: 3.938 kB / 418.6 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004743/0.5611, allocations: 217.5 kB / 418.8 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.5611, allocations: 4 kB / 418.8 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.5612, allocations: 15.92 kB / 418.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.5612, allocations: 0 / 418.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.5613, allocations: 0 / 418.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.5613, allocations: 4 kB / 418.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.5613, allocations: 0 / 418.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007641/0.5621, allocations: 242.4 kB / 419.1 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.451e-05/0.5622, allocations: 92.92 kB / 419.2 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.198e-05/0.5623, allocations: 11.98 kB / 419.2 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.5624, allocations: 4 kB / 419.2 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.5625, allocations: 23.86 kB / 419.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.5626, allocations: 7.984 kB / 419.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.5628, allocations: 137.2 kB / 419.4 MB, free: 7.723 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5628, allocations: 0 / 419.4 MB, free: 7.723 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008133/0.5637, allocations: 127.9 kB / 419.5 MB, free: 7.598 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.001399/0.5651, allocations: 336.2 kB / 419.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009011/0.566, allocations: 207.6 kB / 420 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.566, allocations: 0 / 420 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.5664, allocations: 68.16 kB / 420.1 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.5667, allocations: 15.92 kB / 420.1 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.5678, allocations: 310.8 kB / 420.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.5683, allocations: 0.7239 MB / 421.1 MB, free: 5.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.19e-05/0.5684, allocations: 15.44 kB / 421.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5684, allocations: 0 / 421.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of Templates: time 0.01406/0.5825, allocations: 3.963 MB / 425.1 MB, free: 1.934 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