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.001611/0.001611, allocations: 113.3 kB / 17.06 MB, free: 5.965 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.001743/0.001743, allocations: 197.3 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2862, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002831/0.2891, allocations: 1.475 MB / 401.7 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.2904, allocations: 0.5723 MB / 402.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.239e-05/0.2905, allocations: 0 / 402.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.2906, allocations: 15.8 kB / 402.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.165e-05/0.2907, allocations: 15.81 kB / 402.3 MB, free: 6.711 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.0005902/0.2913, allocations: 143.5 kB / 402.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.2915, allocations: 115.7 kB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.958e-05/0.2915, allocations: 13.09 kB / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.538e-05/0.2916, allocations: 51.77 kB / 402.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006361/0.2922, allocations: 83.78 kB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.2923, allocations: 8 kB / 402.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002334/0.2925, allocations: 107.8 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.954e-05/0.2926, allocations: 31.91 kB / 402.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.677e-05/0.2926, allocations: 55.66 kB / 402.9 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.293, allocations: 194.4 kB / 403.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.293, allocations: 4 kB / 403.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.293, allocations: 0 / 403.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.293, allocations: 0 / 403.1 MB, free: 5.93 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.0007351/0.2938, allocations: 466.5 kB / 403.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2938, allocations: 8.031 kB / 403.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.888e-05/0.2939, allocations: 42.73 kB / 403.6 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003172/0.2942, allocations: 36.83 kB / 403.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.2944, allocations: 204.1 kB / 403.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.2944, allocations: 15.92 kB / 403.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/0.2945, allocations: 15.92 kB / 403.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.2947, allocations: 111.4 kB / 404 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2947, allocations: 0 / 404 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.2948, allocations: 0 / 404 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2948, allocations: 4 kB / 404 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.295, allocations: 55.95 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007186/0.2957, allocations: 460.7 kB / 404.5 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.296, allocations: 121.2 kB / 404.6 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.2962, allocations: 69.69 kB / 404.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.2962, allocations: 0 / 404.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002759/0.2965, allocations: 137 kB / 404.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.313e-06/0.2965, allocations: 0 / 404.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005487/0.297, allocations: 237.5 kB / 405.1 MB, free: 3.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.2971, allocations: 93.17 kB / 405.1 MB, free: 3.668 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.2973, allocations: 186.1 kB / 405.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.2973, allocations: 49.69 kB / 405.4 MB, free: 3.422 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.547e-05/0.2974, allocations: 104.5 kB / 405.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.648e-05/0.2975, allocations: 43.69 kB / 405.5 MB, free: 3.273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.647e-05/0.2976, allocations: 53.92 kB / 405.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.2977, allocations: 338.8 kB / 405.9 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.2979, allocations: 92.47 kB / 406 MB, free: 2.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002289/0.2982, allocations: 132.4 kB / 406.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003565/0.2985, allocations: 215.4 kB / 406.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2985, allocations: 0 / 406.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005038/0.2991, allocations: 285.4 kB / 406.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2991, allocations: 7.984 kB / 406.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2991, allocations: 0 / 406.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.2991, allocations: 4 kB / 406.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.2993, allocations: 27.92 kB / 406.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.2993, allocations: 0 / 406.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.859e-05/0.2994, allocations: 31.84 kB / 406.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.2994, allocations: 11.94 kB / 406.7 MB, free: 2.055 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.0001465/0.2995, allocations: 141.9 kB / 406.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.2996, allocations: 19.89 kB / 406.9 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.48e-05/0.2996, allocations: 13.41 kB / 406.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2996, allocations: 3.938 kB / 406.9 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2996, allocations: 4 kB / 406.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2997, allocations: 0 / 406.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.2999, allocations: 217.6 kB / 407.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2999, allocations: 0 / 407.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.885e-05/0.2999, allocations: 11.94 kB / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2999, allocations: 0 / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.3, allocations: 0 / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.3, allocations: 7.938 kB / 407.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.3, allocations: 3.984 kB / 407.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003586/0.3003, allocations: 214.2 kB / 407.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.713e-05/0.3004, allocations: 97 kB / 407.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.3004, allocations: 8 kB / 407.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.89e-05/0.3005, allocations: 11.92 kB / 407.4 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.481e-05/0.3006, allocations: 7.984 kB / 407.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.3006, allocations: 4 kB / 407.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001168/0.3007, allocations: 144.2 kB / 407.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3007, allocations: 0 / 407.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002988/0.301, allocations: 47.92 kB / 407.6 MB, free: 1.012 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.001232/0.3023, allocations: 0.9135 MB / 408.5 MB, free: 100 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004437/0.3027, allocations: 199.7 kB / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3027, allocations: 0 / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.3029, allocations: 59.97 kB / 408.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001684/0.3031, allocations: 11.94 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.3057, allocations: 2.105 MB / 410.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.3061, allocations: 0.7041 MB / 411.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.157e-05/0.3062, allocations: 24.86 kB / 411.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.569e-05/0.3063, allocations: 39.42 kB / 411.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3063, allocations: 0 / 411.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.3326, allocations: 3.617 MB / 415.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.042/8.375, allocations: 6.844 kB / 415.3 MB, free: 9.293 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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