Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 103.1 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002072/0.002072, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.538/2.538, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5872/0.5893, allocations: 49.45 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.004279/0.5936, allocations: 1.471 MB / 401.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.5954, allocations: 0.5782 MB / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.056e-05/0.5956, allocations: 0 / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.5957, allocations: 7.875 kB / 402.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.5958, allocations: 19.8 kB / 402.3 MB, free: 6.723 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0008996/0.5968, allocations: 143.6 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002431/0.597, allocations: 111.7 kB / 402.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.81e-05/0.5971, allocations: 13.11 kB / 402.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.803e-05/0.5972, allocations: 51.78 kB / 402.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007775/0.598, allocations: 76.59 kB / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.188e-05/0.5981, allocations: 12 kB / 402.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003703/0.5984, allocations: 111.8 kB / 402.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.335e-05/0.5985, allocations: 31.86 kB / 402.9 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.797e-05/0.5986, allocations: 55.66 kB / 402.9 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.5991, allocations: 197.2 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.5991, allocations: 0 / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.5992, allocations: 0 / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.5992, allocations: 0 / 403.1 MB, free: 5.945 MB / 318.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.0009466/0.6001, allocations: 458.8 kB / 403.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.6002, allocations: 15.97 kB / 403.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.094e-05/0.6003, allocations: 38.73 kB / 403.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005516/0.6009, allocations: 44.66 kB / 403.6 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.6011, allocations: 200.1 kB / 403.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.6012, allocations: 11.92 kB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.6012, allocations: 8 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000347/0.6016, allocations: 115.4 kB / 404 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.6016, allocations: 3.938 kB / 404 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.6016, allocations: 0 / 404 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.6016, allocations: 0 / 404 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000318/0.602, allocations: 59.95 kB / 404 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.603, allocations: 460.7 kB / 404.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004924/0.6035, allocations: 125.2 kB / 404.6 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.6037, allocations: 57.77 kB / 404.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.6038, allocations: 0 / 404.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003653/0.6041, allocations: 141 kB / 404.8 MB, free: 4.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 3.036e-06/0.6042, allocations: 0 / 404.8 MB, free: 4.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008735/0.605, allocations: 237.4 kB / 405 MB, free: 3.801 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.476e-05/0.6052, allocations: 97.16 kB / 405.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.6054, allocations: 174.2 kB / 405.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.447e-05/0.6055, allocations: 41.69 kB / 405.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.701e-05/0.6056, allocations: 108.6 kB / 405.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.249e-05/0.6057, allocations: 47.39 kB / 405.5 MB, free: 3.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.6059, allocations: 57.91 kB / 405.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.6061, allocations: 330.8 kB / 405.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003418/0.6064, allocations: 100.5 kB / 406 MB, free: 2.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003691/0.6068, allocations: 124.4 kB / 406.1 MB, free: 2.676 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006702/0.6075, allocations: 219.3 kB / 406.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.6075, allocations: 0 / 406.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008836/0.6084, allocations: 289.3 kB / 406.6 MB, free: 2.164 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.6085, allocations: 4 kB / 406.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.6085, allocations: 4 kB / 406.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.6085, allocations: 0 / 406.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.6088, allocations: 31.86 kB / 406.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.6088, allocations: 8.062 kB / 406.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.609, allocations: 15.89 kB / 406.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.609, allocations: 8 kB / 406.7 MB, free: 2.094 MB / 318.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.0002016/0.6092, allocations: 153.8 kB / 406.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.19e-05/0.6093, allocations: 11.81 kB / 406.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.199e-05/0.6094, allocations: 13.41 kB / 406.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.6094, allocations: 7.938 kB / 406.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.6094, allocations: 4 kB / 406.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.6094, allocations: 11.92 kB / 406.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.6097, allocations: 205.5 kB / 407.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.6097, allocations: 4 kB / 407.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.3e-05/0.6098, allocations: 4 kB / 407.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.6099, allocations: 7.922 kB / 407.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.6099, allocations: 8 kB / 407.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.6099, allocations: 3.938 kB / 407.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6099, allocations: 0 / 407.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006098/0.6105, allocations: 221.7 kB / 407.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.336e-05/0.6106, allocations: 88.92 kB / 407.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.6107, allocations: 11.98 kB / 407.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.148e-05/0.6108, allocations: 7.938 kB / 407.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.6109, allocations: 11.98 kB / 407.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.6109, allocations: 4 kB / 407.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.611, allocations: 136.2 kB / 407.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.611, allocations: 0 / 407.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000502/0.6115, allocations: 47.98 kB / 407.6 MB, free: 1.043 MB / 318.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.001561/0.6131, allocations: 0.9197 MB / 408.5 MB, free: 128 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006406/0.6138, allocations: 191.8 kB / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.6138, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.614, allocations: 63.91 kB / 408.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.6143, allocations: 7.938 kB / 408.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003757/0.6181, allocations: 2.106 MB / 410.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.6184, allocations: 0.7158 MB / 411.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.875e-05/0.6186, allocations: 16.88 kB / 411.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.875e-05/0.6187, allocations: 39.42 kB / 411.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.6187, allocations: 0 / 411.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.629/6.248, allocations: 3.683 MB / 415.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.45/28.7, allocations: 5.344 kB / 415.3 MB, free: 9.262 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches