Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation") translateModel(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.553/1.553, allocations: 292.3 MB / 308.1 MB, free: 4.238 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.001153/0.001153, allocations: 178.4 kB / 376.9 MB, free: 1.801 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.346/1.346, allocations: 205 MB / 0.6353 GB, free: 9.785 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009359/0.000936, allocations: 92.17 kB / 0.7479 GB, free: 61.15 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009659/0.0009659, allocations: 55.92 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2367, allocations: 114.6 MB / 0.9822 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006458/0.2432, allocations: 4.869 MB / 0.987 GB, free: 5.477 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.5578/0.8011, allocations: 148.1 MB / 1.132 GB, free: 6.539 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.8021, allocations: 28.44 kB / 1.132 GB, free: 6.527 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.8032, allocations: 276.2 kB / 1.132 GB, free: 6.375 MB / 0.7448 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.typeBindings: time 0.001801/0.805, allocations: 362.8 kB / 1.132 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.002047/0.8071, allocations: 0.6981 MB / 1.133 GB, free: 5.793 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.001395/0.8085, allocations: 1.258 MB / 1.134 GB, free: 5.18 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009628/0.8095, allocations: 0.7104 MB / 1.135 GB, free: 4.797 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005803/0.8101, allocations: 424.2 kB / 1.135 GB, free: 4.602 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003823/0.8104, allocations: 474.9 kB / 1.136 GB, free: 4.352 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.8106, allocations: 55.78 kB / 1.136 GB, free: 4.352 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006403/0.8112, allocations: 339.2 kB / 1.136 GB, free: 4.266 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.8114, allocations: 243.5 kB / 1.136 GB, free: 4.129 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0003157/0.8117, allocations: 0.5272 MB / 1.137 GB, free: 3.77 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.8129, allocations: 1.584 MB / 1.138 GB, free: 3.102 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8129, allocations: 0.5625 kB / 1.138 GB, free: 3.102 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.62e-07/0.8129, allocations: 0 / 1.138 GB, free: 3.102 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.8129, allocations: 0 / 1.138 GB, free: 3.102 MB / 0.7448 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.001893/0.8148, allocations: 1.544 MB / 1.14 GB, free: 2.055 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.8148, allocations: 17.38 kB / 1.14 GB, free: 2.047 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007792/0.8156, allocations: 205.7 kB / 1.14 GB, free: 1.973 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009545/0.8166, allocations: 0.8397 MB / 1.141 GB, free: 1.441 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.444e-05/0.8167, allocations: 72.52 kB / 1.141 GB, free: 1.414 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.372e-05/0.8167, allocations: 86.75 kB / 1.141 GB, free: 1.387 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.8179, allocations: 0.9615 MB / 1.142 GB, free: 0.9375 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.818, allocations: 0 / 1.142 GB, free: 0.9375 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.478e-05/0.818, allocations: 37.47 kB / 1.142 GB, free: 0.9102 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.8181, allocations: 27 kB / 1.142 GB, free: 0.9062 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.8194, allocations: 1.114 MB / 1.143 GB, free: 0.6484 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003259/0.8227, allocations: 2.657 MB / 1.146 GB, free: 15.17 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.8238, allocations: 0.7075 MB / 1.146 GB, free: 14.9 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004057/0.8242, allocations: 272.3 kB / 1.147 GB, free: 14.79 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 7.542e-05/0.8243, allocations: 24.48 kB / 1.147 GB, free: 14.79 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006317/0.8249, allocations: 413.4 kB / 1.147 GB, free: 14.61 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=69): time 1.814e-06/0.8249, allocations: 4 kB / 1.147 GB, free: 14.61 MB / 0.7605 GB Notification: Performance of matching and sorting (n=69): time 0.002502/0.8274, allocations: 1.079 MB / 1.148 GB, free: 14.14 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.8275, allocations: 190.8 kB / 1.148 GB, free: 13.91 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007539/0.8283, allocations: 0.7348 MB / 1.149 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 4.893e-05/0.8284, allocations: 44.61 kB / 1.149 GB, free: 13.57 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003195/0.8287, allocations: 495 kB / 1.15 GB, free: 13.18 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.8289, allocations: 228.4 kB / 1.15 GB, free: 13 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.829, allocations: 141.3 kB / 1.15 GB, free: 12.94 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.8292, allocations: 333.4 kB / 1.15 GB, free: 12.62 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004057/0.8296, allocations: 236.6 kB / 1.151 GB, free: 12.54 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/0.8301, allocations: 320.3 kB / 1.151 GB, free: 12.39 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000867/0.8309, allocations: 0.5396 MB / 1.151 GB, free: 12.15 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.831, allocations: 0 / 1.151 GB, free: 12.15 MB / 0.7605 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001547/0.8325, allocations: 0.7823 MB / 1.152 GB, free: 11.83 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.8325, allocations: 3.406 kB / 1.152 GB, free: 11.83 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.8326, allocations: 3.156 kB / 1.152 GB, free: 11.83 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00055/0.8331, allocations: 87.75 kB / 1.152 GB, free: 11.8 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/0.8336, allocations: 140.8 kB / 1.152 GB, free: 11.79 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.8355, allocations: 1.534 MB / 1.154 GB, free: 10.36 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000533/0.836, allocations: 73.88 kB / 1.154 GB, free: 10.32 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.822e-05/0.8361, allocations: 41.14 kB / 1.154 GB, free: 10.3 MB / 0.7605 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 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003797/0.8365, allocations: 276.2 kB / 1.154 GB, free: 10.1 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.8366, allocations: 97.89 kB / 1.154 GB, free: 10.05 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001976/0.8386, allocations: 0.9758 MB / 1.155 GB, free: 9.656 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.8386, allocations: 6.688 kB / 1.155 GB, free: 9.656 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.8386, allocations: 0 / 1.155 GB, free: 9.656 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.8386, allocations: 6.734 kB / 1.155 GB, free: 9.656 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.8397, allocations: 0.9359 MB / 1.156 GB, free: 9.16 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.8397, allocations: 0 / 1.156 GB, free: 9.16 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004561/0.8402, allocations: 132.5 kB / 1.156 GB, free: 9.148 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004732/0.8406, allocations: 84.91 kB / 1.156 GB, free: 9.129 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.301e-05/0.8407, allocations: 28.78 kB / 1.156 GB, free: 9.113 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00159/0.8423, allocations: 1.555 MB / 1.158 GB, free: 7.656 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8423, allocations: 3.516 kB / 1.158 GB, free: 7.656 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.8447, allocations: 1.88 MB / 1.16 GB, free: 6.488 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/0.845, allocations: 267.8 kB / 1.16 GB, free: 6.285 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.172e-05/0.8451, allocations: 25.88 kB / 1.16 GB, free: 6.27 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004647/0.8456, allocations: 49.44 kB / 1.16 GB, free: 6.258 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.8457, allocations: 59.28 kB / 1.16 GB, free: 6.246 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-05/0.8458, allocations: 27.16 kB / 1.16 GB, free: 6.242 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0005413/0.8463, allocations: 0.5172 MB / 1.161 GB, free: 6.027 MB / 0.7605 GB Notification: Performance of sort global known variables: time 2e-07/0.8464, allocations: 0 / 1.161 GB, free: 6.027 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0007516/0.8471, allocations: 295 kB / 1.161 GB, free: 5.938 MB / 0.7605 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001151/0.8483, allocations: 0.5574 MB / 1.162 GB, free: 5.691 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001303/0.8496, allocations: 0.7369 MB / 1.162 GB, free: 5.383 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.8496, allocations: 0 / 1.162 GB, free: 5.383 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0007385/0.8503, allocations: 485 kB / 1.163 GB, free: 5.148 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.8517, allocations: 414.2 kB / 1.163 GB, free: 5.039 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004132/0.8559, allocations: 2.803 MB / 1.166 GB, free: 3.312 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006641/0.8566, allocations: 1.094 MB / 1.167 GB, free: 2.582 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0008868/0.8575, allocations: 270.6 kB / 1.167 GB, free: 2.52 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.8577, allocations: 102.9 kB / 1.167 GB, free: 2.504 MB / 0.7605 GB Notification: Performance of SimCode: time 5.81e-07/0.8577, allocations: 4 kB / 1.167 GB, free: 2.5 MB / 0.7605 GB Notification: Performance of Templates: time 0.02436/0.8821, allocations: 15.29 MB / 1.182 GB, free: 1.133 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile (rm -f Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.sim & ./Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1)