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.001142/0.001142, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 63.69 kB / 306.4 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1067, allocations: 50.52 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.NormalNoiseProperties): time 0.002857/0.1096, allocations: 1.937 MB / 358.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.1116, allocations: 1.337 MB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.15e-05/0.1117, allocations: 4 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.1119, allocations: 7.875 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.112, allocations: 15.86 kB / 360.2 MB, free: 11.09 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.0006911/0.1127, allocations: 259.4 kB / 360.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001894/0.1129, allocations: 199.5 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.113, allocations: 72.19 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.493e-05/0.1131, allocations: 91.61 kB / 360.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005088/0.1136, allocations: 114.9 kB / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.567e-05/0.1137, allocations: 12 kB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004269/0.1141, allocations: 299.5 kB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.977e-05/0.1142, allocations: 51.81 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.547e-05/0.1143, allocations: 99.31 kB / 361.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004237/0.1147, allocations: 367.2 kB / 361.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1147, allocations: 4 kB / 361.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.1147, allocations: 0 / 361.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1148, allocations: 0 / 361.7 MB, free: 9.559 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.001069/0.1158, allocations: 0.5878 MB / 362.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.1159, allocations: 8.031 kB / 362.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.862e-05/0.116, allocations: 58.64 kB / 362.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002112/0.1162, allocations: 32.64 kB / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.1164, allocations: 243.8 kB / 362.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.1165, allocations: 16.31 kB / 362.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.233e-05/0.1165, allocations: 31.94 kB / 362.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005387/0.1171, allocations: 199.3 kB / 362.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1171, allocations: 0 / 362.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.1171, allocations: 4 kB / 362.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.1171, allocations: 4 kB / 362.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005143/0.1177, allocations: 160.2 kB / 363 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1188, allocations: 0.6018 MB / 363.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.1198, allocations: 298.7 kB / 363.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003082/0.1202, allocations: 116.8 kB / 364.1 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.1202, allocations: 3.938 kB / 364.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004141/0.1206, allocations: 166.8 kB / 364.2 MB, free: 6.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.1206, allocations: 4 kB / 364.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001038/0.1217, allocations: 349.1 kB / 364.6 MB, free: 6.531 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.1217, allocations: 59.41 kB / 364.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.1219, allocations: 230.6 kB / 364.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.122, allocations: 37.64 kB / 364.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.217e-05/0.1221, allocations: 128.5 kB / 365 MB, free: 6.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.459e-05/0.1222, allocations: 78.98 kB / 365.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1223, allocations: 65.69 kB / 365.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.1224, allocations: 338.8 kB / 365.5 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.1228, allocations: 131.9 kB / 365.6 MB, free: 5.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003623/0.1232, allocations: 161.4 kB / 365.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006458/0.1238, allocations: 275.2 kB / 366 MB, free: 4.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1238, allocations: 0 / 366 MB, free: 4.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008158/0.1246, allocations: 377.7 kB / 366.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1247, allocations: 4 kB / 366.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1247, allocations: 4 kB / 366.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.1247, allocations: 0 / 366.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.125, allocations: 67.88 kB / 366.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.125, allocations: 8.031 kB / 366.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.1252, allocations: 39.72 kB / 366.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.1252, allocations: 12 kB / 366.5 MB, free: 4.484 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.0001454/0.1254, allocations: 146.7 kB / 366.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.46e-05/0.1254, allocations: 15.81 kB / 366.7 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.157e-05/0.1255, allocations: 21.88 kB / 366.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.1255, allocations: 11.98 kB / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1255, allocations: 0 / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1255, allocations: 0 / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.1266, allocations: 0.6295 MB / 367.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1266, allocations: 0 / 367.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.1269, allocations: 43.95 kB / 367.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1269, allocations: 0 / 367.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.1269, allocations: 8 kB / 367.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1269, allocations: 0 / 367.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1269, allocations: 0 / 367.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.128, allocations: 481.7 kB / 367.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/0.128, allocations: 108.8 kB / 368 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.97e-05/0.1281, allocations: 4 kB / 368 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.1283, allocations: 24.09 kB / 368 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.954e-05/0.1284, allocations: 11.98 kB / 368 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.1284, allocations: 15.98 kB / 368 MB, free: 2.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001333/0.1285, allocations: 152.7 kB / 368.2 MB, free: 2.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1285, allocations: 0 / 368.2 MB, free: 2.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004384/0.129, allocations: 103.8 kB / 368.3 MB, free: 2.629 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.001791/0.1308, allocations: 1.183 MB / 369.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007382/0.1315, allocations: 279.6 kB / 369.7 MB, free: 1.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1315, allocations: 4.062 kB / 369.8 MB, free: 1.168 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000315/0.1319, allocations: 115.8 kB / 369.9 MB, free: 1.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.1322, allocations: 19.95 kB / 369.9 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1588/0.291, allocations: 2.87 MB / 372.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.2913, allocations: 0.7444 MB / 373.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001619/0.2915, allocations: 31.23 kB / 373.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.2916, allocations: 68.66 kB / 373.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of SimCode: time 6.92e-07/0.2916, allocations: 0 / 373.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.3096, allocations: 5.705 MB / 379.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/0.3098, allocations: 251 kB / 379.5 MB, free: 17.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.241, allocations: 0 / 379.5 MB, free: 17.69 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