Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.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.NormalNoiseProperties,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.NormalNoiseProperties") translateModel(Modelica.Blocks.Examples.Noise.NormalNoiseProperties,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.NormalNoiseProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001301/0.001301, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 207.6 kB / 19.41 MB, free: 3.645 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.392/1.392, allocations: 227.7 MB / 247.9 MB, free: 10.18 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.001853/0.001853, allocations: 59.91 kB / 359.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.217, allocations: 50.55 MB / 410.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.NormalNoiseProperties): time 0.003034/0.22, allocations: 1.869 MB / 412.1 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.2222, allocations: 1.313 MB / 413.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.753e-05/0.2223, allocations: 0 / 413.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.2224, allocations: 19.73 kB / 413.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.2225, allocations: 31.73 kB / 413.5 MB, free: 14.18 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.0007771/0.2233, allocations: 307.1 kB / 413.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.2235, allocations: 219.5 kB / 414 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.2237, allocations: 56.2 kB / 414 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.2238, allocations: 99.61 kB / 414.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005276/0.2243, allocations: 119.5 kB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.914e-05/0.2244, allocations: 24 kB / 414.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004266/0.2248, allocations: 279.5 kB / 414.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.373e-05/0.2249, allocations: 51.83 kB / 414.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.225, allocations: 99.45 kB / 414.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005385/0.2255, allocations: 398.5 kB / 415.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2255, allocations: 0 / 415.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2255, allocations: 0 / 415.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.2255, allocations: 3.938 kB / 415.1 MB, free: 12.55 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.2266, allocations: 0.5812 MB / 415.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.2267, allocations: 15.97 kB / 415.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002241/0.2269, allocations: 36.73 kB / 415.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.2272, allocations: 240.9 kB / 415.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.2272, allocations: 12.66 kB / 416 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.2272, allocations: 24.12 kB / 416 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/0.2277, allocations: 198.9 kB / 416.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.2277, allocations: 0 / 416.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.2278, allocations: 4 kB / 416.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.2278, allocations: 4 kB / 416.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.2283, allocations: 160.4 kB / 416.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.2293, allocations: 0.5672 MB / 416.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.2304, allocations: 298.7 kB / 417.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.2307, allocations: 112.7 kB / 417.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.2308, allocations: 4 kB / 417.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004144/0.2312, allocations: 164.8 kB / 417.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.2312, allocations: 0 / 417.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001055/0.2322, allocations: 360.2 kB / 417.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.2323, allocations: 55.41 kB / 417.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.2325, allocations: 230.7 kB / 418.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.2326, allocations: 33.7 kB / 418.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.618e-05/0.2327, allocations: 136.6 kB / 418.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.476e-05/0.2327, allocations: 71.42 kB / 418.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.2328, allocations: 77.56 kB / 418.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.233, allocations: 334.8 kB / 418.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/0.2334, allocations: 127.9 kB / 418.9 MB, free: 8.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.2338, allocations: 169.7 kB / 419 MB, free: 8.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006847/0.2344, allocations: 275.2 kB / 419.3 MB, free: 8.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2344, allocations: 0 / 419.3 MB, free: 8.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000884/0.2353, allocations: 371.8 kB / 419.7 MB, free: 7.727 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.2353, allocations: 11.44 kB / 419.7 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2353, allocations: 4.031 kB / 419.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.2354, allocations: 0 / 419.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.2357, allocations: 71.88 kB / 419.7 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.2357, allocations: 4 kB / 419.8 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.2359, allocations: 47.75 kB / 419.8 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.2359, allocations: 8 kB / 419.8 MB, free: 7.586 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.0001644/0.2361, allocations: 161.5 kB / 420 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.647e-05/0.2361, allocations: 19.86 kB / 420 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.903e-05/0.2362, allocations: 17.88 kB / 420 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2362, allocations: 3.938 kB / 420 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2362, allocations: 3.984 kB / 420 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2362, allocations: 0 / 420 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.2373, allocations: 0.6229 MB / 420.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2373, allocations: 0 / 420.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.2376, allocations: 43.95 kB / 420.7 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2376, allocations: 0 / 420.7 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.2376, allocations: 11.98 kB / 420.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2376, allocations: 4 kB / 420.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2376, allocations: 0 / 420.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.2387, allocations: 483 kB / 421.2 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/0.2388, allocations: 105 kB / 421.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.845e-05/0.2389, allocations: 7.938 kB / 421.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.2391, allocations: 23.97 kB / 421.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.2391, allocations: 7.984 kB / 421.3 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.2391, allocations: 12 kB / 421.3 MB, free: 5.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000154/0.2393, allocations: 156.7 kB / 421.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2393, allocations: 4 kB / 421.5 MB, free: 5.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004054/0.2397, allocations: 99.73 kB / 421.6 MB, free: 5.719 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.0006161/0.2403, allocations: 263.5 kB / 421.8 MB, free: 5.477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007842/0.2411, allocations: 263.8 kB / 422.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2411, allocations: 0 / 422.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003394/0.2414, allocations: 103.9 kB / 422.2 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.2417, allocations: 34.53 kB / 422.2 MB, free: 5.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009383/0.2427, allocations: 469.8 kB / 422.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.243, allocations: 0.7514 MB / 423.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.2432, allocations: 33.92 kB / 423.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.036e-05/0.2432, allocations: 23.44 kB / 423.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2432, allocations: 0 / 423.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of Templates: time 0.007954/0.2512, allocations: 3.629 MB / 427.1 MB, free: 168 kB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/NormalNoiseProperties/NormalNoiseProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.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,mu,noise.actualGlobalSeed,noise.enableNoise,noise.fixedLocalSeed,noise.generateNoise,noise.localSeed,noise.mu,noise.samplePeriod,noise.sigma,noise.startTime,noise.useAutomaticLocalSeed,noise.useGlobalSeed,noise.y_off,pMean,sigma,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