Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise") translateModel(Modelica.Blocks.Examples.Noise.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001389/0.001389, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001479/0.00148, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 67.81 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3763, allocations: 50.53 MB / 409.2 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.003017/0.3794, allocations: 1.489 MB / 410.7 MB, free: 264 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.3805, allocations: 0.5754 MB / 411.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.955e-05/0.3806, allocations: 4 kB / 411.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.3807, allocations: 7.875 kB / 411.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.564e-05/0.3808, allocations: 19.8 kB / 411.3 MB, free: 15.65 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.0006211/0.3814, allocations: 147.5 kB / 411.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.3816, allocations: 111.7 kB / 411.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.891e-05/0.3817, allocations: 9.125 kB / 411.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.42e-05/0.3817, allocations: 43.84 kB / 411.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000612/0.3824, allocations: 74.03 kB / 411.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/0.3824, allocations: 16 kB / 411.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.3826, allocations: 111.8 kB / 411.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.907e-05/0.3827, allocations: 31.86 kB / 411.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.979e-05/0.3828, allocations: 55.66 kB / 411.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003643/0.3832, allocations: 203.2 kB / 412.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3832, allocations: 0 / 412.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3832, allocations: 0 / 412.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.3832, allocations: 0 / 412.1 MB, free: 14.86 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006811/0.3839, allocations: 462.5 kB / 412.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.3839, allocations: 16.03 kB / 412.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003191/0.3843, allocations: 36.81 kB / 412.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.3844, allocations: 196.2 kB / 412.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.3844, allocations: 4.375 kB / 412.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.3845, allocations: 12.36 kB / 412.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.3847, allocations: 119.4 kB / 413 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3847, allocations: 4 kB / 413 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.3848, allocations: 4 kB / 413 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3848, allocations: 0 / 413 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.385, allocations: 55.95 kB / 413 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000646/0.3856, allocations: 373.4 kB / 413.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.3859, allocations: 129.2 kB / 413.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.386, allocations: 57.75 kB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.3861, allocations: 7.984 kB / 413.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.3863, allocations: 144.1 kB / 413.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.3863, allocations: 0 / 413.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005371/0.3869, allocations: 233.5 kB / 413.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.067e-05/0.3869, allocations: 101.1 kB / 414 MB, free: 12.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.3871, allocations: 174.3 kB / 414.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.654e-05/0.3871, allocations: 41.7 kB / 414.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.905e-05/0.3872, allocations: 104.6 kB / 414.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.046e-05/0.3873, allocations: 43.69 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.701e-05/0.3873, allocations: 57.91 kB / 414.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3875, allocations: 334.7 kB / 414.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.3877, allocations: 100.5 kB / 414.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.3879, allocations: 136.4 kB / 415 MB, free: 11.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.3882, allocations: 206.9 kB / 415.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3882, allocations: 4 kB / 415.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004463/0.3887, allocations: 293.4 kB / 415.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.3887, allocations: 4 kB / 415.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3887, allocations: 4 kB / 415.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3887, allocations: 0 / 415.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.3889, allocations: 27.92 kB / 415.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.3889, allocations: 4 kB / 415.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.485e-05/0.389, allocations: 23.83 kB / 415.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.389, allocations: 12 kB / 415.6 MB, free: 11.13 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1],uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001411/0.3891, allocations: 153.8 kB / 415.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.3892, allocations: 11.91 kB / 415.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.48e-05/0.3892, allocations: 13.41 kB / 415.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3892, allocations: 3.984 kB / 415.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3892, allocations: 4 kB / 415.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3892, allocations: 0 / 415.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.3894, allocations: 205.5 kB / 416 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3894, allocations: 4 kB / 416 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.04e-05/0.3895, allocations: 15.98 kB / 416 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3895, allocations: 0 / 416 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.3895, allocations: 4 kB / 416 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3895, allocations: 3.938 kB / 416 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3895, allocations: 0 / 416 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.3899, allocations: 229.7 kB / 416.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.813e-05/0.3899, allocations: 92.95 kB / 416.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.39, allocations: 11.98 kB / 416.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.174e-05/0.39, allocations: 7.938 kB / 416.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.008e-05/0.3901, allocations: 11.98 kB / 416.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.3901, allocations: 4 kB / 416.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.71e-05/0.3902, allocations: 140.2 kB / 416.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3902, allocations: 0 / 416.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002577/0.3905, allocations: 43.94 kB / 416.5 MB, free: 10.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw,$whenCondition1,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw) * Number of discrete states: 8 (uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.0003791/0.3909, allocations: 203.3 kB / 416.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003939/0.3913, allocations: 192 kB / 416.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3913, allocations: 0 / 416.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.3914, allocations: 63.97 kB / 417 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001626/0.3916, allocations: 7.984 kB / 417 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004216/0.392, allocations: 247.7 kB / 417.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.3923, allocations: 0.712 MB / 417.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.209e-05/0.3923, allocations: 12.88 kB / 417.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/0.3924, allocations: 19.42 kB / 418 MB, free: 8.602 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3924, allocations: 0 / 418 MB, free: 8.602 MB / 334.1 MB Notification: Performance of Templates: time 0.004876/0.3973, allocations: 1.97 MB / 419.9 MB, free: 6.633 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches