Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001672/0.001672, allocations: 114.1 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00201/0.00201, allocations: 213.8 kB / 18.27 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 56.16 kB / 306.6 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08737/0.08876, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002785/0.09157, allocations: 1.581 MB / 358.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.09272, allocations: 0.5846 MB / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.03e-05/0.0928, allocations: 0 / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.725e-05/0.09292, allocations: 7.922 kB / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.904e-05/0.09298, allocations: 11.88 kB / 359.3 MB, free: 12.12 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.0005886/0.09358, allocations: 123.8 kB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.09372, allocations: 115.7 kB / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.138e-05/0.09377, allocations: 9.125 kB / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.653e-05/0.09384, allocations: 47.84 kB / 359.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006024/0.09445, allocations: 73.22 kB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.018e-05/0.09449, allocations: 15.94 kB / 359.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002087/0.0947, allocations: 111.8 kB / 359.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.784e-05/0.09476, allocations: 23.92 kB / 359.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.409e-05/0.09484, allocations: 63.66 kB / 359.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.09512, allocations: 195.6 kB / 360 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.09513, allocations: 3.938 kB / 360 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.09514, allocations: 0 / 360 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.09515, allocations: 0 / 360 MB, free: 11.36 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007088/0.09587, allocations: 458.8 kB / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.09592, allocations: 12.03 kB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.439e-05/0.09598, allocations: 34.73 kB / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.09627, allocations: 44.72 kB / 360.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.09646, allocations: 200 kB / 360.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.09649, allocations: 8.375 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.09652, allocations: 4.375 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002209/0.09674, allocations: 121.9 kB / 360.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.567e-06/0.09676, allocations: 4 kB / 360.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.09678, allocations: 11.98 kB / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.09679, allocations: 0 / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.09696, allocations: 47.97 kB / 361 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006528/0.09762, allocations: 464.7 kB / 361.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003367/0.09797, allocations: 133.2 kB / 361.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.09808, allocations: 49.77 kB / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.0981, allocations: 0 / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.09838, allocations: 141 kB / 361.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.09839, allocations: 4 kB / 361.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004829/0.09888, allocations: 233.3 kB / 362 MB, free: 9.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.09895, allocations: 97.16 kB / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.09911, allocations: 174.3 kB / 362.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.09915, allocations: 49.64 kB / 362.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7e-05/0.09922, allocations: 104.5 kB / 362.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/0.09927, allocations: 39.55 kB / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.166e-05/0.09936, allocations: 73.84 kB / 362.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.09948, allocations: 326.8 kB / 362.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.09967, allocations: 100.5 kB / 362.9 MB, free: 8.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.09986, allocations: 128.4 kB / 363 MB, free: 8.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.1002, allocations: 215.4 kB / 363.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1002, allocations: 0 / 363.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004542/0.1007, allocations: 285.2 kB / 363.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.1007, allocations: 7.938 kB / 363.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.1007, allocations: 0 / 363.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1007, allocations: 4 kB / 363.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.1009, allocations: 32.05 kB / 363.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.1009, allocations: 0 / 363.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.283e-05/0.101, allocations: 23.77 kB / 363.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.101, allocations: 8 kB / 363.6 MB, free: 7.504 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1],uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 2 * 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.0001293/0.1011, allocations: 154.9 kB / 363.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.1012, allocations: 15.75 kB / 363.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.1012, allocations: 17.41 kB / 363.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1012, allocations: 4 kB / 363.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1012, allocations: 3.984 kB / 363.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1012, allocations: 7.938 kB / 363.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.1015, allocations: 201.6 kB / 364 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1015, allocations: 3.938 kB / 364 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.23e-05/0.1015, allocations: 15.92 kB / 364 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.1015, allocations: 0 / 364 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.1016, allocations: 4 kB / 364 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1016, allocations: 0 / 364 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1016, allocations: 0 / 364 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/0.1019, allocations: 225.6 kB / 364.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.666e-05/0.102, allocations: 88.92 kB / 364.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.926e-05/0.102, allocations: 11.98 kB / 364.3 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.366e-05/0.1021, allocations: 8 kB / 364.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.277e-05/0.1021, allocations: 19.92 kB / 364.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.984e-06/0.1022, allocations: 4 kB / 364.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.491e-05/0.1023, allocations: 132.2 kB / 364.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1023, allocations: 0 / 364.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002858/0.1026, allocations: 48 kB / 364.5 MB, free: 6.461 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0009646/0.1035, allocations: 0.9072 MB / 365.5 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003708/0.1039, allocations: 195.8 kB / 365.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1039, allocations: 0 / 365.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.1041, allocations: 63.97 kB / 365.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.1042, allocations: 3.938 kB / 365.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.1066, allocations: 2.128 MB / 367.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.1068, allocations: 0.708 MB / 368.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.934e-05/0.1069, allocations: 16.88 kB / 368.6 MB, free: 2.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.266e-05/0.107, allocations: 39.42 kB / 368.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.107, allocations: 4 kB / 368.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.524/1.631, allocations: 3.434 MB / 372 MB, free: 20.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/1.631, allocations: 229.2 kB / 372.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/3.611, allocations: 1.125 kB / 372.3 MB, free: 19.93 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches