Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") translateModel(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") [/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.09342/0.09342, 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.001142/0.001142, allocations: 188.5 kB / 43.63 MB, free: 3.555 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.305/1.305, allocations: 205.1 MB / 254.8 MB, free: 14.25 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.0009745/0.0009745, allocations: 105.8 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 57.91 kB / 372.3 MB, free: 59.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1074, allocations: 51.97 MB / 424.3 MB, free: 14.5 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.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/Interfaces/flowOnePort_pwh.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.Heater_power_vs_wTin.heater_wT): time 0.03154/0.139, allocations: 19.3 MB / 443.6 MB, free: 11.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1404, allocations: 0.7953 MB / 444.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1405, allocations: 0 / 444.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.1407, allocations: 27.77 kB / 444.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002033/0.1409, allocations: 103.3 kB / 444.5 MB, free: 10.19 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.1412, allocations: 87.84 kB / 444.6 MB, free: 10.1 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004226/0.1416, allocations: 491 kB / 445.1 MB, free: 9.621 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.1419, allocations: 215.7 kB / 445.3 MB, free: 9.406 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.1421, allocations: 151.5 kB / 445.5 MB, free: 9.258 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000276/0.1424, allocations: 231.2 kB / 445.7 MB, free: 9.031 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.056e-05/0.1425, allocations: 28 kB / 445.7 MB, free: 9.004 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.1426, allocations: 55.95 kB / 445.8 MB, free: 8.949 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.1427, allocations: 107.7 kB / 445.9 MB, free: 8.844 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.1429, allocations: 187.1 kB / 446.1 MB, free: 8.66 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.1433, allocations: 450.6 kB / 446.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1433, allocations: 0 / 446.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1433, allocations: 0 / 446.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1433, allocations: 0 / 446.5 MB, free: 8.219 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001215/0.1445, allocations: 0.6742 MB / 447.2 MB, free: 7.496 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1446, allocations: 8.031 kB / 447.2 MB, free: 7.488 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.149e-05/0.1446, allocations: 44.47 kB / 447.2 MB, free: 7.445 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.145, allocations: 294.7 kB / 447.5 MB, free: 7.121 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.145, allocations: 20.92 kB / 447.5 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.996e-05/0.1451, allocations: 28.31 kB / 447.6 MB, free: 7.074 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005976/0.1457, allocations: 340.9 kB / 447.9 MB, free: 6.734 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.1457, allocations: 4 kB / 447.9 MB, free: 6.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.75e-05/0.1457, allocations: 8 kB / 447.9 MB, free: 6.723 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1457, allocations: 8 kB / 447.9 MB, free: 6.715 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006698/0.1464, allocations: 334 kB / 448.2 MB, free: 6.387 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.1482, allocations: 1.245 MB / 449.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005176/0.1488, allocations: 303.8 kB / 449.8 MB, free: 4.723 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004107/0.1492, allocations: 233.3 kB / 450 MB, free: 4.492 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001344/0.1493, allocations: 101.2 kB / 450.1 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.1494, allocations: 34.8 kB / 450.1 MB, free: 4.332 MB / 314.7 MB Notification: Performance of pre-optimization done (n=28): time 1.443e-06/0.1494, allocations: 0 / 450.1 MB, free: 4.332 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.002692/0.1521, allocations: 1.227 MB / 451.4 MB, free: 2.992 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.1521, allocations: 59.34 kB / 451.4 MB, free: 2.922 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002208/0.1523, allocations: 254.6 kB / 451.7 MB, free: 2.668 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.1524, allocations: 29.7 kB / 451.7 MB, free: 2.633 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.777e-05/0.1525, allocations: 160.6 kB / 451.9 MB, free: 2.473 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.521e-05/0.1525, allocations: 102.5 kB / 452 MB, free: 2.371 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.1526, allocations: 61.69 kB / 452 MB, free: 2.305 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1528, allocations: 342.8 kB / 452.4 MB, free: 1.961 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003666/0.1531, allocations: 175.9 kB / 452.5 MB, free: 1.789 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.1535, allocations: 179.7 kB / 452.7 MB, free: 1.613 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007113/0.1542, allocations: 385.1 kB / 453.1 MB, free: 1.234 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1542, allocations: 0 / 453.1 MB, free: 1.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001338/0.1556, allocations: 0.5909 MB / 453.7 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1556, allocations: 4 kB / 453.7 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.1556, allocations: 4 kB / 453.7 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006809/0.1563, allocations: 172.1 kB / 453.8 MB, free: 440 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.1579, allocations: 195.8 kB / 454 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005237/0.1631, allocations: 7.652 MB / 461.7 MB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.1634, allocations: 35.75 kB / 461.7 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.827e-05/0.1634, allocations: 12.19 kB / 461.7 MB, free: 7.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.1636, allocations: 161.7 kB / 461.9 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.1637, allocations: 31.66 kB / 461.9 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.165, allocations: 0.5782 MB / 462.5 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.165, allocations: 8 kB / 462.5 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.165, allocations: 4 kB / 462.5 MB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1651, allocations: 3.984 kB / 462.5 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005063/0.1656, allocations: 445.1 kB / 462.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1656, allocations: 0 / 462.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/0.1672, allocations: 175.8 kB / 463.1 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004778/0.1677, allocations: 156.1 kB / 463.3 MB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.159e-05/0.1677, allocations: 8 kB / 463.3 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004728/0.1725, allocations: 7.261 MB / 470.5 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1725, allocations: 8.094 kB / 470.6 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/0.1856, allocations: 11.46 MB / 482 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.418e-05/0.1857, allocations: 104.7 kB / 482.1 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.1857, allocations: 15.92 kB / 482.1 MB, free: 1.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.186, allocations: 23.97 kB / 482.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.1861, allocations: 31.89 kB / 482.2 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.1862, allocations: 11.94 kB / 482.2 MB, free: 1.688 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001592/0.1863, allocations: 190 kB / 482.4 MB, free: 1.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1863, allocations: 0 / 482.4 MB, free: 1.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006344/0.187, allocations: 179.8 kB / 482.6 MB, free: 1.324 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * 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 (24): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001564/0.1871, allocations: 111.2 kB / 482.7 MB, free: 1.203 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002549/0.1897, allocations: 1.122 MB / 483.8 MB, free: 16 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1897, allocations: 0 / 483.8 MB, free: 16 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.1917, allocations: 0.9151 MB / 484.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004196/0.1921, allocations: 60.52 kB / 484.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.1956, allocations: 2.123 MB / 486.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.1959, allocations: 0.8036 MB / 487.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001902/0.1961, allocations: 54.95 kB / 487.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.1962, allocations: 27.42 kB / 487.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1962, allocations: 0 / 487.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of Templates: time 0.01186/0.2081, allocations: 8.203 MB / 496 MB, free: 3.633 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & ./AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)