Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.UniformNoiseProperties,tolerance=1e-09,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mean.mu|standardDeviation.variance.mu|standardDeviation.variance.var|variance.mu|variance.var|meanError_y|sigmaError_y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties") translateModel(Modelica.Blocks.Examples.Noise.UniformNoiseProperties,tolerance=1e-09,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mean.mu|standardDeviation.variance.mu|standardDeviation.variance.var|variance.mu|variance.var|meanError_y|sigmaError_y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001587/0.001587, allocations: 118.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 215.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.418/1.418, allocations: 227.7 MB / 247.9 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 67.88 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2583, allocations: 50.54 MB / 410.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoiseProperties): time 0.003142/0.2615, allocations: 1.873 MB / 412.1 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.2634, allocations: 1.013 MB / 413.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.464e-05/0.2635, allocations: 0 / 413.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.2636, allocations: 27.61 kB / 413.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.2638, allocations: 39.7 kB / 413.2 MB, free: 14.47 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.0005774/0.2643, allocations: 183.5 kB / 413.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002604/0.2646, allocations: 215.5 kB / 413.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.2648, allocations: 52.27 kB / 413.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.2649, allocations: 99.61 kB / 413.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005908/0.2655, allocations: 122.7 kB / 413.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.128e-05/0.2655, allocations: 24 kB / 413.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002598/0.2658, allocations: 123.8 kB / 414 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.377e-05/0.2658, allocations: 63.81 kB / 414 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.2659, allocations: 99.45 kB / 414.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004456/0.2664, allocations: 286.8 kB / 414.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2664, allocations: 4 kB / 414.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2664, allocations: 0 / 414.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.2664, allocations: 0 / 414.4 MB, free: 13.22 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001123/0.2675, allocations: 0.5657 MB / 415 MB, free: 12.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2676, allocations: 12.03 kB / 415 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.2678, allocations: 48.72 kB / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.268, allocations: 228.9 kB / 415.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.2681, allocations: 16.66 kB / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.2681, allocations: 24.12 kB / 415.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004993/0.2686, allocations: 202.9 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.2686, allocations: 0 / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.2687, allocations: 8 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.2687, allocations: 4 kB / 415.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00049/0.2692, allocations: 148.4 kB / 415.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.2703, allocations: 0.5828 MB / 416.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.2714, allocations: 302.6 kB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.2717, allocations: 104.8 kB / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.2717, allocations: 0 / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004246/0.2721, allocations: 171.2 kB / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.694e-06/0.2721, allocations: 0 / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001054/0.2732, allocations: 354.8 kB / 417.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.2732, allocations: 59.39 kB / 417.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/0.2735, allocations: 222.7 kB / 417.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/0.2735, allocations: 41.69 kB / 417.5 MB, free: 9.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.2736, allocations: 132.6 kB / 417.6 MB, free: 9.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.283e-05/0.2737, allocations: 71.42 kB / 417.7 MB, free: 9.762 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.2738, allocations: 73.64 kB / 417.7 MB, free: 9.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.274, allocations: 338.8 kB / 418.1 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003656/0.2744, allocations: 127.9 kB / 418.2 MB, free: 9.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003953/0.2748, allocations: 165.6 kB / 418.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006777/0.2754, allocations: 275.2 kB / 418.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.2754, allocations: 0 / 418.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008685/0.2763, allocations: 379.8 kB / 419 MB, free: 8.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.2763, allocations: 4 kB / 419 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.2763, allocations: 0 / 419 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2764, allocations: 4 kB / 419 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/0.2767, allocations: 75.91 kB / 419.1 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2767, allocations: 0 / 419.1 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.2769, allocations: 47.69 kB / 419.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/0.2769, allocations: 16 kB / 419.1 MB, free: 8.254 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition1,globalSeed.seed,noise.actualGlobalSeed,noise.localSeed,globalSeed.id_impure,noise.r_raw,$PRE.noise.r_raw,noise.r,$PRE.noise.r,noise.state[4],$PRE.noise.state[4],noise.state[3],$PRE.noise.state[3],noise.state[2],$PRE.noise.state[2],noise.state[1],$PRE.noise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 1 * 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.0001697/0.2771, allocations: 145.6 kB / 419.3 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.041e-05/0.2771, allocations: 27.84 kB / 419.3 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.39e-05/0.2772, allocations: 21.88 kB / 419.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2772, allocations: 0 / 419.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2772, allocations: 0 / 419.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.2772, allocations: 3.984 kB / 419.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.2784, allocations: 0.622 MB / 420 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2784, allocations: 4 kB / 420 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.2786, allocations: 43.95 kB / 420 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2786, allocations: 3.984 kB / 420 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.2786, allocations: 4 kB / 420 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2786, allocations: 0 / 420 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2786, allocations: 0 / 420 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.2797, allocations: 487 kB / 420.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.627e-05/0.2798, allocations: 100.9 kB / 420.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.2798, allocations: 12 kB / 420.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.28, allocations: 27.91 kB / 420.6 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.2801, allocations: 11.98 kB / 420.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.2801, allocations: 11.98 kB / 420.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001622/0.2803, allocations: 152.7 kB / 420.8 MB, free: 6.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2803, allocations: 0 / 420.8 MB, free: 6.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003607/0.2806, allocations: 67.88 kB / 420.9 MB, free: 6.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.mu,variance.mu,variance.var,standardDeviation.variance.mu,standardDeviation.variance.var) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005132/0.2811, allocations: 204.7 kB / 421.1 MB, free: 6.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008051/0.282, allocations: 263.7 kB / 421.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.282, allocations: 0 / 421.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.2823, allocations: 111.9 kB / 421.4 MB, free: 5.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.2826, allocations: 31.81 kB / 421.5 MB, free: 5.852 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009946/0.2836, allocations: 473.8 kB / 421.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.284, allocations: 0.7359 MB / 422.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.2841, allocations: 29.94 kB / 422.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.55e-05/0.2842, allocations: 27.42 kB / 422.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2842, allocations: 0 / 422.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of Templates: time 0.007553/0.2917, allocations: 2.923 MB / 425.6 MB, free: 1.641 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/UniformNoiseProperties/UniformNoiseProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mean.mu,standardDeviation.variance.mu,standardDeviation.variance.var,variance.mu,variance.var,meanError_y,sigmaError_y Variables in the result:globalSeed.enableNoise,globalSeed.fixedSeed,globalSeed.seed,globalSeed.useAutomaticSeed,mean.actualStartTime,mean.mu,mean.startTime,mean.t_0,mean.t_eps,meanError.u2,meanError_y,noise.actualGlobalSeed,noise.enableNoise,noise.fixedLocalSeed,noise.generateNoise,noise.localSeed,noise.samplePeriod,noise.startTime,noise.useAutomaticLocalSeed,noise.useGlobalSeed,noise.y_max,noise.y_min,noise.y_off,pMean,sigmaError.u2,sigmaError_y,standardDeviation.t_eps,standardDeviation.variance.mu,standardDeviation.variance.t_0,standardDeviation.variance.t_eps,standardDeviation.variance.var,std,theoreticalMean.k,theoreticalMean.y,theoreticalSigma.k,theoreticalSigma.y,theoreticalVariance.significantDigits,theoreticalVariance.u[1],theoreticalVariance.u[2],time,var,variance.mu,variance.t_0,variance.t_eps,variance.var,y_max,y_min