Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09118/0.09118, allocations: 21.6 MB / 37.4 MB, free: 0.7383 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 192.4 kB / 43.64 MB, free: 3.562 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.1 MB / 254.8 MB, free: 14.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009677/0.0009677, allocations: 105.2 kB / 307.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 53.59 kB / 372.3 MB, free: 59.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1062, allocations: 51.96 MB / 424.3 MB, free: 14.54 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003): time 0.02082/0.127, allocations: 19.81 MB / 444.1 MB, free: 10.65 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.1281, allocations: 458.2 kB / 444.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.1283, allocations: 15.94 kB / 444.6 MB, free: 10.19 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 8.824e-05/0.1284, allocations: 39.69 kB / 444.6 MB, free: 10.15 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003258/0.1287, allocations: 111.1 kB / 444.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000173/0.1289, allocations: 75.86 kB / 444.8 MB, free: 9.965 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.1293, allocations: 410 kB / 445.2 MB, free: 9.562 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.1296, allocations: 218.5 kB / 445.4 MB, free: 9.348 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.1298, allocations: 175.2 kB / 445.6 MB, free: 9.176 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/0.13, allocations: 183.2 kB / 445.8 MB, free: 8.996 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.1301, allocations: 24 kB / 445.8 MB, free: 8.973 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.1302, allocations: 47.97 kB / 445.8 MB, free: 8.926 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.386e-05/0.1303, allocations: 63.75 kB / 445.9 MB, free: 8.863 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1304, allocations: 171.1 kB / 446.1 MB, free: 8.695 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.1308, allocations: 390.6 kB / 446.4 MB, free: 8.312 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1308, allocations: 0 / 446.4 MB, free: 8.312 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1308, allocations: 0 / 446.4 MB, free: 8.312 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1308, allocations: 3.938 kB / 446.4 MB, free: 8.309 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0008929/0.1317, allocations: 0.6311 MB / 447.1 MB, free: 7.625 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.1317, allocations: 12.03 kB / 447.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.076e-05/0.1318, allocations: 36.47 kB / 447.1 MB, free: 7.578 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.1321, allocations: 311.3 kB / 447.4 MB, free: 7.234 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.1321, allocations: 20.94 kB / 447.4 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.1322, allocations: 28.31 kB / 447.5 MB, free: 7.184 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003748/0.1326, allocations: 272.8 kB / 447.7 MB, free: 6.902 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.1326, allocations: 4.188 kB / 447.7 MB, free: 6.898 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1326, allocations: 11.94 kB / 447.7 MB, free: 6.887 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.1326, allocations: 8 kB / 447.8 MB, free: 6.879 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003216/0.133, allocations: 189.6 kB / 447.9 MB, free: 6.695 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.1342, allocations: 0.9083 MB / 448.8 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.1345, allocations: 169.4 kB / 449 MB, free: 5.551 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.1347, allocations: 100.8 kB / 449.1 MB, free: 5.449 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.1347, allocations: 4 kB / 449.1 MB, free: 5.445 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.1347, allocations: 42.5 kB / 449.2 MB, free: 5.395 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001783/0.1349, allocations: 39.75 kB / 449.2 MB, free: 5.355 MB / 314.7 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.1349, allocations: 0 / 449.2 MB, free: 5.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=18): time 0.001216/0.1362, allocations: 442.9 kB / 449.6 MB, free: 4.895 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.802e-05/0.1362, allocations: 51.41 kB / 449.7 MB, free: 4.832 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002849/0.1365, allocations: 300.6 kB / 450 MB, free: 4.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.1365, allocations: 33.64 kB / 450 MB, free: 4.484 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.1366, allocations: 184.1 kB / 450.2 MB, free: 4.301 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.1367, allocations: 63.09 kB / 450.2 MB, free: 4.238 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.886e-05/0.1368, allocations: 41.7 kB / 450.3 MB, free: 4.191 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1369, allocations: 346.7 kB / 450.6 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.137, allocations: 67.91 kB / 450.7 MB, free: 3.777 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.1371, allocations: 85.67 kB / 450.8 MB, free: 3.688 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003648/0.1408, allocations: 0.696 MB / 451.5 MB, free: 2.984 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1408, allocations: 0 / 451.5 MB, free: 2.984 MB / 314.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007629/0.1416, allocations: 309.9 kB / 451.8 MB, free: 2.672 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.1416, allocations: 8 kB / 451.8 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1416, allocations: 3.984 kB / 451.8 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007076/0.1423, allocations: 108.7 kB / 451.9 MB, free: 2.551 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002246/0.1426, allocations: 43.95 kB / 451.9 MB, free: 2.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003785/0.143, allocations: 0.5795 MB / 452.5 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.1431, allocations: 8.031 kB / 452.5 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.1432, allocations: 7.984 kB / 452.5 MB, free: 1.887 MB / 314.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 20 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001893/0.1433, allocations: 141.9 kB / 452.7 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.1434, allocations: 35.61 kB / 452.7 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008042/0.1442, allocations: 352.8 kB / 453.1 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.1442, allocations: 4 kB / 453.1 MB, free: 1.352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1442, allocations: 0 / 453.1 MB, free: 1.352 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1443, allocations: 7.922 kB / 453.1 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.1454, allocations: 0.7324 MB / 453.8 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.1454, allocations: 4 kB / 453.8 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002235/0.1456, allocations: 35.98 kB / 453.8 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005361/0.1462, allocations: 108.8 kB / 453.9 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.1462, allocations: 4 kB / 453.9 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003571/0.1466, allocations: 0.6032 MB / 454.5 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1466, allocations: 0 / 454.5 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00803/0.1546, allocations: 4.499 MB / 459 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.619e-05/0.1547, allocations: 104.8 kB / 459.1 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.1547, allocations: 4.188 kB / 459.2 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.1549, allocations: 15.98 kB / 459.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.155, allocations: 23.86 kB / 459.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.155, allocations: 7.984 kB / 459.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000184/0.1552, allocations: 219.2 kB / 459.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.483e-06/0.1552, allocations: 0 / 459.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004444/0.1556, allocations: 123.8 kB / 459.5 MB, free: 10.46 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (HE.Tho,HE.Tco) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001282/0.1558, allocations: 103.2 kB / 459.6 MB, free: 10.35 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004362/0.1562, allocations: 199.7 kB / 459.8 MB, free: 10.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1562, allocations: 0 / 459.8 MB, free: 10.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002471/0.1565, allocations: 124.2 kB / 460 MB, free: 10.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004158/0.1569, allocations: 61 kB / 460 MB, free: 9.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.1583, allocations: 1.159 MB / 461.2 MB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.1586, allocations: 0.7843 MB / 462 MB, free: 7.949 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002119/0.1589, allocations: 46.95 kB / 462 MB, free: 7.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.159, allocations: 39.41 kB / 462 MB, free: 7.863 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.159, allocations: 4 kB / 462 MB, free: 7.859 MB / 330.7 MB Notification: Performance of Templates: time 0.008949/0.1679, allocations: 5.641 MB / 467.7 MB, free: 2.211 MB / 330.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)