Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.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_trunk_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_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008532/0.0008532, allocations: 92.11 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001028, allocations: 202.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.7 MB / 246.8 MB, free: 9.754 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002966/0.0002965, allocations: 8 kB / 307.7 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1356, allocations: 51.53 MB / 359.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.NormalNoiseProperties): time 0.002407/0.138, allocations: 1.579 MB / 360.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.1406, allocations: 1.306 MB / 362.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.1407, allocations: 4 kB / 362.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.1409, allocations: 15.8 kB / 362.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001471/0.141, allocations: 15.84 kB / 362.2 MB, free: 10.13 MB / 302.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.0008376/0.1419, allocations: 255.5 kB / 362.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.1421, allocations: 207.4 kB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.1423, allocations: 56.27 kB / 362.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.1424, allocations: 83.61 kB / 362.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006279/0.1431, allocations: 105.9 kB / 362.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.1431, allocations: 12 kB / 362.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004928/0.1436, allocations: 295.4 kB / 363.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.621e-05/0.1437, allocations: 35.84 kB / 363.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.1438, allocations: 113.1 kB / 363.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004975/0.1443, allocations: 379.1 kB / 363.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1443, allocations: 4 kB / 363.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1444, allocations: 4 kB / 363.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.1444, allocations: 0 / 363.7 MB, free: 8.613 MB / 302.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.001328/0.1457, allocations: 0.5623 MB / 364.3 MB, free: 8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.1458, allocations: 8.031 kB / 364.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002719/0.1461, allocations: 32.66 kB / 364.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004475/0.1465, allocations: 239.8 kB / 364.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.1466, allocations: 16.66 kB / 364.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.573e-05/0.1466, allocations: 36 kB / 364.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005733/0.1472, allocations: 218.7 kB / 364.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1472, allocations: 0 / 364.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.1473, allocations: 4 kB / 364.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.1473, allocations: 4 kB / 364.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005467/0.1478, allocations: 189.2 kB / 365 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1491, allocations: 0.5828 MB / 365.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.1504, allocations: 370.6 kB / 365.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003388/0.1507, allocations: 135.5 kB / 366.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.1508, allocations: 7.938 kB / 366.1 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004512/0.1512, allocations: 202.1 kB / 366.3 MB, free: 5.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.823e-06/0.1512, allocations: 0 / 366.3 MB, free: 5.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001175/0.1524, allocations: 413.2 kB / 366.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.1525, allocations: 55.41 kB / 366.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.1528, allocations: 222.7 kB / 367 MB, free: 5.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.1528, allocations: 37.7 kB / 367 MB, free: 5.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.153, allocations: 136.5 kB / 367.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.844e-05/0.1531, allocations: 67.02 kB / 367.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-05/0.1532, allocations: 45.69 kB / 367.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.1534, allocations: 334.8 kB / 367.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003776/0.1538, allocations: 147.9 kB / 367.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004027/0.1542, allocations: 177.6 kB / 367.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007499/0.1549, allocations: 315.2 kB / 368.2 MB, free: 3.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1549, allocations: 0 / 368.2 MB, free: 3.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009494/0.1559, allocations: 415.8 kB / 368.6 MB, free: 3.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.1559, allocations: 6.344 kB / 368.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.156, allocations: 4 kB / 368.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.156, allocations: 0 / 368.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/0.1563, allocations: 91.88 kB / 368.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1564, allocations: 0 / 368.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.1566, allocations: 51.66 kB / 368.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.1566, allocations: 12 kB / 368.8 MB, free: 3.32 MB / 302.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.0002192/0.1568, allocations: 149.6 kB / 368.9 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.73e-05/0.1569, allocations: 19.81 kB / 368.9 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.125e-05/0.157, allocations: 25.81 kB / 369 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.157, allocations: 7.922 kB / 369 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.157, allocations: 0 / 369 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.157, allocations: 0 / 369 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.1582, allocations: 0.6582 MB / 369.6 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.1582, allocations: 3.984 kB / 369.6 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.1585, allocations: 51.91 kB / 369.7 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.1585, allocations: 4 kB / 369.7 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1585, allocations: 7.984 kB / 369.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.1585, allocations: 0 / 369.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1585, allocations: 0 / 369.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.1597, allocations: 0.5343 MB / 370.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.686e-05/0.1597, allocations: 92.91 kB / 370.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.1598, allocations: 16 kB / 370.3 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.16, allocations: 27.97 kB / 370.4 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/0.1601, allocations: 15.98 kB / 370.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.1601, allocations: 7.984 kB / 370.4 MB, free: 1.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001331/0.1602, allocations: 152.7 kB / 370.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1602, allocations: 3.938 kB / 370.5 MB, free: 1.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004987/0.1608, allocations: 107.8 kB / 370.6 MB, free: 1.344 MB / 302.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.0006909/0.1615, allocations: 264.2 kB / 370.9 MB, free: 1.102 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008285/0.1623, allocations: 315.8 kB / 371.2 MB, free: 0.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1623, allocations: 4.062 kB / 371.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.1627, allocations: 127.8 kB / 371.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.163, allocations: 35.88 kB / 371.4 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.1642, allocations: 0.5426 MB / 371.9 MB, free: 64 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2184/0.3826, allocations: 0.7345 MB / 372.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00028/0.3829, allocations: 30.33 kB / 372.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.983e-05/0.383, allocations: 26.39 kB / 372.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3831, allocations: 0.7188 kB / 372.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of Templates: time 0.01094/0.394, allocations: 3.404 MB / 376.1 MB, free: 18.34 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/NormalNoiseProperties/NormalNoiseProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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