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.001313/0.001313, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001556/0.001556, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2906, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.NormalNoiseProperties): time 0.003282/0.2939, allocations: 1.878 MB / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.2961, allocations: 1.298 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.2962, allocations: 0 / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.807e-05/0.2963, allocations: 23.73 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.2964, allocations: 31.66 kB / 412 MB, free: 14.3 MB / 334.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.0008699/0.2973, allocations: 307.1 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.2976, allocations: 219.5 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.2977, allocations: 64.25 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.2979, allocations: 99.61 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005538/0.2984, allocations: 118.5 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.368e-05/0.2985, allocations: 20 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004377/0.2989, allocations: 279.5 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.425e-05/0.299, allocations: 59.81 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.82e-05/0.2991, allocations: 107.4 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004913/0.2996, allocations: 384.6 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2996, allocations: 3.938 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2996, allocations: 4 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.2997, allocations: 0 / 413.6 MB, free: 12.67 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.0009735/0.3006, allocations: 0.574 MB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.86e-05/0.3007, allocations: 8.031 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.879e-05/0.3008, allocations: 58.67 kB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001997/0.301, allocations: 36.58 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.3012, allocations: 244.7 kB / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.3012, allocations: 12.38 kB / 414.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.957e-05/0.3013, allocations: 27.88 kB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.3018, allocations: 214.2 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3018, allocations: 4 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.3018, allocations: 4 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.3018, allocations: 4 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004902/0.3023, allocations: 160 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3033, allocations: 0.5903 MB / 415.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.3044, allocations: 294.7 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.3047, allocations: 112.8 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.3047, allocations: 7.984 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000423/0.3052, allocations: 171.2 kB / 416.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.3052, allocations: 0 / 416.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001036/0.3062, allocations: 356.3 kB / 416.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.3063, allocations: 59.41 kB / 416.5 MB, free: 9.574 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.3065, allocations: 218.8 kB / 416.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.3065, allocations: 37.7 kB / 416.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.605e-05/0.3066, allocations: 132.4 kB / 416.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.662e-05/0.3067, allocations: 63.11 kB / 417 MB, free: 9.109 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.3068, allocations: 77.66 kB / 417 MB, free: 9.027 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.3069, allocations: 342.7 kB / 417.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.3073, allocations: 127.9 kB / 417.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/0.3077, allocations: 165.5 kB / 417.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006656/0.3084, allocations: 271.2 kB / 417.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3084, allocations: 0 / 417.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008734/0.3093, allocations: 377.8 kB / 418.3 MB, free: 7.746 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3093, allocations: 4 kB / 418.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3093, allocations: 0 / 418.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.3093, allocations: 4 kB / 418.3 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003094/0.3096, allocations: 71.91 kB / 418.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.3096, allocations: 4 kB / 418.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001835/0.3098, allocations: 43.66 kB / 418.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.418e-05/0.3099, allocations: 8 kB / 418.4 MB, free: 7.613 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.0001411/0.31, allocations: 145.7 kB / 418.6 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.3101, allocations: 23.72 kB / 418.6 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.798e-05/0.3101, allocations: 21.88 kB / 418.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3101, allocations: 0 / 418.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3102, allocations: 0 / 418.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.3102, allocations: 7.984 kB / 418.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.3113, allocations: 0.623 MB / 419.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.3113, allocations: 0 / 419.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.3115, allocations: 35.97 kB / 419.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.3116, allocations: 7.938 kB / 419.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.3116, allocations: 7.984 kB / 419.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3116, allocations: 0 / 419.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3116, allocations: 0 / 419.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.3127, allocations: 494.2 kB / 419.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.386e-05/0.3127, allocations: 104.8 kB / 419.9 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/0.3128, allocations: 12.06 kB / 419.9 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.313, allocations: 20.03 kB / 419.9 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.579e-05/0.3131, allocations: 15.98 kB / 419.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.3131, allocations: 4 kB / 419.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.3132, allocations: 156.7 kB / 420.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3132, allocations: 0 / 420.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004383/0.3137, allocations: 111.9 kB / 420.2 MB, free: 5.746 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.001854/0.3155, allocations: 1.166 MB / 421.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007823/0.3163, allocations: 283.7 kB / 421.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.3164, allocations: 0 / 421.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003178/0.3167, allocations: 115.8 kB / 421.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.317, allocations: 22.19 kB / 421.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004378/0.3214, allocations: 2.817 MB / 424.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.3217, allocations: 0.7437 MB / 425.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.3219, allocations: 29.94 kB / 425.4 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.322, allocations: 71.41 kB / 425.4 MB, free: 404 kB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.322, allocations: 0 / 425.4 MB, free: 404 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.3501, allocations: 6.126 MB / 431.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.27/8.62, allocations: 7.938 kB / 431.6 MB, free: 10.36 MB / 350.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