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.001141/0.001141, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 70.47 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09816/0.09968, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.NormalNoiseProperties): time 0.003634/0.1034, allocations: 1.859 MB / 359.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.1059, allocations: 1.306 MB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.1061, allocations: 4 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.1063, allocations: 15.75 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001979/0.1065, allocations: 31.72 kB / 360.8 MB, free: 10.75 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.001183/0.1077, allocations: 311.1 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000337/0.1081, allocations: 219.4 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.1083, allocations: 64.25 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.1085, allocations: 95.62 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006672/0.1092, allocations: 124.8 kB / 361.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.944e-05/0.1093, allocations: 24 kB / 361.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005829/0.1099, allocations: 279.5 kB / 361.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.11, allocations: 59.81 kB / 361.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.1101, allocations: 99.41 kB / 362 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006977/0.1108, allocations: 387.2 kB / 362.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1108, allocations: 0 / 362.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1108, allocations: 0 / 362.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.1109, allocations: 4 kB / 362.4 MB, free: 9.125 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.001232/0.1121, allocations: 0.5739 MB / 363 MB, free: 8.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.1122, allocations: 8.031 kB / 363 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.218e-05/0.1122, allocations: 58.62 kB / 363.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.1125, allocations: 28.66 kB / 363.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.1128, allocations: 247.8 kB / 363.3 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.1129, allocations: 16.31 kB / 363.4 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.347e-05/0.1129, allocations: 35.91 kB / 363.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.1135, allocations: 202.5 kB / 363.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1135, allocations: 0 / 363.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1135, allocations: 4 kB / 363.6 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.1135, allocations: 4 kB / 363.6 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005191/0.1141, allocations: 168 kB / 363.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.1152, allocations: 0.5862 MB / 364.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.1163, allocations: 302.7 kB / 364.6 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003066/0.1166, allocations: 112.7 kB / 364.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.1167, allocations: 4 kB / 364.8 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000393/0.1171, allocations: 174.5 kB / 364.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.194e-06/0.1171, allocations: 0 / 364.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001076/0.1182, allocations: 357.1 kB / 365.3 MB, free: 6.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.1182, allocations: 59.39 kB / 365.3 MB, free: 6.027 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.1185, allocations: 226.6 kB / 365.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.1185, allocations: 37.69 kB / 365.6 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.361e-05/0.1186, allocations: 132.5 kB / 365.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.67e-05/0.1187, allocations: 70.95 kB / 365.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1188, allocations: 65.69 kB / 365.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1189, allocations: 342.8 kB / 366.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003664/0.1193, allocations: 135.9 kB / 366.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003807/0.1197, allocations: 157.4 kB / 366.5 MB, free: 4.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006724/0.1204, allocations: 267.3 kB / 366.7 MB, free: 4.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1204, allocations: 4 kB / 366.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008485/0.1213, allocations: 373.8 kB / 367.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1213, allocations: 8 kB / 367.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1213, allocations: 0 / 367.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.1213, allocations: 0 / 367.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/0.1216, allocations: 79.91 kB / 367.2 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.1217, allocations: 0 / 367.2 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.1219, allocations: 39.72 kB / 367.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.008e-05/0.1219, allocations: 15.98 kB / 367.2 MB, free: 4.055 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.0001474/0.1221, allocations: 142.8 kB / 367.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.1221, allocations: 23.75 kB / 367.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.029e-05/0.1222, allocations: 21.86 kB / 367.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1222, allocations: 4 kB / 367.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1222, allocations: 0 / 367.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1222, allocations: 0 / 367.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.1233, allocations: 0.6307 MB / 368.1 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1233, allocations: 0 / 368.1 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002526/0.1236, allocations: 43.95 kB / 368.1 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.1236, allocations: 0 / 368.1 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.1236, allocations: 11.98 kB / 368.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1236, allocations: 0 / 368.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1237, allocations: 0 / 368.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.1247, allocations: 489.9 kB / 368.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.1248, allocations: 96.8 kB / 368.7 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.1248, allocations: 12.05 kB / 368.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.125, allocations: 15.98 kB / 368.7 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.1251, allocations: 19.97 kB / 368.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.1251, allocations: 4 kB / 368.7 MB, free: 2.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001286/0.1252, allocations: 160.7 kB / 368.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1252, allocations: 0 / 368.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004304/0.1257, allocations: 107.9 kB / 369 MB, free: 2.191 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.001805/0.1275, allocations: 1.166 MB / 370.2 MB, free: 1.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008125/0.1283, allocations: 295.5 kB / 370.5 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1283, allocations: 3.938 kB / 370.5 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.1287, allocations: 111.9 kB / 370.6 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.129, allocations: 31.92 kB / 370.6 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1734/0.3024, allocations: 2.803 MB / 373.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.3027, allocations: 0.7412 MB / 374.1 MB, free: 18.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.3028, allocations: 30.09 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.303, allocations: 73.47 kB / 374.2 MB, free: 18.27 MB / 302.1 MB Notification: Performance of SimCode: time 9.81e-07/0.303, allocations: 0 / 374.2 MB, free: 18.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03675/0.3398, allocations: 5.959 MB / 380.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.47, allocations: 7.203 kB / 380.2 MB, free: 17.66 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