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.002067/0.002066, allocations: 108.1 kB / 16.36 MB, free: 6.352 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.001885/0.001885, allocations: 194.2 kB / 17.3 MB, free: 5.891 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.463/1.463, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.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.789/1.789, allocations: 292.3 MB / 0.5496 GB, free: 17.53 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.001488/0.001488, allocations: 71.89 kB / 0.6729 GB, free: 5.828 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.23, allocations: 114.5 MB / 0.7848 GB, free: 3.168 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement): time 0.002923/0.2329, allocations: 1.271 MB / 0.786 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002521/0.2355, allocations: 1.527 MB / 0.7875 GB, free: 356 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.451e-05/0.2356, allocations: 4 kB / 0.7875 GB, free: 352 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.378e-05/0.2356, allocations: 0 / 0.7875 GB, free: 352 kB / 0.6544 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.0002827/0.2359, allocations: 23.86 kB / 0.7875 GB, free: 328 kB / 0.6544 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.0006819/0.2366, allocations: 233.5 kB / 0.7878 GB, free: 100 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 9.323e-05/0.2367, allocations: 23.92 kB / 0.7878 GB, free: 76 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.643e-05/0.2368, allocations: 3.984 kB / 0.7878 GB, free: 72 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.591e-05/0.2368, allocations: 11.94 kB / 0.7878 GB, free: 60 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.237, allocations: 19.92 kB / 0.7878 GB, free: 40 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.237, allocations: 3.938 kB / 0.7878 GB, free: 36 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3946/0.6316, allocations: 167.1 kB / 0.788 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.6316, allocations: 7.812 kB / 0.788 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.379e-05/0.6317, allocations: 13.73 kB / 0.788 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002993/0.632, allocations: 156.9 kB / 0.7881 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.632, allocations: 0 / 0.7881 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.294e-06/0.632, allocations: 3.969 kB / 0.7882 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.632, allocations: 0 / 0.7882 GB, free: 46.59 MB / 0.6544 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.0003281/0.6324, allocations: 366.2 kB / 0.7885 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.6324, allocations: 9.094 kB / 0.7885 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.437e-05/0.6325, allocations: 82.12 kB / 0.7886 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.6326, allocations: 244.4 kB / 0.7888 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.6326, allocations: 150.9 kB / 0.789 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.6326, allocations: 159.7 kB / 0.7891 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.36e-05/0.6327, allocations: 104.9 kB / 0.7892 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.6327, allocations: 78.03 kB / 0.7893 GB, free: 45.41 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.6328, allocations: 150.6 kB / 0.7894 GB, free: 45.26 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.6328, allocations: 152.2 kB / 0.7896 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.248e-05/0.6328, allocations: 161.7 kB / 0.7897 GB, free: 44.96 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001849/0.633, allocations: 454.9 kB / 0.7902 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 4.173e-05/0.633, allocations: 169.3 kB / 0.7903 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.474e-05/0.6331, allocations: 80.14 kB / 0.7904 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.308e-05/0.6331, allocations: 78.31 kB / 0.7905 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.6331, allocations: 114.9 kB / 0.7906 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.6331, allocations: 0 / 0.7906 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=0): time 7.211e-05/0.6332, allocations: 34 kB / 0.7906 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.6332, allocations: 126.7 kB / 0.7907 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.747e-05/0.6333, allocations: 106.2 kB / 0.7908 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.298e-06/0.6333, allocations: 28.86 kB / 0.7909 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.559e-05/0.6334, allocations: 87.97 kB / 0.791 GB, free: 43.66 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.764e-06/0.6334, allocations: 0 / 0.791 GB, free: 43.66 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.6334, allocations: 22.03 kB / 0.791 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.402e-05/0.6335, allocations: 313.6 kB / 0.7913 GB, free: 43.33 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.299e-05/0.6335, allocations: 3.219 kB / 0.7913 GB, free: 43.33 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.775e-05/0.6335, allocations: 30.58 kB / 0.7913 GB, free: 43.31 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.227e-05/0.6336, allocations: 22.27 kB / 0.7913 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.6336, allocations: 4.469 kB / 0.7913 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001107/0.6337, allocations: 58.7 kB / 0.7914 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.6337, allocations: 6.875 kB / 0.7914 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6337, allocations: 0 / 0.7914 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.6337, allocations: 0 / 0.7914 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.627e-05/0.6338, allocations: 9.906 kB / 0.7914 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.85e-06/0.6338, allocations: 0.5 kB / 0.7914 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.634, allocations: 7.156 kB / 0.7914 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.634, allocations: 10.84 kB / 0.7914 GB, free: 43.25 MB / 0.6544 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 6.878e-05/0.6341, allocations: 185.7 kB / 0.7916 GB, free: 43.06 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.6341, allocations: 106 kB / 0.7917 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.6341, allocations: 107.4 kB / 0.7918 GB, free: 42.85 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/0.6342, allocations: 187.4 kB / 0.792 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.549e-05/0.6342, allocations: 185.3 kB / 0.7922 GB, free: 42.49 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.43e-05/0.6342, allocations: 177.1 kB / 0.7923 GB, free: 42.31 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.6344, allocations: 405 kB / 0.7927 GB, free: 41.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/0.6344, allocations: 107.6 kB / 0.7928 GB, free: 41.76 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.523e-05/0.6344, allocations: 107 kB / 0.7929 GB, free: 41.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-05/0.6344, allocations: 184.8 kB / 0.7931 GB, free: 41.47 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.6345, allocations: 176.8 kB / 0.7933 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.466e-05/0.6345, allocations: 183.2 kB / 0.7934 GB, free: 41.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.962e-05/0.6345, allocations: 180.2 kB / 0.7936 GB, free: 40.93 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.868e-05/0.6346, allocations: 306.7 kB / 0.7939 GB, free: 40.62 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.128e-05/0.6346, allocations: 192.8 kB / 0.7941 GB, free: 40.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.322e-05/0.6347, allocations: 187.1 kB / 0.7943 GB, free: 40.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.392e-05/0.6347, allocations: 104.2 kB / 0.7944 GB, free: 40.13 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.673e-05/0.6348, allocations: 181.5 kB / 0.7945 GB, free: 39.95 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.6348, allocations: 105.6 kB / 0.7946 GB, free: 39.85 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.822e-05/0.6348, allocations: 89.05 kB / 0.7947 GB, free: 39.77 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6348, allocations: 1.625 kB / 0.7947 GB, free: 39.77 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003053/0.6351, allocations: 50.31 kB / 0.7948 GB, free: 39.77 MB / 0.6544 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.000529/0.6357, allocations: 355.5 kB / 0.7951 GB, free: 39.59 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 9.282e-05/0.6358, allocations: 15.48 kB / 0.7951 GB, free: 39.59 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.6358, allocations: 0 / 0.7951 GB, free: 39.59 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 2.094e-06/0.6358, allocations: 2.625 kB / 0.7951 GB, free: 39.59 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.6361, allocations: 458 kB / 0.7956 GB, free: 39.14 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002374/0.6363, allocations: 204.4 kB / 0.7958 GB, free: 38.94 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.6364, allocations: 0.6715 MB / 0.7964 GB, free: 38.24 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.59e-05/0.6365, allocations: 12.78 kB / 0.7964 GB, free: 38.24 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.6365, allocations: 0 / 0.7964 GB, free: 38.24 MB / 0.6544 GB Notification: Performance of Templates: time 0.003284/0.6397, allocations: 1.698 MB / 0.7981 GB, free: 38.09 MB / 0.6544 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)