Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000976/0.0009759, allocations: 194 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007856/0.0007857, allocations: 99.17 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002346/0.0002346, allocations: 7.984 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1941, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001104/0.1953, allocations: 1.078 MB / 409.2 MB, free: 26.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005886/0.1959, allocations: 337 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.044e-05/0.1959, allocations: 0 / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.1959, allocations: 0 / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.197e-05/0.196, allocations: 11.88 kB / 409.6 MB, free: 26.28 MB / 298.7 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.0003872/0.1964, allocations: 64.39 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.066e-05/0.1965, allocations: 15.94 kB / 409.6 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.09e-05/0.1965, allocations: 4.484 kB / 409.6 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.911e-05/0.1965, allocations: 6.094 kB / 409.6 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.38e-05/0.1966, allocations: 7.922 kB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.756e-06/0.1966, allocations: 4 kB / 409.7 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.1967, allocations: 79.91 kB / 409.7 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.429e-05/0.1967, allocations: 3.938 kB / 409.7 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.1968, allocations: 34.36 kB / 409.8 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.719e-05/0.1969, allocations: 59.83 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1969, allocations: 4.719 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1969, allocations: 0 / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.317e-06/0.1969, allocations: 5.188 kB / 409.8 MB, free: 25.99 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002466/0.1971, allocations: 335.5 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1972, allocations: 15.47 kB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.36e-05/0.1972, allocations: 30.75 kB / 410.2 MB, free: 25.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.799e-05/0.1973, allocations: 0.9375 kB / 410.2 MB, free: 25.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.382e-05/0.1973, allocations: 169.6 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.1973, allocations: 8.359 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.1974, allocations: 4.375 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.659e-05/0.1974, allocations: 38.2 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1974, allocations: 3.938 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-06/0.1975, allocations: 0 / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1975, allocations: 5.109 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.95e-05/0.1975, allocations: 11.94 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002491/0.1977, allocations: 245.9 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.758e-05/0.1978, allocations: 30.52 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.861e-05/0.1978, allocations: 12.92 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.225e-06/0.1978, allocations: 3.984 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.498e-05/0.1979, allocations: 59.33 kB / 410.8 MB, free: 24.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1979, allocations: 0 / 410.8 MB, free: 24.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001217/0.1981, allocations: 49.69 kB / 410.8 MB, free: 24.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.263e-05/0.1981, allocations: 55.41 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.711e-05/0.1981, allocations: 105.8 kB / 411 MB, free: 24.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.1982, allocations: 29.7 kB / 411 MB, free: 24.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.34e-05/0.1982, allocations: 92.03 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.684e-06/0.1982, allocations: 7.844 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-06/0.1982, allocations: 7.938 kB / 411.1 MB, free: 24.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.601e-05/0.1982, allocations: 310.8 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.728e-05/0.1983, allocations: 7.984 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.103e-05/0.1983, allocations: 29.66 kB / 411.5 MB, free: 24.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.353e-05/0.1983, allocations: 29.66 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1983, allocations: 0 / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.83e-05/0.1984, allocations: 53.62 kB / 411.6 MB, free: 24.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.1984, allocations: 7.984 kB / 411.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1984, allocations: 4 kB / 411.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.518e-06/0.1985, allocations: 0 / 411.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.1985, allocations: 8.031 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1985, allocations: 4 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.637e-05/0.1985, allocations: 7.938 kB / 411.6 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.1985, allocations: 0 / 411.6 MB, free: 24.01 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.1986, allocations: 117.7 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.214e-06/0.1986, allocations: 0 / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.941e-05/0.1986, allocations: 15.89 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1986, allocations: 0 / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1986, allocations: 0 / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.1986, allocations: 4 kB / 411.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.1988, allocations: 290.4 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1988, allocations: 0 / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.115e-05/0.1988, allocations: 0 / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1988, allocations: 0 / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.1989, allocations: 3.984 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1989, allocations: 4.375 kB / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1989, allocations: 0 / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.376e-05/0.1989, allocations: 151.4 kB / 412.2 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.631e-05/0.199, allocations: 81.44 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.199, allocations: 4 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.807e-05/0.199, allocations: 0 / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.111e-05/0.199, allocations: 3.984 kB / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.1991, allocations: 4 kB / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.154e-05/0.1991, allocations: 87.22 kB / 412.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1991, allocations: 0 / 412.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002718/0.1994, allocations: 27.98 kB / 412.4 MB, free: 23.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004838/0.1999, allocations: 0.7628 MB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.856e-05/0.2, allocations: 27.91 kB / 413.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2, allocations: 0 / 413.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.262e-05/0.2, allocations: 12.08 kB / 413.2 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.2002, allocations: 14.09 kB / 413.2 MB, free: 22.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004712/0.2007, allocations: 417.3 kB / 413.6 MB, free: 21.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.761e-05/0.2008, allocations: 0.677 MB / 414.3 MB, free: 21.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.241e-05/0.2008, allocations: 11.44 kB / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2008, allocations: 0 / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.92/3.121, allocations: 1.371 MB / 415.6 MB, free: 19.76 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,impureRandom_y Variables in the result:globalSeed.enableNoise,globalSeed.fixedSeed,globalSeed.id_impure,globalSeed.seed,globalSeed.useAutomaticSeed,impureRandom.samplePeriod,impureRandom.y,impureRandom_y,time