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.001456/0.001461, allocations: 102.8 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.001729/0.001729, 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.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001568, allocations: 58.61 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1244, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoiseProperties): time 0.00605/0.1305, allocations: 1.864 MB / 359.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002738/0.1333, allocations: 1.013 MB / 360.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.1335, allocations: 0 / 360.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00023/0.1338, allocations: 23.73 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003128/0.1342, allocations: 31.72 kB / 360.5 MB, free: 11.04 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.000842/0.135, allocations: 187.4 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000348/0.1354, allocations: 223.4 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002785/0.1357, allocations: 68.25 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.1359, allocations: 95.61 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009295/0.1368, allocations: 125 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.972e-05/0.1369, allocations: 20 kB / 361.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002554/0.1372, allocations: 123.8 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.769e-05/0.1373, allocations: 55.81 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.1374, allocations: 107.4 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.1379, allocations: 291.4 kB / 361.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.1379, allocations: 0 / 361.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1379, allocations: 0 / 361.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.1379, allocations: 4 kB / 361.8 MB, free: 9.777 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.001479/0.1394, allocations: 0.5506 MB / 362.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/0.1395, allocations: 12.03 kB / 362.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.1396, allocations: 50.64 kB / 362.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003199/0.1399, allocations: 36.64 kB / 362.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000359/0.1403, allocations: 243.8 kB / 362.7 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/0.1404, allocations: 12.38 kB / 362.7 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.713e-05/0.1404, allocations: 27.94 kB / 362.7 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007493/0.1412, allocations: 202.5 kB / 362.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.1412, allocations: 3.938 kB / 362.9 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.1413, allocations: 8 kB / 362.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.1413, allocations: 4 kB / 362.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005809/0.1419, allocations: 160 kB / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.1432, allocations: 0.5901 MB / 363.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.1444, allocations: 302.7 kB / 364 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003234/0.1447, allocations: 116.8 kB / 364.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.1447, allocations: 3.984 kB / 364.1 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000459/0.1452, allocations: 167.3 kB / 364.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.415e-06/0.1452, allocations: 3.938 kB / 364.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001379/0.1466, allocations: 357.1 kB / 364.6 MB, free: 6.777 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.1467, allocations: 63.41 kB / 364.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.147, allocations: 218.6 kB / 364.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.579e-05/0.147, allocations: 45.69 kB / 364.9 MB, free: 6.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1472, allocations: 136.5 kB / 365.1 MB, free: 6.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.912e-05/0.1472, allocations: 67 kB / 365.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.1474, allocations: 69.69 kB / 365.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1475, allocations: 334.8 kB / 365.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003917/0.1479, allocations: 131.8 kB / 365.6 MB, free: 5.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004032/0.1483, allocations: 177.3 kB / 365.8 MB, free: 5.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007072/0.1491, allocations: 271.2 kB / 366.1 MB, free: 5.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1491, allocations: 0 / 366.1 MB, free: 5.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008816/0.15, allocations: 369.8 kB / 366.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.15, allocations: 8.031 kB / 366.5 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.15, allocations: 0 / 366.5 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.69e-05/0.1501, allocations: 4 kB / 366.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004419/0.1505, allocations: 71.88 kB / 366.5 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.1505, allocations: 4 kB / 366.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/0.1508, allocations: 39.72 kB / 366.6 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.403e-05/0.1508, allocations: 7.984 kB / 366.6 MB, free: 4.73 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.0001633/0.151, allocations: 154.8 kB / 366.7 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.683e-05/0.1511, allocations: 15.81 kB / 366.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.181e-05/0.1511, allocations: 21.86 kB / 366.8 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1512, allocations: 4 kB / 366.8 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1512, allocations: 0 / 366.8 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.1512, allocations: 0 / 366.8 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.1523, allocations: 0.6229 MB / 367.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1524, allocations: 0 / 367.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.1526, allocations: 43.91 kB / 367.4 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1526, allocations: 4 kB / 367.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.1527, allocations: 7.984 kB / 367.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.1527, allocations: 4 kB / 367.5 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1527, allocations: 0 / 367.5 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.1538, allocations: 482.3 kB / 367.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.066e-05/0.1538, allocations: 96.8 kB / 368 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.241e-05/0.1539, allocations: 12.05 kB / 368 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.1541, allocations: 23.92 kB / 368.1 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.1542, allocations: 19.91 kB / 368.1 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.1542, allocations: 4 kB / 368.1 MB, free: 3.129 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.1543, allocations: 160.7 kB / 368.2 MB, free: 2.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1544, allocations: 0 / 368.2 MB, free: 2.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000447/0.1548, allocations: 67.89 kB / 368.3 MB, free: 2.906 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.001819/0.1566, allocations: 1.1 MB / 369.4 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008184/0.1575, allocations: 291.6 kB / 369.7 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1575, allocations: 0 / 369.7 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003409/0.1578, allocations: 123.8 kB / 369.8 MB, free: 1.398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.1582, allocations: 27.95 kB / 369.8 MB, free: 1.371 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1715/0.3297, allocations: 2.797 MB / 372.6 MB, free: 19.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.33, allocations: 0.7385 MB / 373.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001905/0.3302, allocations: 36.91 kB / 373.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.3304, allocations: 71.06 kB / 373.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3304, allocations: 0 / 373.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04482/0.3752, allocations: 5.201 MB / 378.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.87, allocations: 8.078 kB / 378.7 MB, free: 17.77 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