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.001008/0.001008, allocations: 108 kB / 15.6 MB, free: 132 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.001076/0.001076, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.485/1.485, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.802/1.802, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001274/0.001274, allocations: 69.06 kB / 0.6715 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2648, allocations: 114.5 MB / 0.7834 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.WeatherData.BaseClasses.Examples.GetHeaderElement): time 0.002399/0.2672, allocations: 1.263 MB / 0.7846 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002444/0.2697, allocations: 1.524 MB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.65e-05/0.2697, allocations: 0 / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.904e-05/0.2698, allocations: 3.938 kB / 0.7861 GB, free: 10.68 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.0002244/0.27, allocations: 19.91 kB / 0.7861 GB, free: 10.66 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.0006007/0.2706, allocations: 214 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.947e-05/0.2707, allocations: 23.92 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.2707, allocations: 3.938 kB / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.886e-05/0.2708, allocations: 31.84 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.2709, allocations: 4 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.2709, allocations: 0 / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002759/0.2712, allocations: 167.8 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.27e-05/0.2712, allocations: 0 / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.373e-05/0.2713, allocations: 15.92 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002436/0.2715, allocations: 151.8 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2715, allocations: 0 / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2715, allocations: 0 / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.2716, allocations: 0 / 0.7867 GB, free: 10.06 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.0004774/0.272, allocations: 375.6 kB / 0.7871 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2721, allocations: 8.031 kB / 0.7871 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.054e-05/0.2722, allocations: 88.22 kB / 0.7871 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.2723, allocations: 243.6 kB / 0.7874 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.862e-05/0.2724, allocations: 154.9 kB / 0.7875 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.281e-05/0.2725, allocations: 154.7 kB / 0.7877 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.089e-05/0.2726, allocations: 108.9 kB / 0.7878 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.2726, allocations: 75.28 kB / 0.7878 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.049e-05/0.2727, allocations: 158.6 kB / 0.788 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.883e-05/0.2727, allocations: 154.6 kB / 0.7881 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.987e-05/0.2728, allocations: 150.6 kB / 0.7883 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003213/0.2731, allocations: 449.9 kB / 0.7887 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.967e-05/0.2732, allocations: 173.1 kB / 0.7889 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.006e-05/0.2732, allocations: 88.06 kB / 0.789 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.2733, allocations: 75.28 kB / 0.789 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/0.2733, allocations: 113.8 kB / 0.7891 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 7.71e-07/0.2733, allocations: 0 / 0.7891 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 6.713e-05/0.2734, allocations: 25.7 kB / 0.7892 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.2735, allocations: 130.7 kB / 0.7893 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.45e-05/0.2736, allocations: 113.8 kB / 0.7894 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.2736, allocations: 25.7 kB / 0.7894 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.302e-05/0.2737, allocations: 84.14 kB / 0.7895 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.014e-06/0.2737, allocations: 0 / 0.7895 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.2737, allocations: 17.72 kB / 0.7895 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.2739, allocations: 322.8 kB / 0.7898 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.217e-05/0.2739, allocations: 0 / 0.7898 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.063e-05/0.2739, allocations: 30.56 kB / 0.7899 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.789e-05/0.274, allocations: 30.45 kB / 0.7899 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.274, allocations: 0 / 0.7899 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001473/0.2742, allocations: 57.47 kB / 0.79 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.2742, allocations: 18.69 kB / 0.79 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2742, allocations: 0 / 0.79 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.2742, allocations: 0 / 0.79 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.955e-05/0.2743, allocations: 4 kB / 0.79 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.2743, allocations: 4 kB / 0.79 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.2745, allocations: 7.984 kB / 0.79 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.2745, allocations: 0 / 0.79 GB, free: 6.441 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.0001095/0.2746, allocations: 193.7 kB / 0.7902 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.794e-05/0.2747, allocations: 112.9 kB / 0.7903 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.598e-05/0.2748, allocations: 108.1 kB / 0.7904 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.099e-05/0.2748, allocations: 180.2 kB / 0.7906 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.908e-05/0.2749, allocations: 180.2 kB / 0.7907 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.165e-05/0.275, allocations: 176.3 kB / 0.7909 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.2753, allocations: 421.1 kB / 0.7913 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.309e-05/0.2753, allocations: 101 kB / 0.7914 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.163e-05/0.2754, allocations: 101 kB / 0.7915 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-05/0.2755, allocations: 184.2 kB / 0.7917 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.401e-05/0.2756, allocations: 180.3 kB / 0.7918 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.299e-05/0.2757, allocations: 184.2 kB / 0.792 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-05/0.2758, allocations: 180.3 kB / 0.7922 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.2759, allocations: 307.7 kB / 0.7925 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.217e-05/0.276, allocations: 186.1 kB / 0.7927 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.227e-05/0.2761, allocations: 180.2 kB / 0.7928 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.059e-05/0.2761, allocations: 101 kB / 0.7929 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.621e-05/0.2762, allocations: 184.3 kB / 0.7931 GB, free: 3.031 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.2763, allocations: 105.2 kB / 0.7932 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.841e-05/0.2763, allocations: 91.27 kB / 0.7933 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2763, allocations: 0 / 0.7933 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003463/0.2767, allocations: 59.92 kB / 0.7933 GB, free: 2.773 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.0005912/0.2773, allocations: 349 kB / 0.7937 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001043/0.2774, allocations: 19.94 kB / 0.7937 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2774, allocations: 0 / 0.7937 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.204e-06/0.2774, allocations: 0 / 0.7937 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.2778, allocations: 462.1 kB / 0.7941 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002702/0.2781, allocations: 189.4 kB / 0.7943 GB, free: 1.777 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.2785, allocations: 0.669 MB / 0.795 GB, free: 1.082 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.587e-05/0.2785, allocations: 7.984 kB / 0.795 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.64e-05/0.2785, allocations: 7.438 kB / 0.795 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2785, allocations: 0 / 0.795 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of Templates: time 0.005424/0.2839, allocations: 1.738 MB / 0.7967 GB, free: 15.35 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)