Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.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.SimpleRoomFourElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements") translateModel(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.905/2.905, allocations: 287.5 MB / 302.4 MB, free: 8.227 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.002606/0.002605, allocations: 180.6 kB / 371 MB, free: 10.86 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.246/2.246, allocations: 205.4 MB / 0.6297 GB, free: 10.62 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.0008837/0.0008837, allocations: 85.23 kB / 0.743 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007006/0.0007008, allocations: 12.11 kB / 0.8658 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2503, allocations: 115.3 MB / 0.9783 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements): time 0.9187/1.169, allocations: 147.8 MB / 1.123 GB, free: 0.6172 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.05013/1.219, allocations: 25.22 MB / 1.147 GB, free: 10.44 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005971/1.225, allocations: 71.88 kB / 1.147 GB, free: 10.41 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.005139/1.23, allocations: 0.952 MB / 1.148 GB, free: 10.16 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.01078/1.241, allocations: 1.572 MB / 1.15 GB, free: 9.418 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.009732/1.251, allocations: 1.375 MB / 1.151 GB, free: 8.871 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.01492/1.266, allocations: 5.433 MB / 1.156 GB, free: 6.82 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01236/1.278, allocations: 3.274 MB / 1.16 GB, free: 4.879 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006561/1.285, allocations: 1.546 MB / 1.161 GB, free: 4.086 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007787/1.293, allocations: 2.112 MB / 1.163 GB, free: 2.859 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.001925/1.295, allocations: 138.4 kB / 1.163 GB, free: 2.859 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005315/1.3, allocations: 0.5815 MB / 1.164 GB, free: 2.648 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.002917/1.303, allocations: 0.8502 MB / 1.165 GB, free: 2.066 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.003018/1.306, allocations: 0.7427 MB / 1.165 GB, free: 1.605 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.01337/1.32, allocations: 4.997 MB / 1.17 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/1.32, allocations: 0 / 1.17 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of FrontEnd: time 3.547e-06/1.32, allocations: 0 / 1.17 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0003247/1.32, allocations: 0 / 1.17 GB, free: 14.04 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 940 * Number of variables: 940 Notification: Performance of Generate backend data structure: time 0.02269/1.343, allocations: 4.313 MB / 1.175 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/1.343, allocations: 11.97 kB / 1.175 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02396/1.367, allocations: 2.758 MB / 1.177 GB, free: 9.879 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008163/1.375, allocations: 2.409 MB / 1.18 GB, free: 8.203 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003598/1.376, allocations: 274 kB / 1.18 GB, free: 8.082 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001627/1.377, allocations: 362.5 kB / 1.18 GB, free: 7.961 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02357/1.401, allocations: 5.565 MB / 1.186 GB, free: 4.777 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001616/1.401, allocations: 6.094 kB / 1.186 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001378/1.403, allocations: 153.8 kB / 1.186 GB, free: 4.656 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/1.403, allocations: 87.16 kB / 1.186 GB, free: 4.656 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02938/1.432, allocations: 6.67 MB / 1.192 GB, free: 15.97 MB / 0.7292 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.05413/1.486, allocations: 17.13 MB / 1.209 GB, free: 14.08 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01907/1.505, allocations: 4.492 MB / 1.214 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01208/1.517, allocations: 2.986 MB / 1.216 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001767/1.519, allocations: 0.6699 MB / 1.217 GB, free: 5.785 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01178/1.531, allocations: 2.62 MB / 1.22 GB, free: 3.129 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=313): time 8.866e-06/1.531, allocations: 4 kB / 1.22 GB, free: 3.125 MB / 0.7448 GB Notification: Performance of matching and sorting (n=313): time 0.05015/1.581, allocations: 9.335 MB / 1.229 GB, free: 9.656 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001819/1.582, allocations: 218.4 kB / 1.229 GB, free: 9.398 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006636/1.588, allocations: 2.621 MB / 1.232 GB, free: 6.762 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.001006/1.589, allocations: 77.7 kB / 1.232 GB, free: 6.68 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.002492/1.592, allocations: 1.526 MB / 1.233 GB, free: 5.137 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.002283/1.594, allocations: 1.047 MB / 1.234 GB, free: 4.074 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000533/1.595, allocations: 56 kB / 1.234 GB, free: 4.02 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0004162/1.595, allocations: 411.7 kB / 1.235 GB, free: 3.613 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009623/1.605, allocations: 2.09 MB / 1.237 GB, free: 1.52 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01026/1.615, allocations: 2.43 MB / 1.239 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/1.625, allocations: 2.281 MB / 1.241 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/1.625, allocations: 0 / 1.241 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of matching and sorting (n=353) (initialization): time 0.02573/1.651, allocations: 5.609 MB / 1.247 GB, free: 7.059 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.827e-05/1.651, allocations: 8 kB / 1.247 GB, free: 7.051 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/1.651, allocations: 4 kB / 1.247 GB, free: 7.047 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00325/1.655, allocations: 0.8239 MB / 1.248 GB, free: 6.223 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008125/1.663, allocations: 0.7605 MB / 1.248 GB, free: 5.461 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/1.681, allocations: 6.985 MB / 1.255 GB, free: 14.33 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00739/1.689, allocations: 0.5478 MB / 1.256 GB, free: 13.78 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/1.69, allocations: 119.9 kB / 1.256 GB, free: 13.66 MB / 0.7917 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 (289): * Single equations (assignments): 288 * 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 {(5,100.0%) 60} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004359/1.694, allocations: 1.02 MB / 1.257 GB, free: 12.63 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001443/1.696, allocations: 300.2 kB / 1.257 GB, free: 12.34 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02892/1.725, allocations: 6.187 MB / 1.263 GB, free: 6.086 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.333e-05/1.725, allocations: 32 kB / 1.263 GB, free: 6.055 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.423e-05/1.725, allocations: 8 kB / 1.263 GB, free: 6.047 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.791e-05/1.725, allocations: 24.02 kB / 1.263 GB, free: 6.023 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03986/1.765, allocations: 10.46 MB / 1.273 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.941e-05/1.765, allocations: 7.953 kB / 1.273 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008121/1.773, allocations: 0.7293 MB / 1.274 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003805/1.777, allocations: 0.7418 MB / 1.275 GB, free: 9.953 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001039/1.778, allocations: 83.94 kB / 1.275 GB, free: 9.871 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01937/1.797, allocations: 9.765 MB / 1.284 GB, free: 15.68 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.797, allocations: 128 / 1.284 GB, free: 15.68 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03499/1.832, allocations: 8.754 MB / 1.293 GB, free: 6.836 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003724/1.836, allocations: 0.926 MB / 1.294 GB, free: 5.887 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001296/1.838, allocations: 56 kB / 1.294 GB, free: 5.832 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006692/1.844, allocations: 403.3 kB / 1.294 GB, free: 5.438 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001182/1.845, allocations: 222.2 kB / 1.294 GB, free: 5.219 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006769/1.846, allocations: 107.9 kB / 1.295 GB, free: 5.113 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.005299/1.851, allocations: 1.884 MB / 1.296 GB, free: 3.223 MB / 0.823 GB Notification: Performance of sort global known variables: time 8.21e-07/1.852, allocations: 0 / 1.296 GB, free: 3.223 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.006536/1.858, allocations: 1.208 MB / 1.298 GB, free: 2.012 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thermalZoneFourElements.volAir.dynBal.U,thermalZoneFourElements.volAir.dynBal.m,thermalZoneFourElements.extWallRC.thermCapExt[1].T,thermalZoneFourElements.intWallRC.thermCapInt[1].T,thermalZoneFourElements.floorRC.thermCapExt[1].T,thermalZoneFourElements.roofRC.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 (267): * Single equations (assignments): 259 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 49,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003766/1.862, allocations: 0.9792 MB / 1.299 GB, free: 1.367 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0222/1.884, allocations: 5.31 MB / 1.304 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/1.884, allocations: 0 / 1.304 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0127/1.897, allocations: 3.223 MB / 1.307 GB, free: 8.754 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00738/1.904, allocations: 0.705 MB / 1.308 GB, free: 8.055 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03063/1.935, allocations: 10.31 MB / 1.318 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005076/1.94, allocations: 2.682 MB / 1.32 GB, free: 10.99 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.008291/1.949, allocations: 1.148 MB / 1.321 GB, free: 9.836 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002593/1.951, allocations: 271.3 kB / 1.322 GB, free: 9.57 MB / 0.8542 GB Notification: Performance of SimCode: time 1.112e-06/1.951, allocations: 0 / 1.322 GB, free: 9.57 MB / 0.8542 GB Notification: Performance of Templates: time 0.1433/2.095, allocations: 49.6 MB / 1.37 GB, free: 8.234 MB / 0.9011 GB make -j1 -f Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.makefile (rm -f Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; mkfifo Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe >> ../files/Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.sim & ./Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements.pipe 2>&1)