Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement") translateModel(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 185.7 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.844/1.844, allocations: 292.3 MB / 0.549 GB, free: 12.74 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 73.61 kB / 0.6723 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2803, allocations: 114.6 MB / 0.7841 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement): time 0.002463/0.2828, allocations: 1.259 MB / 0.7854 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002357/0.2852, allocations: 1.528 MB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.574e-05/0.2852, allocations: 0 / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.371e-05/0.2853, allocations: 3.938 kB / 0.7869 GB, free: 9.926 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getAbsolutePath.mo:2:1-50:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath' contains a call to impure function 'Modelica.Utilities.Files.exist'. Notification: Performance of NFTyping.typeBindings: time 0.0002632/0.2856, allocations: 27.91 kB / 0.7869 GB, free: 9.898 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. Notification: Performance of NFTyping.typeClassSections: time 0.0006498/0.2862, allocations: 210.8 kB / 0.7871 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.648e-05/0.2863, allocations: 31.91 kB / 0.7871 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.532e-05/0.2864, allocations: 4 kB / 0.7871 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.328e-05/0.2865, allocations: 23.86 kB / 0.7871 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.2866, allocations: 7.984 kB / 0.7871 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.2866, allocations: 0 / 0.7871 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000303/0.2869, allocations: 175.8 kB / 0.7873 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.447e-05/0.2869, allocations: 7.922 kB / 0.7873 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.722e-05/0.287, allocations: 11.94 kB / 0.7873 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.2873, allocations: 155.7 kB / 0.7875 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2873, allocations: 0 / 0.7875 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2873, allocations: 4 kB / 0.7875 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.2873, allocations: 0 / 0.7875 GB, free: 9.281 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004057/0.2877, allocations: 375.3 kB / 0.7878 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2878, allocations: 12.03 kB / 0.7879 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.659e-05/0.2878, allocations: 76.22 kB / 0.7879 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.288, allocations: 239.7 kB / 0.7882 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.981e-05/0.2881, allocations: 154.9 kB / 0.7883 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.618e-05/0.2882, allocations: 162.7 kB / 0.7885 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.544e-05/0.2883, allocations: 112.9 kB / 0.7886 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.806e-05/0.2883, allocations: 75.28 kB / 0.7886 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.526e-05/0.2884, allocations: 150.6 kB / 0.7888 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.584e-05/0.2884, allocations: 150.6 kB / 0.7889 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.673e-05/0.2885, allocations: 150.6 kB / 0.7891 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000309/0.2888, allocations: 453.9 kB / 0.7895 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.035e-05/0.2889, allocations: 173.1 kB / 0.7897 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.605e-05/0.2889, allocations: 88.08 kB / 0.7897 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.289, allocations: 75.28 kB / 0.7898 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.289, allocations: 113.8 kB / 0.7899 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 1.683e-06/0.289, allocations: 0 / 0.7899 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 9.737e-05/0.2891, allocations: 25.7 kB / 0.79 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.444e-05/0.2892, allocations: 134.6 kB / 0.7901 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.2893, allocations: 101.8 kB / 0.7902 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.2894, allocations: 29.7 kB / 0.7902 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.134e-05/0.2894, allocations: 84.14 kB / 0.7903 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.114e-06/0.2894, allocations: 4 kB / 0.7903 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.581e-05/0.2895, allocations: 17.72 kB / 0.7903 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2896, allocations: 318.8 kB / 0.7906 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.907e-05/0.2896, allocations: 0 / 0.7906 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.25e-05/0.2897, allocations: 30.52 kB / 0.7906 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.865e-05/0.2897, allocations: 30.5 kB / 0.7907 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2898, allocations: 0 / 0.7907 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000164/0.2899, allocations: 53.48 kB / 0.7907 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.29, allocations: 8 kB / 0.7907 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.29, allocations: 0 / 0.7907 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.29, allocations: 144 / 0.7907 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.854e-05/0.2901, allocations: 12.23 kB / 0.7907 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.2901, allocations: 0 / 0.7907 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.2903, allocations: 16.03 kB / 0.7908 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.2903, allocations: 7.984 kB / 0.7908 GB, free: 5.668 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * 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.0001244/0.2904, allocations: 193.7 kB / 0.7909 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-05/0.2905, allocations: 108.9 kB / 0.7911 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.312e-05/0.2906, allocations: 111.9 kB / 0.7912 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.448e-05/0.2906, allocations: 176.3 kB / 0.7913 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.482e-05/0.2907, allocations: 192.2 kB / 0.7915 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.797e-05/0.2908, allocations: 180.3 kB / 0.7917 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002619/0.2911, allocations: 405.1 kB / 0.7921 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-05/0.2911, allocations: 109 kB / 0.7922 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.814e-05/0.2912, allocations: 105 kB / 0.7923 GB, free: 4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.494e-05/0.2913, allocations: 184.2 kB / 0.7924 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.277e-05/0.2914, allocations: 176.3 kB / 0.7926 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-05/0.2914, allocations: 180.2 kB / 0.7928 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.547e-05/0.2915, allocations: 184.2 kB / 0.793 GB, free: 3.262 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001718/0.2917, allocations: 311.7 kB / 0.7933 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.887e-05/0.2918, allocations: 178.1 kB / 0.7934 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.636e-05/0.2919, allocations: 184.2 kB / 0.7936 GB, free: 2.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.009e-05/0.292, allocations: 101 kB / 0.7937 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.349e-05/0.292, allocations: 188.2 kB / 0.7939 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/0.2921, allocations: 101 kB / 0.794 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.014e-05/0.2921, allocations: 83.28 kB / 0.7941 GB, free: 2.062 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2921, allocations: 0 / 0.7941 GB, free: 2.062 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003683/0.2925, allocations: 59.92 kB / 0.7941 GB, free: 2.004 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0006545/0.2932, allocations: 355 kB / 0.7945 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 8.742e-05/0.2933, allocations: 11.94 kB / 0.7945 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2933, allocations: 0 / 0.7945 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.402e-06/0.2933, allocations: 0 / 0.7945 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.2936, allocations: 472.9 kB / 0.7949 GB, free: 1.215 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002724/0.2939, allocations: 177.2 kB / 0.7951 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.2942, allocations: 0.669 MB / 0.7957 GB, free: 328 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.192e-05/0.2943, allocations: 4 kB / 0.7957 GB, free: 324 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.912e-05/0.2943, allocations: 7.438 kB / 0.7957 GB, free: 316 kB / 0.6075 GB Notification: Performance of SimCode: time 2.11e-07/0.2943, allocations: 0 / 0.7957 GB, free: 316 kB / 0.6075 GB Notification: Performance of Templates: time 0.004696/0.299, allocations: 1.74 MB / 0.7974 GB, free: 14.58 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement.makefile (rm -f Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement.pipe ; mkfifo Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement.pipe ; head -c 1048576 < Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement.pipe >> ../files/Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement.sim & ./Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement.pipe 2>&1)