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/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.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/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, allocations: 105.4 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 51.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2848, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002273/0.2871, allocations: 1.568 MB / 408.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009471/0.2881, allocations: 0.6003 MB / 409.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.787e-05/0.2882, allocations: 0 / 409.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.824e-05/0.2883, allocations: 7.922 kB / 409.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.669e-05/0.2883, allocations: 15.59 kB / 409.3 MB, free: 25.62 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.0004087/0.2888, allocations: 111.8 kB / 409.4 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.499e-05/0.2889, allocations: 115.7 kB / 409.5 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.731e-05/0.2889, allocations: 5.125 kB / 409.5 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.23e-05/0.289, allocations: 39.83 kB / 409.5 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007175/0.2897, allocations: 74.31 kB / 409.6 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.2897, allocations: 8 kB / 409.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.2899, allocations: 111.8 kB / 409.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.36e-05/0.2899, allocations: 27.91 kB / 409.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.525e-05/0.29, allocations: 53.28 kB / 409.8 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.2902, allocations: 189 kB / 410 MB, free: 24.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2902, allocations: 0 / 410 MB, free: 24.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.2902, allocations: 0 / 410 MB, free: 24.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.2902, allocations: 2.688 kB / 410 MB, free: 24.9 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005516/0.2908, allocations: 454.7 kB / 410.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.2908, allocations: 12.03 kB / 410.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.2911, allocations: 32.81 kB / 410.5 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.2912, allocations: 204.1 kB / 410.7 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.2913, allocations: 4.375 kB / 410.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/0.2913, allocations: 8.375 kB / 410.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.2915, allocations: 115.4 kB / 410.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.2915, allocations: 0 / 410.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.2915, allocations: 7.984 kB / 410.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.2915, allocations: 4 kB / 410.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.2917, allocations: 55.97 kB / 410.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005271/0.2922, allocations: 373.4 kB / 411.2 MB, free: 23.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.2925, allocations: 129.1 kB / 411.3 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.256e-05/0.2926, allocations: 53.75 kB / 411.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.2926, allocations: 4 kB / 411.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.2928, allocations: 145 kB / 411.5 MB, free: 23.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.2928, allocations: 0 / 411.5 MB, free: 23.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004229/0.2932, allocations: 241.5 kB / 411.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.2933, allocations: 89.11 kB / 411.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.2934, allocations: 178.8 kB / 412 MB, free: 22.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.2935, allocations: 45.69 kB / 412.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.23e-05/0.2935, allocations: 108.6 kB / 412.2 MB, free: 22.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.2936, allocations: 39.53 kB / 412.2 MB, free: 22.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-05/0.2936, allocations: 61.78 kB / 412.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.164e-05/0.2937, allocations: 334.8 kB / 412.6 MB, free: 22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.2939, allocations: 96.47 kB / 412.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.2941, allocations: 140 kB / 412.8 MB, free: 21.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/0.2943, allocations: 206.9 kB / 413 MB, free: 21.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2943, allocations: 0 / 413 MB, free: 21.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003785/0.2947, allocations: 287.4 kB / 413.3 MB, free: 21.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2948, allocations: 12.05 kB / 413.3 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.2948, allocations: 0 / 413.3 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.2948, allocations: 4 kB / 413.3 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.295, allocations: 31.86 kB / 413.4 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.295, allocations: 0 / 413.4 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.883e-05/0.2951, allocations: 19.84 kB / 413.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.2951, allocations: 4 kB / 413.4 MB, free: 21.2 MB / 298.7 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.0001243/0.2952, allocations: 165.7 kB / 413.6 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.2952, allocations: 15.8 kB / 413.6 MB, free: 21.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.123e-05/0.2953, allocations: 13.41 kB / 413.6 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2953, allocations: 0 / 413.6 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.2953, allocations: 4 kB / 413.6 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2953, allocations: 0 / 413.6 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.2955, allocations: 213.4 kB / 413.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2955, allocations: 0 / 413.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.207e-05/0.2955, allocations: 11.98 kB / 413.8 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.2955, allocations: 0 / 413.8 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.2956, allocations: 15.94 kB / 413.8 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2956, allocations: 0 / 413.8 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2956, allocations: 0 / 413.8 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005514/0.2961, allocations: 0.8238 MB / 414.7 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.2962, allocations: 100.8 kB / 414.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.2962, allocations: 11.94 kB / 414.8 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.258e-05/0.2963, allocations: 11.92 kB / 414.8 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.2963, allocations: 15.98 kB / 414.8 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.2963, allocations: 4 kB / 414.8 MB, free: 19.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.687e-05/0.2964, allocations: 124.2 kB / 414.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2964, allocations: 0 / 414.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003586/0.2968, allocations: 51.98 kB / 415 MB, free: 19.48 MB / 298.7 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.0003892/0.2972, allocations: 192.8 kB / 415.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.2975, allocations: 194.2 kB / 415.3 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2975, allocations: 4 kB / 415.3 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.2976, allocations: 59.91 kB / 415.4 MB, free: 19.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.2978, allocations: 11.94 kB / 415.4 MB, free: 19.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005118/0.2983, allocations: 448.4 kB / 415.9 MB, free: 18.58 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000163/0.2985, allocations: 0.72 MB / 416.6 MB, free: 17.83 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.199e-05/0.2986, allocations: 16.86 kB / 416.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.345e-05/0.2986, allocations: 15.44 kB / 416.6 MB, free: 17.8 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2986, allocations: 0 / 416.6 MB, free: 17.8 MB / 298.7 MB Notification: Performance of Templates: time 0.004181/0.3028, allocations: 1.915 MB / 418.5 MB, free: 15.89 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches