Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.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.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") translateModel(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=17520,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.834/1.834, allocations: 288.4 MB / 303.4 MB, free: 8.129 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.001587/0.001587, allocations: 181.5 kB / 372 MB, free: 10.26 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.596/1.596, allocations: 205.4 MB / 0.6307 GB, free: 9.977 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.00114/0.00114, allocations: 97.3 kB / 0.7441 GB, free: 5.891 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004284/0.0004286, allocations: 14.25 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2403, allocations: 115.3 MB / 0.9796 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements): time 0.7741/1.014, allocations: 145.7 MB / 1.122 GB, free: 1.371 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.03172/1.046, allocations: 24.53 MB / 1.146 GB, free: 11.67 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003978/1.05, allocations: 66.16 kB / 1.146 GB, free: 11.64 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.002105/1.052, allocations: 0.8685 MB / 1.147 GB, free: 11.21 MB / 0.698 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.005421/1.058, allocations: 1.375 MB / 1.148 GB, free: 10.34 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.004069/1.062, allocations: 1.174 MB / 1.149 GB, free: 9.867 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.006424/1.068, allocations: 4.442 MB / 1.154 GB, free: 8.406 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004625/1.073, allocations: 2.854 MB / 1.156 GB, free: 7.285 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002984/1.076, allocations: 1.326 MB / 1.158 GB, free: 6.707 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003536/1.08, allocations: 1.797 MB / 1.159 GB, free: 5.66 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0005402/1.08, allocations: 107.2 kB / 1.159 GB, free: 5.66 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/1.082, allocations: 0.5347 MB / 1.16 GB, free: 5.465 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0007597/1.083, allocations: 0.7181 MB / 1.161 GB, free: 4.977 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001032/1.084, allocations: 0.6263 MB / 1.161 GB, free: 4.574 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.004978/1.089, allocations: 4.248 MB / 1.165 GB, free: 1.574 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/1.089, allocations: 0 / 1.165 GB, free: 1.574 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.184e-06/1.089, allocations: 4 kB / 1.165 GB, free: 1.57 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001916/1.089, allocations: 0 / 1.165 GB, free: 1.57 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.01033/1.1, allocations: 3.795 MB / 1.169 GB, free: 15 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/1.1, allocations: 8.656 kB / 1.169 GB, free: 15 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01323/1.113, allocations: 2.7 MB / 1.172 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006832/1.12, allocations: 2.159 MB / 1.174 GB, free: 12.24 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002847/1.12, allocations: 238.6 kB / 1.174 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001618/1.122, allocations: 315 kB / 1.174 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01698/1.139, allocations: 4.978 MB / 1.179 GB, free: 9.152 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001398/1.139, allocations: 6.594 kB / 1.179 GB, free: 9.148 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001198/1.14, allocations: 131.3 kB / 1.179 GB, free: 9.047 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.833e-05/1.14, allocations: 80.47 kB / 1.18 GB, free: 9.043 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01709/1.158, allocations: 6.103 MB / 1.185 GB, free: 6.082 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.03598/1.194, allocations: 14.26 MB / 1.199 GB, free: 8.355 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/1.206, allocations: 4.524 MB / 1.204 GB, free: 3.82 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006263/1.213, allocations: 2.388 MB / 1.206 GB, free: 1.422 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001291/1.214, allocations: 0.6658 MB / 1.207 GB, free: 0.625 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006999/1.221, allocations: 2.364 MB / 1.209 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=268): time 9.227e-06/1.221, allocations: 0 / 1.209 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of matching and sorting (n=268): time 0.02308/1.244, allocations: 7.227 MB / 1.216 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000176/1.244, allocations: 206 kB / 1.216 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005619/1.25, allocations: 2.356 MB / 1.219 GB, free: 4.234 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0009287/1.251, allocations: 73.7 kB / 1.219 GB, free: 4.156 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.001744/1.253, allocations: 1.341 MB / 1.22 GB, free: 2.801 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.001796/1.255, allocations: 0.8894 MB / 1.221 GB, free: 1.898 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006912/1.255, allocations: 52 kB / 1.221 GB, free: 1.848 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003411/1.256, allocations: 398.8 kB / 1.221 GB, free: 1.453 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00527/1.261, allocations: 1.878 MB / 1.223 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005662/1.267, allocations: 2.175 MB / 1.225 GB, free: 13.32 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005674/1.272, allocations: 2.027 MB / 1.227 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/1.272, allocations: 0 / 1.227 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.0149/1.287, allocations: 4.775 MB / 1.232 GB, free: 6.441 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.92e-05/1.287, allocations: 8 kB / 1.232 GB, free: 6.434 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/1.287, allocations: 4 kB / 1.232 GB, free: 6.43 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/1.288, allocations: 345 kB / 1.232 GB, free: 6.09 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004547/1.293, allocations: 0.7488 MB / 1.233 GB, free: 5.34 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006574/1.3, allocations: 3.901 MB / 1.237 GB, free: 1.305 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005297/1.305, allocations: 0.509 MB / 1.237 GB, free: 0.793 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/1.306, allocations: 107.9 kB / 1.237 GB, free: 0.6875 MB / 0.7605 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.003933/1.31, allocations: 0.9239 MB / 1.238 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001509/1.312, allocations: 268.6 kB / 1.239 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01595/1.327, allocations: 5.355 MB / 1.244 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.392e-05/1.328, allocations: 24 kB / 1.244 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.242e-05/1.328, allocations: 4 kB / 1.244 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.607e-05/1.328, allocations: 15.95 kB / 1.244 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0243/1.352, allocations: 9.02 MB / 1.253 GB, free: 0.875 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.537e-05/1.352, allocations: 3.953 kB / 1.253 GB, free: 0.8711 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004013/1.356, allocations: 0.6864 MB / 1.253 GB, free: 188 kB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/1.357, allocations: 383 kB / 1.254 GB, free: 15.8 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006488/1.358, allocations: 71.94 kB / 1.254 GB, free: 15.73 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007221/1.365, allocations: 5.796 MB / 1.259 GB, free: 9.641 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/1.365, allocations: 0 / 1.259 GB, free: 9.641 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02036/1.386, allocations: 7.598 MB / 1.267 GB, free: 1.949 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002576/1.388, allocations: 0.8326 MB / 1.268 GB, free: 1.094 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001128/1.39, allocations: 52 kB / 1.268 GB, free: 1.043 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003682/1.393, allocations: 387.3 kB / 1.268 GB, free: 0.6641 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006429/1.394, allocations: 174 kB / 1.268 GB, free: 0.4922 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004636/1.394, allocations: 99.92 kB / 1.268 GB, free: 404 kB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.003382/1.398, allocations: 1.705 MB / 1.27 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.71e-07/1.398, allocations: 0 / 1.27 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.004461/1.402, allocations: 1.001 MB / 1.271 GB, free: 13.67 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.002858/1.405, allocations: 0.9844 MB / 1.272 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.01229/1.417, allocations: 4.602 MB / 1.276 GB, free: 8.293 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.418, allocations: 0 / 1.276 GB, free: 8.293 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.00652/1.424, allocations: 2.659 MB / 1.279 GB, free: 5.609 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00551/1.43, allocations: 0.6199 MB / 1.28 GB, free: 4.996 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02167/1.451, allocations: 9.033 MB / 1.288 GB, free: 11.92 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003762/1.455, allocations: 2.428 MB / 1.291 GB, free: 9.453 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.00599/1.461, allocations: 1.109 MB / 1.292 GB, free: 8.344 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001965/1.463, allocations: 255.2 kB / 1.292 GB, free: 8.094 MB / 0.823 GB Notification: Performance of SimCode: time 1.723e-06/1.463, allocations: 0 / 1.292 GB, free: 8.094 MB / 0.823 GB Notification: Performance of Templates: time 0.0782/1.541, allocations: 41.8 MB / 1.333 GB, free: 14.46 MB / 0.8698 GB make -j1 -f Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.makefile (rm -f Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe >> ../files/Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.sim & ./Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomTwoElements.pipe 2>&1)