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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.NormalNoiseProperties,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_NormalNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.NormalNoiseProperties,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_NormalNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008211/0.0008212, allocations: 91.66 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.0009776/0.0009776, allocations: 204.2 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.235/1.235, allocations: 227.7 MB / 246.8 MB, free: 11.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001888/0.0001888, allocations: 4 kB / 307.8 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07909/0.07929, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.NormalNoiseProperties): time 0.001746/0.08107, allocations: 1.583 MB / 360.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.08287, allocations: 1.306 MB / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.681e-05/0.08295, allocations: 0 / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.111e-05/0.08306, allocations: 15.86 kB / 362.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.08318, allocations: 19.86 kB / 362.3 MB, free: 10.23 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.0005909/0.08378, allocations: 255.4 kB / 362.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000178/0.08396, allocations: 199.5 kB / 362.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.0841, allocations: 72.23 kB / 362.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.06e-05/0.08419, allocations: 71.64 kB / 362.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004637/0.08466, allocations: 113 kB / 363 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.0847, allocations: 8 kB / 363 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003895/0.08509, allocations: 303.4 kB / 363.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.718e-05/0.08515, allocations: 35.84 kB / 363.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.694e-05/0.08525, allocations: 117.1 kB / 363.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.08565, allocations: 375.1 kB / 363.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.08567, allocations: 0 / 363.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.08567, allocations: 4 kB / 363.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.08568, allocations: 0 / 363.8 MB, free: 8.715 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.0009661/0.08665, allocations: 0.5624 MB / 364.4 MB, free: 8.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.0867, allocations: 12.03 kB / 364.4 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.871e-05/0.08678, allocations: 54.64 kB / 364.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.08697, allocations: 32.64 kB / 364.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.08719, allocations: 243.8 kB / 364.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.08722, allocations: 16.38 kB / 364.7 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.976e-05/0.08727, allocations: 27.88 kB / 364.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004737/0.08775, allocations: 222.5 kB / 365 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.08776, allocations: 0 / 365 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.08779, allocations: 12 kB / 365 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.0878, allocations: 0 / 365 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004963/0.0883, allocations: 196.2 kB / 365.2 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009599/0.08927, allocations: 0.6057 MB / 365.8 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.09034, allocations: 378.7 kB / 366.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003191/0.09067, allocations: 128.8 kB / 366.3 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.0907, allocations: 0 / 366.3 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003905/0.09109, allocations: 183.2 kB / 366.4 MB, free: 5.891 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.09111, allocations: 4 kB / 366.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001002/0.09211, allocations: 409.1 kB / 366.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.09216, allocations: 67.38 kB / 366.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.09236, allocations: 222.6 kB / 367.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.0924, allocations: 41.69 kB / 367.2 MB, free: 5.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.293e-05/0.09248, allocations: 128.5 kB / 367.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.385e-05/0.09254, allocations: 71 kB / 367.4 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.09259, allocations: 37.7 kB / 367.4 MB, free: 4.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.0927, allocations: 338.8 kB / 367.7 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003549/0.09306, allocations: 151.8 kB / 367.9 MB, free: 4.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003778/0.09345, allocations: 189.3 kB / 368.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006604/0.09412, allocations: 307.3 kB / 368.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.09413, allocations: 0 / 368.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000832/0.09497, allocations: 414.1 kB / 368.8 MB, free: 3.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.09499, allocations: 7.938 kB / 368.8 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.095, allocations: 0 / 368.8 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.09502, allocations: 8 kB / 368.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002937/0.09532, allocations: 71.89 kB / 368.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.09533, allocations: 4 kB / 368.9 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.09552, allocations: 63.64 kB / 368.9 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.09555, allocations: 11.98 kB / 368.9 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.0001245/0.09568, allocations: 146.7 kB / 369.1 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.662e-05/0.09571, allocations: 15.81 kB / 369.1 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.445e-05/0.09577, allocations: 21.86 kB / 369.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.09578, allocations: 8 kB / 369.1 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.09579, allocations: 0 / 369.1 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.0958, allocations: 0 / 369.1 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.09683, allocations: 0.6694 MB / 369.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.09684, allocations: 0 / 369.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.09708, allocations: 47.95 kB / 369.8 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.0971, allocations: 8 kB / 369.8 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.09712, allocations: 7.984 kB / 369.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.09713, allocations: 0 / 369.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.09713, allocations: 0 / 369.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.09817, allocations: 0.534 MB / 370.4 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.304e-05/0.09823, allocations: 96.8 kB / 370.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/0.09827, allocations: 12.05 kB / 370.5 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.09847, allocations: 23.98 kB / 370.5 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.09852, allocations: 23.95 kB / 370.5 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.09854, allocations: 8 kB / 370.6 MB, free: 1.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001278/0.09868, allocations: 156.7 kB / 370.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09868, allocations: 0 / 370.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000385/0.09907, allocations: 107.9 kB / 370.8 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.001736/0.1008, allocations: 1.228 MB / 372 MB, free: 116 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1348/0.2357, allocations: 312.8 kB / 372.3 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.2357, allocations: 0 / 372.3 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000367/0.2361, allocations: 134.5 kB / 372.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.2364, allocations: 34.53 kB / 372.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003899/0.2403, allocations: 2.991 MB / 375.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001524/0.2405, allocations: 0.7471 MB / 376.2 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.2406, allocations: 29.19 kB / 376.3 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.2408, allocations: 67.86 kB / 376.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2408, allocations: 0 / 376.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01603/0.2568, allocations: 5.586 MB / 381.9 MB, free: 16.73 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001371/0.257, allocations: 247.6 kB / 382.2 MB, free: 16.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/2.005, allocations: 0 / 382.2 MB, free: 16.48 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_NormalNoiseProperties_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-09 Modelica_trunk_Modelica_Blocks_Examples_Noise_NormalNoiseProperties.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.NormalNoiseProperties_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/NormalNoiseProperties/NormalNoiseProperties.csv","/var/lib/jenkins1/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:der(mean.mu),der(standardDeviation.variance.mu),der(standardDeviation.variance.var),der(variance.mu),der(variance.var),globalSeed.enableNoise,globalSeed.fixedSeed,globalSeed.id_impure,globalSeed.seed,globalSeed.useAutomaticSeed,mean.mu,mean.startTime,mean.t_eps,mean.u,mean.y,meanError.u1,meanError.u2,meanError.y,meanError_y,mu,noise.enableNoise,noise.fixedLocalSeed,noise.localSeed,noise.mu,noise.samplePeriod,noise.sigma,noise.startTime,noise.useAutomaticLocalSeed,noise.useGlobalSeed,noise.y,noise.y_off,pMean,sigma,sigmaError.u1,sigmaError.u2,sigmaError.y,sigmaError_y,standardDeviation.sqrt1.u,standardDeviation.sqrt1.y,standardDeviation.t_eps,standardDeviation.u,standardDeviation.variance.mu,standardDeviation.variance.t_eps,standardDeviation.variance.u,standardDeviation.variance.var,standardDeviation.variance.y,standardDeviation.y,std,theoreticalMean.k,theoreticalMean.y,theoreticalSigma.k,theoreticalSigma.y,theoreticalVariance.nu,theoreticalVariance.significantDigits,theoreticalVariance.u[1],theoreticalVariance.u[2],theoreticalVariance.y,time,var,variance.mu,variance.t_eps,variance.u,variance.var,variance.y,varianceError.u1,varianceError.u2,varianceError.y