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.001368/0.001368, allocations: 109.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 209.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2764, allocations: 50.53 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002451/0.2789, allocations: 1.493 MB / 411.4 MB, free: 128 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.28, allocations: 0.5715 MB / 412 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.297e-05/0.28, allocations: 0 / 412 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.663e-05/0.2802, allocations: 7.875 kB / 412 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.557e-05/0.2802, allocations: 27.78 kB / 412 MB, free: 15.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.0005299/0.2808, allocations: 135.6 kB / 412.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.2809, allocations: 115.7 kB / 412.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.001e-05/0.281, allocations: 9.125 kB / 412.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.695e-05/0.281, allocations: 51.83 kB / 412.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005506/0.2816, allocations: 85.61 kB / 412.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.552e-05/0.2816, allocations: 8 kB / 412.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.2819, allocations: 107.9 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.151e-05/0.2819, allocations: 35.84 kB / 412.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.145e-05/0.282, allocations: 55.67 kB / 412.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.2823, allocations: 195.1 kB / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2823, allocations: 0 / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2823, allocations: 0 / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.2823, allocations: 4 kB / 412.8 MB, free: 14.73 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.0006048/0.2829, allocations: 456.3 kB / 413.3 MB, free: 14.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.283, allocations: 16.02 kB / 413.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003013/0.2833, allocations: 36.72 kB / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.2834, allocations: 196.1 kB / 413.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.2834, allocations: 8.375 kB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.2835, allocations: 4.375 kB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.2837, allocations: 119.5 kB / 413.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2837, allocations: 0 / 413.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.2837, allocations: 0 / 413.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.2837, allocations: 4 kB / 413.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001636/0.2839, allocations: 59.89 kB / 413.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/0.2845, allocations: 377.4 kB / 414.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002841/0.2848, allocations: 129.1 kB / 414.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.2849, allocations: 53.77 kB / 414.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.2849, allocations: 3.984 kB / 414.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002323/0.2852, allocations: 141 kB / 414.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.595e-06/0.2852, allocations: 0 / 414.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004865/0.2857, allocations: 238 kB / 414.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.2857, allocations: 93.03 kB / 414.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.2859, allocations: 178.2 kB / 414.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.2859, allocations: 45.7 kB / 414.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.176e-05/0.286, allocations: 104.6 kB / 415 MB, free: 12.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.132e-05/0.286, allocations: 43.53 kB / 415.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.498e-05/0.2861, allocations: 57.92 kB / 415.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.2862, allocations: 334.8 kB / 415.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.2864, allocations: 96.45 kB / 415.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.2866, allocations: 128.4 kB / 415.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003152/0.2869, allocations: 218.9 kB / 415.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2869, allocations: 0 / 415.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004287/0.2874, allocations: 289.2 kB / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2874, allocations: 4 kB / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.2874, allocations: 0 / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.2874, allocations: 4 kB / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.2876, allocations: 31.92 kB / 416.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.2876, allocations: 8 kB / 416.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.926e-05/0.2877, allocations: 23.83 kB / 416.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.2877, allocations: 4 kB / 416.2 MB, free: 11.02 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.0001261/0.2878, allocations: 153.7 kB / 416.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.2878, allocations: 11.81 kB / 416.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.148e-05/0.2879, allocations: 13.41 kB / 416.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2879, allocations: 0 / 416.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.2879, allocations: 4 kB / 416.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.2879, allocations: 11.92 kB / 416.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.2881, allocations: 209.5 kB / 416.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2881, allocations: 3.938 kB / 416.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.482e-05/0.2881, allocations: 8 kB / 416.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2881, allocations: 0 / 416.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.2882, allocations: 3.984 kB / 416.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.2882, allocations: 11.98 kB / 416.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2882, allocations: 0 / 416.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.2885, allocations: 217.7 kB / 416.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.967e-05/0.2886, allocations: 100.9 kB / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.2886, allocations: 4 kB / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.44e-05/0.2887, allocations: 7.984 kB / 417 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.2887, allocations: 20.02 kB / 417 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.2887, allocations: 0 / 417 MB, free: 10.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.011e-05/0.2888, allocations: 140.2 kB / 417.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2888, allocations: 0 / 417.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002757/0.2891, allocations: 51.98 kB / 417.2 MB, free: 9.961 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.0004028/0.2895, allocations: 197.2 kB / 417.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003787/0.2899, allocations: 184 kB / 417.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2899, allocations: 0 / 417.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.2901, allocations: 63.91 kB / 417.6 MB, free: 9.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/0.2902, allocations: 11.94 kB / 417.6 MB, free: 9.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004305/0.2907, allocations: 277.8 kB / 417.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.2909, allocations: 0.7119 MB / 418.6 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.896e-05/0.291, allocations: 15.44 kB / 418.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of SimCode: time 1.9e-07/0.291, allocations: 0 / 418.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of Templates: time 0.003854/0.2948, allocations: 2.322 MB / 421 MB, free: 6.152 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches