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.001104/0.001104, allocations: 102.2 kB / 16.27 MB, free: 6.414 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.001255/0.001255, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.475/1.475, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.746/1.746, allocations: 292.3 MB / 0.5495 GB, free: 17.46 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.001478/0.001478, allocations: 71.89 kB / 0.6722 GB, free: 6.551 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2395, allocations: 114.5 MB / 0.784 GB, free: 3.891 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement): time 0.002581/0.2421, allocations: 1.264 MB / 0.7853 GB, free: 2.609 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002315/0.2444, allocations: 1.523 MB / 0.7867 GB, free: 1.074 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.981e-05/0.2445, allocations: 0 / 0.7867 GB, free: 1.074 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.435e-05/0.2445, allocations: 0 / 0.7867 GB, free: 1.074 MB / 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.0002769/0.2448, allocations: 27.91 kB / 0.7868 GB, free: 1.047 MB / 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.0007218/0.2456, allocations: 221.5 kB / 0.787 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.353e-05/0.2456, allocations: 31.86 kB / 0.787 GB, free: 0.8047 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.2457, allocations: 0 / 0.787 GB, free: 0.8047 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.823e-05/0.2458, allocations: 23.91 kB / 0.787 GB, free: 0.7812 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.2459, allocations: 4 kB / 0.787 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.27e-05/0.2459, allocations: 4 kB / 0.787 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002583/0.2462, allocations: 163.8 kB / 0.7872 GB, free: 0.6133 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.2462, allocations: 0 / 0.7872 GB, free: 0.6133 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.072e-05/0.2462, allocations: 15.92 kB / 0.7872 GB, free: 0.5977 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.2465, allocations: 147.8 kB / 0.7874 GB, free: 464 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2465, allocations: 7.938 kB / 0.7874 GB, free: 456 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.814e-06/0.2465, allocations: 4 kB / 0.7874 GB, free: 452 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.2465, allocations: 0 / 0.7874 GB, free: 452 kB / 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.0003837/0.2469, allocations: 375.7 kB / 0.7877 GB, free: 28 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2469, allocations: 8.031 kB / 0.7877 GB, free: 20 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3889/0.6358, allocations: 80.12 kB / 0.7878 GB, free: 48.88 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.6361, allocations: 239.8 kB / 0.788 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.6361, allocations: 151.4 kB / 0.7882 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.524e-05/0.6362, allocations: 156.7 kB / 0.7883 GB, free: 48.31 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.91e-05/0.6362, allocations: 105.3 kB / 0.7884 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.6362, allocations: 75.28 kB / 0.7885 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/0.6363, allocations: 156.2 kB / 0.7887 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.239e-05/0.6363, allocations: 157.9 kB / 0.7888 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.406e-05/0.6363, allocations: 152.2 kB / 0.789 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002205/0.6366, allocations: 450.3 kB / 0.7894 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 5.93e-05/0.6366, allocations: 172.6 kB / 0.7895 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.802e-05/0.6367, allocations: 81.58 kB / 0.7896 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.6367, allocations: 78.25 kB / 0.7897 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.6367, allocations: 110.4 kB / 0.7898 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=0): time 1.743e-06/0.6367, allocations: 0 / 0.7898 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of matching and sorting (n=0): time 9.455e-05/0.6368, allocations: 32.02 kB / 0.7898 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.6369, allocations: 131.9 kB / 0.79 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.177e-05/0.637, allocations: 106.7 kB / 0.7901 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.637, allocations: 26.73 kB / 0.7901 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.574e-05/0.637, allocations: 82.14 kB / 0.7902 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.016e-06/0.637, allocations: 0 / 0.7902 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.6371, allocations: 26.23 kB / 0.7902 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.296e-05/0.6371, allocations: 314.8 kB / 0.7905 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.391e-05/0.6371, allocations: 4.062 kB / 0.7905 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.946e-05/0.6372, allocations: 27.52 kB / 0.7905 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.494e-05/0.6372, allocations: 27.2 kB / 0.7905 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.6372, allocations: 5.562 kB / 0.7906 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001311/0.6374, allocations: 53.09 kB / 0.7906 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.6374, allocations: 5.938 kB / 0.7906 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.6374, allocations: 0.5938 kB / 0.7906 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.6374, allocations: 2.688 kB / 0.7906 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.981e-05/0.6375, allocations: 10.41 kB / 0.7906 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.6375, allocations: 4.312 kB / 0.7906 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.6377, allocations: 2.75 kB / 0.7906 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.6377, allocations: 7.156 kB / 0.7906 GB, free: 45.97 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.346e-05/0.6378, allocations: 192.8 kB / 0.7908 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.448e-05/0.6378, allocations: 111.3 kB / 0.7909 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.653e-05/0.6379, allocations: 111.3 kB / 0.791 GB, free: 45.57 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.602e-05/0.6379, allocations: 185.9 kB / 0.7912 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.651e-05/0.6379, allocations: 187 kB / 0.7914 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.327e-05/0.6379, allocations: 176.3 kB / 0.7916 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.6381, allocations: 404.3 kB / 0.7919 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-05/0.6381, allocations: 107 kB / 0.792 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.611e-05/0.6381, allocations: 105.1 kB / 0.7921 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.558e-05/0.6382, allocations: 177.6 kB / 0.7923 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.6382, allocations: 183.8 kB / 0.7925 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.548e-05/0.6382, allocations: 186.4 kB / 0.7927 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.493e-05/0.6383, allocations: 177.5 kB / 0.7928 GB, free: 43.65 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.729e-05/0.6383, allocations: 310.9 kB / 0.7931 GB, free: 43.34 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.467e-05/0.6384, allocations: 181.1 kB / 0.7933 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.6384, allocations: 184.4 kB / 0.7935 GB, free: 42.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.119e-05/0.6385, allocations: 107.5 kB / 0.7936 GB, free: 42.86 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.6385, allocations: 184 kB / 0.7938 GB, free: 42.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.6385, allocations: 110.8 kB / 0.7939 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.488e-05/0.6386, allocations: 78.06 kB / 0.7939 GB, free: 42.5 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6386, allocations: 0 / 0.7939 GB, free: 42.5 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003631/0.6389, allocations: 63.31 kB / 0.794 GB, free: 42.5 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.0005867/0.6395, allocations: 349.1 kB / 0.7943 GB, free: 42.34 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 9.108e-05/0.6396, allocations: 12 kB / 0.7943 GB, free: 42.34 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.6397, allocations: 2.969 kB / 0.7943 GB, free: 42.34 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.172e-06/0.6397, allocations: 2.844 kB / 0.7943 GB, free: 42.34 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.6399, allocations: 457.1 kB / 0.7948 GB, free: 41.89 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002299/0.6402, allocations: 197.1 kB / 0.795 GB, free: 41.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.6403, allocations: 0.6754 MB / 0.7956 GB, free: 41 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.282e-05/0.6403, allocations: 7.438 kB / 0.7956 GB, free: 41 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.6403, allocations: 0 / 0.7956 GB, free: 41 MB / 0.6544 GB Notification: Performance of Templates: time 0.003421/0.6437, allocations: 1.706 MB / 0.7973 GB, free: 40.85 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)