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.001065/0.001065, allocations: 109.1 kB / 15.99 MB, free: 6.359 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.001101/0.001101, allocations: 196.8 kB / 16.91 MB, free: 6.191 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.468/1.468, allocations: 205.1 MB / 222.8 MB, free: 4.703 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.67/1.67, allocations: 292.3 MB / 0.5492 GB, free: 13.62 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.002466/0.002467, allocations: 67.72 kB / 0.6717 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2555, allocations: 114.5 MB / 0.7835 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement): time 0.00249/0.258, allocations: 1.329 MB / 0.7848 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002289/0.2603, allocations: 1.504 MB / 0.7863 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.212e-05/0.2604, allocations: 0 / 0.7863 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.255e-05/0.2604, allocations: 0 / 0.7863 GB, free: 11.04 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.0002853/0.2607, allocations: 23.92 kB / 0.7863 GB, free: 11.02 MB / 0.6075 GB [/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.0006418/0.2614, allocations: 198.8 kB / 0.7865 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.668e-05/0.2614, allocations: 23.92 kB / 0.7865 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.903e-05/0.2615, allocations: 11.98 kB / 0.7865 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/0.2616, allocations: 19.94 kB / 0.7865 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.2617, allocations: 7.984 kB / 0.7866 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.385e-05/0.2617, allocations: 3.984 kB / 0.7866 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002492/0.262, allocations: 155.8 kB / 0.7867 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.564e-05/0.262, allocations: 11.94 kB / 0.7867 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.342e-05/0.262, allocations: 11.92 kB / 0.7867 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.2622, allocations: 99.81 kB / 0.7868 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2622, allocations: 3.984 kB / 0.7868 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2622, allocations: 0 / 0.7868 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2623, allocations: 0 / 0.7868 GB, free: 10.48 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.0003878/0.2627, allocations: 379.7 kB / 0.7872 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.2627, allocations: 12.03 kB / 0.7872 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.521e-05/0.2628, allocations: 76.22 kB / 0.7873 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.2629, allocations: 239.7 kB / 0.7875 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.593e-05/0.263, allocations: 154.9 kB / 0.7877 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.767e-05/0.2631, allocations: 158.7 kB / 0.7878 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.179e-05/0.2632, allocations: 109 kB / 0.7879 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.137e-05/0.2632, allocations: 75.28 kB / 0.788 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.244e-05/0.2633, allocations: 150.6 kB / 0.7881 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.273e-05/0.2633, allocations: 154.5 kB / 0.7883 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.32e-05/0.2634, allocations: 150.6 kB / 0.7884 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003027/0.2637, allocations: 461.9 kB / 0.7889 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.284e-05/0.2638, allocations: 173.1 kB / 0.789 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.907e-05/0.2638, allocations: 84.08 kB / 0.7891 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.2639, allocations: 75.28 kB / 0.7892 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.2639, allocations: 113.8 kB / 0.7893 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 8.21e-07/0.264, allocations: 0 / 0.7893 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 8.121e-05/0.264, allocations: 29.7 kB / 0.7893 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.729e-05/0.2641, allocations: 126.7 kB / 0.7894 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.954e-05/0.2642, allocations: 105.8 kB / 0.7895 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.2642, allocations: 25.7 kB / 0.7896 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.513e-05/0.2643, allocations: 84.14 kB / 0.7896 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-06/0.2643, allocations: 0 / 0.7896 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.102e-05/0.2644, allocations: 25.7 kB / 0.7897 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.2645, allocations: 314.8 kB / 0.79 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.211e-05/0.2645, allocations: 256 / 0.79 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.922e-05/0.2646, allocations: 30.5 kB / 0.79 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.359e-05/0.2646, allocations: 30.58 kB / 0.79 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2646, allocations: 0 / 0.79 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001417/0.2648, allocations: 61.47 kB / 0.7901 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2648, allocations: 4 kB / 0.7901 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.2648, allocations: 0 / 0.7901 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2648, allocations: 4 kB / 0.7901 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-05/0.2649, allocations: 7.938 kB / 0.7901 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2649, allocations: 0 / 0.7901 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.2651, allocations: 7.984 kB / 0.7901 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.2651, allocations: 8.094 kB / 0.7901 GB, free: 6.871 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.000112/0.2652, allocations: 189.1 kB / 0.7903 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.316e-05/0.2653, allocations: 108.9 kB / 0.7904 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.021e-05/0.2653, allocations: 116.1 kB / 0.7905 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.486e-05/0.2654, allocations: 180.2 kB / 0.7907 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-05/0.2655, allocations: 176.3 kB / 0.7908 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.382e-05/0.2656, allocations: 192.2 kB / 0.791 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.2658, allocations: 409.2 kB / 0.7914 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.154e-05/0.2659, allocations: 108.9 kB / 0.7915 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.387e-05/0.2659, allocations: 101.1 kB / 0.7916 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.299e-05/0.266, allocations: 184.3 kB / 0.7918 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.205e-05/0.2661, allocations: 188.2 kB / 0.792 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.459e-05/0.2661, allocations: 180.3 kB / 0.7921 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.354e-05/0.2662, allocations: 180.2 kB / 0.7923 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.2663, allocations: 307.7 kB / 0.7926 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.893e-05/0.2664, allocations: 186.1 kB / 0.7928 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.083e-05/0.2665, allocations: 176.3 kB / 0.793 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-05/0.2666, allocations: 112.9 kB / 0.7931 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.474e-05/0.2667, allocations: 176.3 kB / 0.7932 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/0.2667, allocations: 112.9 kB / 0.7933 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.847e-05/0.2668, allocations: 79.28 kB / 0.7934 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2668, allocations: 0 / 0.7934 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003512/0.2672, allocations: 55.98 kB / 0.7935 GB, free: 3.199 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.000591/0.2678, allocations: 356.5 kB / 0.7938 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 8.724e-05/0.2679, allocations: 4 kB / 0.7938 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2679, allocations: 0 / 0.7938 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 3.296e-06/0.2679, allocations: 4 kB / 0.7938 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.2683, allocations: 470.7 kB / 0.7943 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002854/0.2686, allocations: 199 kB / 0.7945 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.2688, allocations: 0.6768 MB / 0.7951 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.94e-05/0.2689, allocations: 11.44 kB / 0.7951 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of SimCode: time 3.71e-07/0.2689, allocations: 0 / 0.7951 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of Templates: time 0.003356/0.2722, allocations: 1.71 MB / 0.7968 GB, free: 15.77 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)