Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.637/1.637, allocations: 287.5 MB / 302.6 MB, free: 8.164 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001832/0.001832, allocations: 180.5 kB / 371.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.4 MB / 0.6298 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009843/0.0009843, allocations: 96.78 kB / 0.7432 GB, free: 6.539 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003938/0.0003938, allocations: 11.09 kB / 0.8661 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2951, allocations: 115.3 MB / 0.9787 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.8523/1.148, allocations: 159.7 MB / 1.135 GB, free: 15.79 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.01696/1.165, allocations: 11.53 MB / 1.146 GB, free: 11.94 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001668/1.166, allocations: 24.44 kB / 1.146 GB, free: 11.93 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.001303/1.168, allocations: 314 kB / 1.146 GB, free: 11.79 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0/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.0.0/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.0.0/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.typeBindings: time 0.00291/1.17, allocations: 0.7373 MB / 1.147 GB, free: 11.46 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.004809/1.175, allocations: 1.317 MB / 1.148 GB, free: 11.1 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.003703/1.179, allocations: 2.334 MB / 1.15 GB, free: 10.69 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002162/1.181, allocations: 1.345 MB / 1.152 GB, free: 10.25 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002791/1.184, allocations: 1.001 MB / 1.153 GB, free: 9.832 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/1.185, allocations: 0.6311 MB / 1.153 GB, free: 9.527 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0001386/1.185, allocations: 40.84 kB / 1.153 GB, free: 9.527 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002642/1.188, allocations: 0.8157 MB / 1.154 GB, free: 9.281 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0004244/1.188, allocations: 310.5 kB / 1.155 GB, free: 9.141 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0004715/1.189, allocations: 281.4 kB / 1.155 GB, free: 9.059 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.002614/1.191, allocations: 1.775 MB / 1.157 GB, free: 8.023 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/1.191, allocations: 3.938 kB / 1.157 GB, free: 8.02 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.544e-06/1.191, allocations: 0 / 1.157 GB, free: 8.02 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.081e-05/1.191, allocations: 0 / 1.157 GB, free: 8.02 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.003428/1.195, allocations: 1.558 MB / 1.158 GB, free: 6.801 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/1.195, allocations: 8 kB / 1.158 GB, free: 6.801 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002582/1.198, allocations: 403.7 kB / 1.158 GB, free: 6.625 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001925/1.199, allocations: 0.9551 MB / 1.159 GB, free: 5.859 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/1.2, allocations: 102.3 kB / 1.159 GB, free: 5.812 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/1.2, allocations: 123.6 kB / 1.16 GB, free: 5.773 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003327/1.203, allocations: 1.435 MB / 1.161 GB, free: 4.844 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/1.203, allocations: 1.188 kB / 1.161 GB, free: 4.844 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001412/1.203, allocations: 57.91 kB / 1.161 GB, free: 4.801 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.48e-05/1.203, allocations: 31.53 kB / 1.161 GB, free: 4.801 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003257/1.207, allocations: 1.526 MB / 1.163 GB, free: 4.062 MB / 0.698 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00849/1.215, allocations: 4.911 MB / 1.167 GB, free: 8 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002631/1.218, allocations: 1.42 MB / 1.169 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/1.219, allocations: 450.8 kB / 1.169 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000862/1.22, allocations: 439 kB / 1.17 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/1.221, allocations: 0.6186 MB / 1.17 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=98): time 3.336e-06/1.221, allocations: 2.875 kB / 1.17 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of matching and sorting (n=98): time 0.003983/1.225, allocations: 1.546 MB / 1.172 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/1.225, allocations: 189 kB / 1.172 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/1.226, allocations: 0.8253 MB / 1.173 GB, free: 12.49 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 9.635e-05/1.226, allocations: 42.83 kB / 1.173 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005083/1.227, allocations: 0.5641 MB / 1.173 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/1.227, allocations: 332.5 kB / 1.174 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.91e-05/1.227, allocations: 18.91 kB / 1.174 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001376/1.227, allocations: 338 kB / 1.174 GB, free: 11.32 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00071/1.228, allocations: 369.3 kB / 1.174 GB, free: 11.13 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008354/1.229, allocations: 0.5343 MB / 1.175 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/1.23, allocations: 0.9 MB / 1.176 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/1.231, allocations: 6.094 kB / 1.176 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002543/1.233, allocations: 1.154 MB / 1.177 GB, free: 9.637 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/1.233, allocations: 9.656 kB / 1.177 GB, free: 9.633 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/1.233, allocations: 2.938 kB / 1.177 GB, free: 9.633 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005956/1.234, allocations: 94.03 kB / 1.177 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/1.235, allocations: 239 kB / 1.177 GB, free: 9.531 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/1.237, allocations: 1.536 MB / 1.179 GB, free: 8.023 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/1.238, allocations: 143.1 kB / 1.179 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.435e-05/1.238, allocations: 48.56 kB / 1.179 GB, free: 7.918 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0007796/1.239, allocations: 324.5 kB / 1.179 GB, free: 7.676 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/1.239, allocations: 110.2 kB / 1.179 GB, free: 7.621 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002944/1.242, allocations: 1.348 MB / 1.181 GB, free: 6.848 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/1.242, allocations: 11.25 kB / 1.181 GB, free: 6.848 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/1.242, allocations: 0 / 1.181 GB, free: 6.848 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/1.242, allocations: 7.969 kB / 1.181 GB, free: 6.84 MB / 0.7136 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004704/1.247, allocations: 2.687 MB / 1.183 GB, free: 5.023 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/1.247, allocations: 0 / 1.183 GB, free: 5.023 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009639/1.248, allocations: 212.5 kB / 1.183 GB, free: 4.977 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005058/1.248, allocations: 87.06 kB / 1.184 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7e-05/1.249, allocations: 32.44 kB / 1.184 GB, free: 4.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001826/1.25, allocations: 1.559 MB / 1.185 GB, free: 3.391 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/1.25, allocations: 2.562 kB / 1.185 GB, free: 3.391 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002532/1.253, allocations: 1.228 MB / 1.186 GB, free: 2.703 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006175/1.254, allocations: 344.5 kB / 1.187 GB, free: 2.414 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/1.254, allocations: 24.89 kB / 1.187 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008847/1.255, allocations: 103.9 kB / 1.187 GB, free: 2.348 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/1.255, allocations: 76.8 kB / 1.187 GB, free: 2.309 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-05/1.255, allocations: 45.16 kB / 1.187 GB, free: 2.293 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0008109/1.256, allocations: 0.563 MB / 1.187 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.7e-07/1.256, allocations: 0 / 1.187 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001383/1.257, allocations: 447.7 kB / 1.188 GB, free: 1.828 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001574/1.259, allocations: 0.6579 MB / 1.188 GB, free: 1.5 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002181/1.261, allocations: 1.071 MB / 1.189 GB, free: 0.9492 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.261, allocations: 3.125 kB / 1.189 GB, free: 0.9492 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001108/1.262, allocations: 0.631 MB / 1.19 GB, free: 0.6055 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/1.264, allocations: 476.9 kB / 1.191 GB, free: 376 kB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005845/1.27, allocations: 2.904 MB / 1.193 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008201/1.271, allocations: 1.165 MB / 1.195 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.001631/1.273, allocations: 377.9 kB / 1.195 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003462/1.273, allocations: 131.4 kB / 1.195 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of SimCode: time 1.563e-06/1.273, allocations: 0 / 1.195 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of Templates: time 0.03817/1.311, allocations: 20.94 MB / 1.215 GB, free: 8.461 MB / 0.7448 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)