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.001523/0.001523, allocations: 117.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001741/0.001741, allocations: 208.6 kB / 18.79 MB, free: 4.309 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.567/1.567, allocations: 230.4 MB / 250 MB, free: 9.008 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.001789/0.001789, allocations: 67.83 kB / 367.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2906, allocations: 53.31 MB / 420.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoiseProperties): time 0.00318/0.2938, allocations: 1.874 MB / 422.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.2958, allocations: 1.021 MB / 423.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.827e-05/0.2959, allocations: 4 kB / 423.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.296, allocations: 19.73 kB / 423.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.2962, allocations: 35.7 kB / 423.6 MB, free: 5.363 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.0005472/0.2967, allocations: 183.5 kB / 423.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002606/0.297, allocations: 227.4 kB / 424 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.2971, allocations: 48.28 kB / 424.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.2973, allocations: 99.61 kB / 424.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005855/0.2979, allocations: 126.9 kB / 424.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/0.2979, allocations: 20 kB / 424.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002523/0.2981, allocations: 127.8 kB / 424.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.657e-05/0.2982, allocations: 63.81 kB / 424.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.2983, allocations: 99.39 kB / 424.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004419/0.2988, allocations: 290.9 kB / 424.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2988, allocations: 3.938 kB / 424.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2988, allocations: 4 kB / 424.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.2988, allocations: 4 kB / 424.9 MB, free: 4.094 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.001095/0.2999, allocations: 0.5618 MB / 425.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.2999, allocations: 8.031 kB / 425.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.3001, allocations: 44.73 kB / 425.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.3004, allocations: 240.9 kB / 425.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.3004, allocations: 12.66 kB / 425.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.119e-05/0.3005, allocations: 28.06 kB / 425.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004896/0.301, allocations: 194.9 kB / 426 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.301, allocations: 0 / 426 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.301, allocations: 4 kB / 426 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.301, allocations: 8 kB / 426 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004991/0.3015, allocations: 156.4 kB / 426.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.3026, allocations: 0.5789 MB / 426.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.3036, allocations: 294.7 kB / 427 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000306/0.3039, allocations: 119.7 kB / 427.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.3039, allocations: 3.938 kB / 427.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004055/0.3043, allocations: 159.3 kB / 427.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.3043, allocations: 0 / 427.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001046/0.3053, allocations: 357.4 kB / 427.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.3054, allocations: 63.41 kB / 427.7 MB, free: 1.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002532/0.3056, allocations: 218.7 kB / 427.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.3057, allocations: 49.67 kB / 428 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.3058, allocations: 132.6 kB / 428.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.628e-05/0.3059, allocations: 67.42 kB / 428.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.306, allocations: 77.64 kB / 428.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3062, allocations: 330.8 kB / 428.5 MB, free: 228 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/0.3066, allocations: 131.9 kB / 428.7 MB, free: 96 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004014/0.307, allocations: 169.7 kB / 428.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006646/0.3076, allocations: 267.3 kB / 429.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3076, allocations: 0 / 429.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008667/0.3085, allocations: 379.8 kB / 429.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3085, allocations: 7.938 kB / 429.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3085, allocations: 0 / 429.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.3085, allocations: 4 kB / 429.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.3089, allocations: 71.88 kB / 429.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.3089, allocations: 4 kB / 429.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.3091, allocations: 43.75 kB / 429.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.3091, allocations: 11.98 kB / 429.6 MB, free: 15.14 MB / 350.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.0001719/0.3093, allocations: 153.6 kB / 429.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.434e-05/0.3093, allocations: 19.86 kB / 429.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.353e-05/0.3094, allocations: 17.88 kB / 429.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3094, allocations: 0 / 429.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3094, allocations: 7.984 kB / 429.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3094, allocations: 4 kB / 429.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.3106, allocations: 0.6191 MB / 430.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3106, allocations: 0 / 430.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/0.3108, allocations: 43.95 kB / 430.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3108, allocations: 0 / 430.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.3109, allocations: 11.98 kB / 430.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.3109, allocations: 0 / 430.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3109, allocations: 0 / 430.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.312, allocations: 483 kB / 431 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.253e-05/0.312, allocations: 100.8 kB / 431.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.069e-05/0.3121, allocations: 16 kB / 431.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.3123, allocations: 19.97 kB / 431.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.299e-05/0.3123, allocations: 15.98 kB / 431.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.3123, allocations: 8.109 kB / 431.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.3125, allocations: 156.7 kB / 431.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3125, allocations: 0 / 431.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.3129, allocations: 67.86 kB / 431.3 MB, free: 13.31 MB / 350.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.0004651/0.3134, allocations: 200.8 kB / 431.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008111/0.3142, allocations: 263.8 kB / 431.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3142, allocations: 0 / 431.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00032/0.3145, allocations: 106.8 kB / 431.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.3148, allocations: 39.92 kB / 431.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009472/0.3158, allocations: 461.8 kB / 432.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.3161, allocations: 0.7437 MB / 433.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.3162, allocations: 25.95 kB / 433.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.185e-05/0.3163, allocations: 23.42 kB / 433.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3163, allocations: 4 kB / 433.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of Templates: time 0.006847/0.3231, allocations: 2.949 MB / 436.1 MB, free: 8.508 MB / 350.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/UniformNoiseProperties/UniformNoiseProperties.csv","/var/lib/jenkins/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