Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.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.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements") translateModel(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.746/2.746, allocations: 287.5 MB / 302.4 MB, free: 8.281 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.00214/0.002139, allocations: 186.3 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.4 MB / 0.6297 GB, free: 10.59 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.0009076/0.0009075, allocations: 97.55 kB / 0.743 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004771/0.0004772, allocations: 10 kB / 0.8658 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2149, allocations: 115.3 MB / 0.9783 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements): time 0.8889/1.104, allocations: 146.6 MB / 1.121 GB, free: 0.6836 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.04622/1.15, allocations: 24.81 MB / 1.146 GB, free: 10.97 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004944/1.155, allocations: 72.31 kB / 1.146 GB, free: 10.95 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.003948/1.159, allocations: 0.8955 MB / 1.147 GB, free: 10.72 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.007642/1.167, allocations: 1.443 MB / 1.148 GB, free: 10.11 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.006569/1.173, allocations: 1.247 MB / 1.149 GB, free: 9.746 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.01025/1.184, allocations: 4.818 MB / 1.154 GB, free: 8.152 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008275/1.192, allocations: 3.04 MB / 1.157 GB, free: 6.938 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004508/1.197, allocations: 1.404 MB / 1.158 GB, free: 6.219 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005561/1.202, allocations: 1.924 MB / 1.16 GB, free: 5.098 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.001425/1.204, allocations: 124.5 kB / 1.16 GB, free: 5.094 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003935/1.208, allocations: 0.5519 MB / 1.161 GB, free: 4.895 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.002054/1.21, allocations: 0.7641 MB / 1.162 GB, free: 4.375 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.002127/1.212, allocations: 0.6776 MB / 1.162 GB, free: 3.945 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.009326/1.221, allocations: 4.573 MB / 1.167 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/1.221, allocations: 0 / 1.167 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.436e-06/1.221, allocations: 0 / 1.167 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002708/1.222, allocations: 4 kB / 1.167 GB, free: 0.6953 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: 860 * Number of variables: 860 Notification: Performance of Generate backend data structure: time 0.01665/1.238, allocations: 4.011 MB / 1.171 GB, free: 14 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/1.238, allocations: 12.7 kB / 1.171 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02392/1.262, allocations: 2.715 MB / 1.173 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007917/1.27, allocations: 2.27 MB / 1.176 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003145/1.271, allocations: 249.2 kB / 1.176 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001631/1.272, allocations: 330.8 kB / 1.176 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0342/1.307, allocations: 5.224 MB / 1.181 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002127/1.307, allocations: 3.906 kB / 1.181 GB, free: 7.93 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001985/1.309, allocations: 142.2 kB / 1.181 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/1.309, allocations: 81.56 kB / 1.181 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.043/1.352, allocations: 6.333 MB / 1.188 GB, free: 4.746 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 preOpt removeSimpleEquations (simulation): time 0.0663/1.418, allocations: 15.47 MB / 1.203 GB, free: 4.812 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01623/1.435, allocations: 4.099 MB / 1.207 GB, free: 0.707 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009873/1.445, allocations: 2.643 MB / 1.209 GB, free: 14.05 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001582/1.446, allocations: 0.6736 MB / 1.21 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009793/1.456, allocations: 2.479 MB / 1.212 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=286): time 7.013e-06/1.456, allocations: 0 / 1.212 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of matching and sorting (n=286): time 0.03881/1.495, allocations: 8.025 MB / 1.22 GB, free: 2.586 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/1.495, allocations: 218.2 kB / 1.22 GB, free: 2.328 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005376/1.501, allocations: 2.472 MB / 1.223 GB, free: 15.83 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0009015/1.501, allocations: 77.7 kB / 1.223 GB, free: 15.75 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.001911/1.503, allocations: 1.416 MB / 1.224 GB, free: 14.32 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.001946/1.505, allocations: 0.9511 MB / 1.225 GB, free: 13.35 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003627/1.506, allocations: 56 kB / 1.225 GB, free: 13.3 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002948/1.506, allocations: 403.1 kB / 1.226 GB, free: 12.9 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008499/1.515, allocations: 1.968 MB / 1.228 GB, free: 10.93 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009317/1.524, allocations: 2.278 MB / 1.23 GB, free: 8.574 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009335/1.533, allocations: 2.138 MB / 1.232 GB, free: 6.418 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.415e-05/1.533, allocations: 0 / 1.232 GB, free: 6.418 MB / 0.7605 GB Notification: Performance of matching and sorting (n=325) (initialization): time 0.02212/1.556, allocations: 5.135 MB / 1.237 GB, free: 1.234 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/1.556, allocations: 8 kB / 1.237 GB, free: 1.227 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/1.556, allocations: 4 kB / 1.237 GB, free: 1.223 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002182/1.558, allocations: 0.5573 MB / 1.237 GB, free: 0.6641 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007759/1.566, allocations: 0.7488 MB / 1.238 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/1.578, allocations: 5.284 MB / 1.243 GB, free: 10.49 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006771/1.585, allocations: 0.5308 MB / 1.244 GB, free: 9.961 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007134/1.586, allocations: 111.9 kB / 1.244 GB, free: 9.852 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.intGai.nextTimeEvent,$whenCondition3,$whenCondition2,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,intGai.nextTimeEvent,$PRE.intGai.nextTimeEventScaled,intGai.nextTimeEventScaled,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 (280): * Single equations (assignments): 279 * 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: 1 {(4,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003258/1.589, allocations: 0.967 MB / 1.245 GB, free: 8.875 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/1.59, allocations: 288.5 kB / 1.245 GB, free: 8.59 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02385/1.614, allocations: 5.705 MB / 1.251 GB, free: 2.824 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.179e-05/1.614, allocations: 28 kB / 1.251 GB, free: 2.797 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.293e-05/1.614, allocations: 11.95 kB / 1.251 GB, free: 2.785 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.393e-05/1.614, allocations: 15.94 kB / 1.251 GB, free: 2.77 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03456/1.649, allocations: 9.623 MB / 1.26 GB, free: 9.016 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.622e-05/1.649, allocations: 0 / 1.26 GB, free: 9.016 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00753/1.656, allocations: 0.7099 MB / 1.261 GB, free: 8.305 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002498/1.659, allocations: 0.5145 MB / 1.261 GB, free: 7.781 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007638/1.66, allocations: 87.88 kB / 1.261 GB, free: 7.695 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/1.673, allocations: 6.949 MB / 1.268 GB, free: 460 kB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/1.673, allocations: 0 / 1.268 GB, free: 460 kB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03238/1.705, allocations: 8.08 MB / 1.276 GB, free: 8.281 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003441/1.709, allocations: 0.8753 MB / 1.277 GB, free: 7.383 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/1.71, allocations: 59.98 kB / 1.277 GB, free: 7.324 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006545/1.717, allocations: 395.4 kB / 1.277 GB, free: 6.938 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001093/1.718, allocations: 186.1 kB / 1.278 GB, free: 6.754 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006266/1.718, allocations: 103.9 kB / 1.278 GB, free: 6.652 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.00493/1.723, allocations: 1.794 MB / 1.279 GB, free: 4.848 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8.31e-07/1.723, allocations: 3.938 kB / 1.279 GB, free: 4.844 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.006057/1.73, allocations: 1.083 MB / 1.281 GB, free: 3.758 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (thermalZoneThreeElements.volAir.dynBal.U,thermalZoneThreeElements.volAir.dynBal.m,thermalZoneThreeElements.extWallRC.thermCapExt[1].T,thermalZoneThreeElements.intWallRC.thermCapInt[1].T,thermalZoneThreeElements.floorRC.thermCapExt[1].T) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,intGai.nextTimeEvent,intGai.nextTimeEventScaled) * Number of discrete states: 4 (intGai.nextTimeEvent,intGai.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,100.0%) 36,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003819/1.733, allocations: 0.9742 MB / 1.281 GB, free: 3.117 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.02103/1.755, allocations: 4.898 MB / 1.286 GB, free: 14.18 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.755, allocations: 0 / 1.286 GB, free: 14.18 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.01159/1.766, allocations: 2.858 MB / 1.289 GB, free: 11.29 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006854/1.773, allocations: 0.6513 MB / 1.29 GB, free: 10.64 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02855/1.802, allocations: 9.566 MB / 1.299 GB, free: 1.031 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004948/1.807, allocations: 2.534 MB / 1.302 GB, free: 14.47 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.008545/1.815, allocations: 1.117 MB / 1.303 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002716/1.818, allocations: 259.3 kB / 1.303 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of SimCode: time 1.423e-06/1.818, allocations: 0 / 1.303 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of Templates: time 0.132/1.95, allocations: 45.21 MB / 1.347 GB, free: 124 kB / 0.8698 GB make -j1 -f Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.makefile (rm -f Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; mkfifo Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe >> ../files/Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.sim & ./Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomThreeElements.pipe 2>&1)