Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.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.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") translateModel(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.584/1.584, allocations: 287.5 MB / 302.6 MB, free: 8.27 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.001782/0.001782, allocations: 184.8 kB / 371.2 MB, free: 10.84 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.37/1.37, allocations: 205.4 MB / 0.6298 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.0008339/0.0008339, allocations: 104.2 kB / 0.7432 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004069/0.0004069, allocations: 11.08 kB / 0.8661 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1894, allocations: 115.3 MB / 0.9787 GB, free: 28.22 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.5479/0.7374, allocations: 145.7 MB / 1.121 GB, free: 0.7812 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.02968/0.7671, allocations: 24.56 MB / 1.145 GB, free: 11.33 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004529/0.7717, allocations: 63.62 kB / 1.145 GB, free: 11.31 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.002537/0.7742, allocations: 0.8645 MB / 1.146 GB, free: 11.09 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.004811/0.7791, allocations: 1.381 MB / 1.147 GB, free: 10.52 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.004067/0.7832, allocations: 1.17 MB / 1.148 GB, free: 10.28 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.006494/0.7897, allocations: 4.511 MB / 1.153 GB, free: 8.777 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005033/0.7947, allocations: 3.38 MB / 1.156 GB, free: 7.523 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003087/0.7978, allocations: 1.322 MB / 1.157 GB, free: 6.988 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003055/0.8009, allocations: 1.798 MB / 1.159 GB, free: 6.113 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0004919/0.8014, allocations: 107.6 kB / 1.159 GB, free: 6.113 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00182/0.8033, allocations: 0.5468 MB / 1.16 GB, free: 5.906 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0007242/0.804, allocations: 0.7108 MB / 1.16 GB, free: 5.426 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0008968/0.8049, allocations: 0.6262 MB / 1.161 GB, free: 5.023 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.004829/0.8097, allocations: 4.255 MB / 1.165 GB, free: 2.016 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.8098, allocations: 0 / 1.165 GB, free: 2.016 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8098, allocations: 0 / 1.165 GB, free: 2.016 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001698/0.81, allocations: 0.9375 kB / 1.165 GB, free: 2.016 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: 804 * Number of variables: 804 Notification: Performance of Generate backend data structure: time 0.00888/0.8189, allocations: 3.755 MB / 1.169 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.8189, allocations: 8.281 kB / 1.169 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01206/0.831, allocations: 2.697 MB / 1.171 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004718/0.8357, allocations: 2.25 MB / 1.174 GB, free: 12.59 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.8359, allocations: 234.6 kB / 1.174 GB, free: 12.49 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005009/0.8364, allocations: 307.1 kB / 1.174 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009811/0.8463, allocations: 4.991 MB / 1.179 GB, free: 9.504 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.873e-05/0.8463, allocations: 2.906 kB / 1.179 GB, free: 9.504 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003171/0.8467, allocations: 127.8 kB / 1.179 GB, free: 9.406 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.491e-05/0.8467, allocations: 76.5 kB / 1.179 GB, free: 9.406 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01291/0.8596, allocations: 6.101 MB / 1.185 GB, free: 6.445 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.02737/0.887, allocations: 14.27 MB / 1.199 GB, free: 8.703 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.8979, allocations: 4.513 MB / 1.204 GB, free: 4.188 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005316/0.9033, allocations: 2.387 MB / 1.206 GB, free: 1.789 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001011/0.9043, allocations: 0.6775 MB / 1.207 GB, free: 0.9805 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005844/0.9102, allocations: 2.356 MB / 1.209 GB, free: 14.58 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=268): time 6.632e-06/0.9102, allocations: 0 / 1.209 GB, free: 14.58 MB / 0.7448 GB Notification: Performance of matching and sorting (n=268): time 0.02023/0.9304, allocations: 7.254 MB / 1.216 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.9306, allocations: 210 kB / 1.216 GB, free: 6.957 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004348/0.935, allocations: 2.356 MB / 1.218 GB, free: 4.57 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0007597/0.9358, allocations: 81.69 kB / 1.219 GB, free: 4.484 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.001719/0.9375, allocations: 1.333 MB / 1.22 GB, free: 3.133 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.001464/0.939, allocations: 0.8856 MB / 1.221 GB, free: 2.234 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004006/0.9394, allocations: 48 kB / 1.221 GB, free: 2.188 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002758/0.9397, allocations: 406.8 kB / 1.221 GB, free: 1.785 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004597/0.9443, allocations: 1.882 MB / 1.223 GB, free: 15.9 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004752/0.949, allocations: 2.175 MB / 1.225 GB, free: 13.65 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009074/0.9581, allocations: 4.044 MB / 1.229 GB, free: 9.512 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-06/0.9582, allocations: 4 kB / 1.229 GB, free: 9.508 MB / 0.7605 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01138/0.9696, allocations: 4.768 MB / 1.234 GB, free: 4.688 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.9696, allocations: 8 kB / 1.234 GB, free: 4.68 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.9697, allocations: 4.219 kB / 1.234 GB, free: 4.676 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009072/0.9706, allocations: 349 kB / 1.234 GB, free: 4.332 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003794/0.9744, allocations: 0.7487 MB / 1.235 GB, free: 3.582 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005324/0.9797, allocations: 3.911 MB / 1.239 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003633/0.9834, allocations: 0.509 MB / 1.239 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003965/0.9838, allocations: 107.9 kB / 1.239 GB, free: 14.91 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 (276): * Single equations (assignments): 275 * 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 {(3,100.0%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002178/0.986, allocations: 0.9239 MB / 1.24 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007656/0.9867, allocations: 264.7 kB / 1.24 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/0.9997, allocations: 5.335 MB / 1.246 GB, free: 8.316 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.834e-05/0.9997, allocations: 24 kB / 1.246 GB, free: 8.293 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.747e-05/0.9998, allocations: 12 kB / 1.246 GB, free: 8.281 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/0.9998, allocations: 11.95 kB / 1.246 GB, free: 8.27 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02104/1.021, allocations: 9.025 MB / 1.254 GB, free: 15.12 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/1.021, allocations: 3.938 kB / 1.254 GB, free: 15.11 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003937/1.025, allocations: 0.6864 MB / 1.255 GB, free: 14.43 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/1.026, allocations: 387.4 kB / 1.255 GB, free: 14.04 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005603/1.027, allocations: 71.94 kB / 1.256 GB, free: 13.97 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006649/1.033, allocations: 5.795 MB / 1.261 GB, free: 7.875 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.033, allocations: 0 / 1.261 GB, free: 7.875 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01884/1.052, allocations: 7.602 MB / 1.269 GB, free: 184 kB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/1.054, allocations: 0.8326 MB / 1.269 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000827/1.055, allocations: 52 kB / 1.269 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003302/1.059, allocations: 383.5 kB / 1.27 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005047/1.059, allocations: 174.3 kB / 1.27 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00035/1.059, allocations: 103.9 kB / 1.27 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.003009/1.062, allocations: 1.709 MB / 1.272 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.9e-07/1.062, allocations: 0 / 1.272 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.003538/1.066, allocations: 1.005 MB / 1.273 GB, free: 11.89 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (thermalZoneTwoElements.volAir.dynBal.U,thermalZoneTwoElements.volAir.dynBal.m,thermalZoneTwoElements.extWallRC.thermCapExt[1].T,thermalZoneTwoElements.intWallRC.thermCapInt[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 (251): * Single equations (assignments): 244 * 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 {(3,100.0%) 25,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002919/1.069, allocations: 0.9797 MB / 1.274 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.01099/1.08, allocations: 4.594 MB / 1.278 GB, free: 6.602 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/1.08, allocations: 8 kB / 1.278 GB, free: 6.594 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.006294/1.086, allocations: 2.656 MB / 1.281 GB, free: 3.91 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004136/1.09, allocations: 0.6038 MB / 1.281 GB, free: 3.309 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/1.107, allocations: 9.028 MB / 1.29 GB, free: 10.24 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002903/1.11, allocations: 2.431 MB / 1.293 GB, free: 7.773 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0053/1.115, allocations: 1.115 MB / 1.294 GB, free: 6.656 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/1.117, allocations: 251.3 kB / 1.294 GB, free: 6.41 MB / 0.823 GB Notification: Performance of SimCode: time 8.42e-07/1.117, allocations: 0 / 1.294 GB, free: 6.41 MB / 0.823 GB Notification: Performance of Templates: time 0.07084/1.188, allocations: 41.81 MB / 1.335 GB, free: 12.8 MB / 0.8698 GB make -j1 -f Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.makefile (rm -f Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & ./Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1)