Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation") translateModel(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.511/1.511, allocations: 288.4 MB / 303.6 MB, free: 8.156 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.0009508/0.0009508, allocations: 180.5 kB / 372.3 MB, free: 10.12 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.228/1.228, allocations: 205.4 MB / 0.631 GB, free: 9.863 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.0007319/0.000732, allocations: 86.3 kB / 0.7444 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003695, allocations: 19.34 kB / 0.8675 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1836, allocations: 115.3 MB / 0.9801 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.00387/0.1875, allocations: 4.184 MB / 0.9842 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.5431/0.7307, allocations: 136.7 MB / 1.118 GB, free: 2.316 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000699/0.7314, allocations: 26.56 kB / 1.118 GB, free: 2.305 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0006066/0.7321, allocations: 248.4 kB / 1.118 GB, free: 2.211 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1-maint.8.0.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.0.1-maint.8.0.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.0.1-maint.8.0.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.typeBindings: time 0.001159/0.7332, allocations: 359 kB / 1.118 GB, free: 2.109 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.001801/0.735, allocations: 0.6084 MB / 1.119 GB, free: 2.055 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.001168/0.7362, allocations: 1.182 MB / 1.12 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008922/0.7371, allocations: 0.6996 MB / 1.121 GB, free: 1.691 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004614/0.7376, allocations: 327.2 kB / 1.121 GB, free: 1.594 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004487/0.738, allocations: 359.8 kB / 1.121 GB, free: 1.477 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 8.273e-05/0.7381, allocations: 23.72 kB / 1.121 GB, free: 1.477 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006864/0.7388, allocations: 273.9 kB / 1.122 GB, free: 1.465 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.739, allocations: 178.5 kB / 1.122 GB, free: 1.418 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.000342/0.7394, allocations: 464.4 kB / 1.122 GB, free: 1.215 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.7405, allocations: 1.227 MB / 1.124 GB, free: 1.113 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.7405, allocations: 0 / 1.124 GB, free: 1.113 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7405, allocations: 0.8438 kB / 1.124 GB, free: 1.113 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.486e-05/0.7405, allocations: 4 kB / 1.124 GB, free: 1.109 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.001987/0.7425, allocations: 1.296 MB / 1.125 GB, free: 16.3 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.7426, allocations: 11.5 kB / 1.125 GB, free: 16.3 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008874/0.7435, allocations: 216.4 kB / 1.125 GB, free: 16.23 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.7446, allocations: 0.8534 MB / 1.126 GB, free: 15.87 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-05/0.7447, allocations: 68.53 kB / 1.126 GB, free: 15.87 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.7448, allocations: 90.22 kB / 1.126 GB, free: 15.87 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.7464, allocations: 0.9481 MB / 1.127 GB, free: 15.71 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.7464, allocations: 1.5 kB / 1.127 GB, free: 15.71 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.462e-05/0.7465, allocations: 44.91 kB / 1.127 GB, free: 15.71 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.7465, allocations: 24.66 kB / 1.127 GB, free: 15.71 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.748, allocations: 1.107 MB / 1.128 GB, free: 15.7 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00381/0.7518, allocations: 2.704 MB / 1.131 GB, free: 14.82 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.7529, allocations: 0.7045 MB / 1.131 GB, free: 14.78 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004037/0.7533, allocations: 267.7 kB / 1.132 GB, free: 14.77 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.345e-05/0.7534, allocations: 35.88 kB / 1.132 GB, free: 14.77 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006824/0.7541, allocations: 426.4 kB / 1.132 GB, free: 14.69 MB / 0.698 GB Notification: Performance of pre-optimization done (n=69): time 3.517e-06/0.7541, allocations: 0 / 1.132 GB, free: 14.69 MB / 0.698 GB Notification: Performance of matching and sorting (n=69): time 0.002561/0.7567, allocations: 1.085 MB / 1.133 GB, free: 14.47 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/0.7568, allocations: 192.2 kB / 1.133 GB, free: 14.25 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008137/0.7576, allocations: 0.7382 MB / 1.134 GB, free: 14.01 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.7577, allocations: 38.48 kB / 1.134 GB, free: 13.98 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003215/0.758, allocations: 487.1 kB / 1.135 GB, free: 13.73 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.7582, allocations: 226.2 kB / 1.135 GB, free: 13.57 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.7582, allocations: 13.41 kB / 1.135 GB, free: 13.57 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.7583, allocations: 331.9 kB / 1.135 GB, free: 13.26 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004102/0.7587, allocations: 235.9 kB / 1.135 GB, free: 13.22 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004758/0.7592, allocations: 320.4 kB / 1.136 GB, free: 13.13 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008715/0.7601, allocations: 0.551 MB / 1.136 GB, free: 13.03 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.7601, allocations: 0 / 1.136 GB, free: 13.03 MB / 0.698 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001579/0.7617, allocations: 0.7857 MB / 1.137 GB, free: 12.82 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.7617, allocations: 9.344 kB / 1.137 GB, free: 12.82 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.7617, allocations: 1 kB / 1.137 GB, free: 12.82 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/0.7623, allocations: 84.11 kB / 1.137 GB, free: 12.79 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/0.7629, allocations: 143.3 kB / 1.137 GB, free: 12.75 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/0.7648, allocations: 1.534 MB / 1.139 GB, free: 11.39 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006972/0.7655, allocations: 89.53 kB / 1.139 GB, free: 11.34 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.324e-05/0.7656, allocations: 31.72 kB / 1.139 GB, free: 11.34 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (80): * Single equations (assignments): 79 * 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.0005272/0.7661, allocations: 279.8 kB / 1.139 GB, free: 11.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.7663, allocations: 91.03 kB / 1.139 GB, free: 11.15 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002159/0.7684, allocations: 0.986 MB / 1.14 GB, free: 10.86 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.7685, allocations: 8.375 kB / 1.14 GB, free: 10.86 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.7685, allocations: 3.578 kB / 1.14 GB, free: 10.86 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.7685, allocations: 3.984 kB / 1.14 GB, free: 10.86 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.7696, allocations: 0.9212 MB / 1.141 GB, free: 10.43 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.7696, allocations: 1.469 kB / 1.141 GB, free: 10.43 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005835/0.7702, allocations: 141.9 kB / 1.141 GB, free: 10.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005228/0.7707, allocations: 86.88 kB / 1.141 GB, free: 10.36 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.953e-05/0.7708, allocations: 24.92 kB / 1.141 GB, free: 10.36 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/0.7725, allocations: 1.552 MB / 1.143 GB, free: 8.988 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.7725, allocations: 1.469 kB / 1.143 GB, free: 8.988 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.7742, allocations: 0.8494 MB / 1.144 GB, free: 8.73 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004011/0.7747, allocations: 281.8 kB / 1.144 GB, free: 8.535 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.7748, allocations: 13.66 kB / 1.144 GB, free: 8.535 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005415/0.7753, allocations: 68 kB / 1.144 GB, free: 8.516 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.7755, allocations: 60.83 kB / 1.144 GB, free: 8.492 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-05/0.7756, allocations: 34.25 kB / 1.144 GB, free: 8.484 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0008036/0.7764, allocations: 0.5094 MB / 1.145 GB, free: 8.316 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7764, allocations: 0 / 1.145 GB, free: 8.316 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009721/0.7774, allocations: 294.6 kB / 1.145 GB, free: 8.254 MB / 0.698 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * 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.001259/0.7786, allocations: 0.5557 MB / 1.145 GB, free: 7.992 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001522/0.7802, allocations: 0.7453 MB / 1.146 GB, free: 7.773 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7802, allocations: 5.438 kB / 1.146 GB, free: 7.77 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000831/0.781, allocations: 483.4 kB / 1.147 GB, free: 7.586 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/0.7828, allocations: 389.1 kB / 1.147 GB, free: 7.457 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.7871, allocations: 2.347 MB / 1.149 GB, free: 6.133 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00061/0.7877, allocations: 1.069 MB / 1.15 GB, free: 5.285 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009673/0.7887, allocations: 274.5 kB / 1.151 GB, free: 5.145 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.789, allocations: 100.4 kB / 1.151 GB, free: 5.125 MB / 0.698 GB Notification: Performance of SimCode: time 1.312e-06/0.789, allocations: 4 kB / 1.151 GB, free: 5.121 MB / 0.698 GB Notification: Performance of Templates: time 0.02462/0.8136, allocations: 14.63 MB / 1.165 GB, free: 13.77 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1)