Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.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.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001255/0.001255, 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.001326/0.001326, 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.35/1.35, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 59.48 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1092, allocations: 50.53 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoiseProperties): time 0.003453/0.1127, allocations: 1.937 MB / 358.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.1145, allocations: 1.021 MB / 359.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.461e-05/0.1146, allocations: 4 kB / 359.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.1148, allocations: 15.8 kB / 359.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.115, allocations: 19.84 kB / 359.9 MB, free: 11.38 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.0004834/0.1155, allocations: 151.7 kB / 360 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000215/0.1157, allocations: 211.4 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.1158, allocations: 64.25 kB / 360.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.586e-05/0.1159, allocations: 87.61 kB / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00053/0.1165, allocations: 115 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.588e-05/0.1165, allocations: 16 kB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.1167, allocations: 115.8 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.275e-05/0.1168, allocations: 47.81 kB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.965e-05/0.1169, allocations: 95.39 kB / 360.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.1172, allocations: 279.3 kB / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1173, allocations: 0 / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1173, allocations: 0 / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1173, allocations: 0 / 361 MB, free: 10.23 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.001113/0.1184, allocations: 0.5644 MB / 361.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1184, allocations: 8.031 kB / 361.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.962e-05/0.1185, allocations: 54.64 kB / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002036/0.1187, allocations: 36.64 kB / 361.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.119, allocations: 239.8 kB / 361.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.442e-05/0.119, allocations: 24.38 kB / 362 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.1191, allocations: 23.92 kB / 362 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005003/0.1196, allocations: 203.3 kB / 362.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1196, allocations: 0 / 362.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.1196, allocations: 8 kB / 362.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1197, allocations: 4 kB / 362.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005003/0.1202, allocations: 160.1 kB / 362.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.1212, allocations: 0.6019 MB / 362.9 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.1222, allocations: 294.7 kB / 363.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.1226, allocations: 112.8 kB / 363.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.1226, allocations: 4 kB / 363.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004105/0.123, allocations: 164.6 kB / 363.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.123, allocations: 8 kB / 363.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001013/0.124, allocations: 349.1 kB / 363.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.1241, allocations: 71.33 kB / 363.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.1243, allocations: 222.6 kB / 364.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.1244, allocations: 41.69 kB / 364.2 MB, free: 6.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.369e-05/0.1245, allocations: 128.5 kB / 364.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.008e-05/0.1245, allocations: 78.98 kB / 364.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.569e-05/0.1246, allocations: 61.69 kB / 364.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1248, allocations: 338.8 kB / 364.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.1251, allocations: 135.9 kB / 364.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000359/0.1255, allocations: 161.4 kB / 365.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006338/0.1261, allocations: 271.2 kB / 365.3 MB, free: 5.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1261, allocations: 0 / 365.3 MB, free: 5.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008048/0.1269, allocations: 377.8 kB / 365.7 MB, free: 5.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.127, allocations: 4 kB / 365.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.127, allocations: 4 kB / 365.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.127, allocations: 0 / 365.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003049/0.1273, allocations: 67.88 kB / 365.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1273, allocations: 8.031 kB / 365.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.1275, allocations: 43.66 kB / 365.8 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.1275, allocations: 12 kB / 365.8 MB, free: 5.172 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.0001528/0.1277, allocations: 146.7 kB / 366 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.402e-05/0.1277, allocations: 15.81 kB / 366 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.279e-05/0.1278, allocations: 21.88 kB / 366 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1278, allocations: 8 kB / 366 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1278, allocations: 0 / 366 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.1278, allocations: 3.984 kB / 366 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.1289, allocations: 0.6268 MB / 366.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1289, allocations: 0 / 366.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.1292, allocations: 47.89 kB / 366.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1292, allocations: 0 / 366.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.1292, allocations: 7.984 kB / 366.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.1292, allocations: 0 / 366.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1292, allocations: 0 / 366.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.1303, allocations: 490.3 kB / 367.2 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.1304, allocations: 100.8 kB / 367.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.1304, allocations: 8.062 kB / 367.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.1306, allocations: 20.09 kB / 367.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.207e-05/0.1307, allocations: 19.98 kB / 367.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.1307, allocations: 11.92 kB / 367.3 MB, free: 3.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001327/0.1308, allocations: 152.7 kB / 367.5 MB, free: 3.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1308, allocations: 0 / 367.5 MB, free: 3.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003427/0.1312, allocations: 63.89 kB / 367.6 MB, free: 3.348 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.001984/0.1332, allocations: 1.109 MB / 368.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.1344, allocations: 279.6 kB / 368.9 MB, free: 1.965 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1344, allocations: 0 / 368.9 MB, free: 1.965 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005295/0.135, allocations: 115.9 kB / 369.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005357/0.1355, allocations: 31.88 kB / 369.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1818/0.3174, allocations: 2.864 MB / 371.9 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.3176, allocations: 0.7394 MB / 372.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.3178, allocations: 30.09 kB / 372.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.3179, allocations: 67.58 kB / 372.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3179, allocations: 0 / 372.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.3379, allocations: 4.947 MB / 377.7 MB, free: 18.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.3382, allocations: 254.4 kB / 378 MB, free: 18.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.252, allocations: 0 / 378 MB, free: 18.07 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-09 Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoiseProperties.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoiseProperties/UniformNoiseProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.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,noise.enableNoise,noise.fixedLocalSeed,noise.localSeed,noise.samplePeriod,noise.startTime,noise.useAutomaticLocalSeed,noise.useGlobalSeed,noise.y,noise.y_max,noise.y_min,noise.y_off,pMean,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,y_max,y_min