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.1305/0.1305, allocations: 21.46 MB / 36.43 MB, free: 1.156 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.0009626/0.0009625, allocations: 181.8 kB / 42.65 MB, free: 3.996 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.45/1.45, allocations: 205.4 MB / 254.1 MB, free: 15.23 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.0007746/0.0007746, allocations: 83.8 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004228/0.0004231, allocations: 11.14 kB / 373.3 MB, free: 59.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09055/0.091, allocations: 52.96 MB / 426.2 MB, free: 13.01 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_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/flowTwoPorts_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.002095/0.09313, allocations: 2.16 MB / 428.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.09425, allocations: 0.7567 MB / 429.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.09443, allocations: 4 kB / 429.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.09456, allocations: 27.77 kB / 429.2 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002278/0.0948, allocations: 111.2 kB / 429.3 MB, free: 9.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.09516, allocations: 75.91 kB / 429.4 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.09553, allocations: 427 kB / 429.8 MB, free: 9.438 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.09586, allocations: 186.7 kB / 430 MB, free: 9.254 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002075/0.09608, allocations: 143.5 kB / 430.1 MB, free: 9.113 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.09635, allocations: 215.3 kB / 430.3 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.591e-05/0.09641, allocations: 20 kB / 430.3 MB, free: 8.883 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.09654, allocations: 51.97 kB / 430.4 MB, free: 8.832 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.998e-05/0.09663, allocations: 107.7 kB / 430.5 MB, free: 8.727 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.177e-05/0.09671, allocations: 81.58 kB / 430.6 MB, free: 8.641 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002442/0.09696, allocations: 339.1 kB / 430.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.09697, allocations: 0 / 430.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.09698, allocations: 0 / 430.9 MB, free: 8.309 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.097, allocations: 4 kB / 430.9 MB, free: 8.305 MB / 298.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.001158/0.09816, allocations: 0.6391 MB / 431.5 MB, free: 7.617 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.09821, allocations: 12.03 kB / 431.5 MB, free: 7.605 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.516e-05/0.09831, allocations: 43.52 kB / 431.6 MB, free: 7.562 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.09862, allocations: 289.5 kB / 431.9 MB, free: 7.242 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.09865, allocations: 16.56 kB / 431.9 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.0987, allocations: 24 kB / 431.9 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006103/0.09932, allocations: 344.7 kB / 432.3 MB, free: 6.859 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.09934, allocations: 8 kB / 432.3 MB, free: 6.852 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.09938, allocations: 8 kB / 432.3 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.09939, allocations: 8 kB / 432.3 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007099/0.1001, allocations: 346 kB / 432.6 MB, free: 6.496 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.1018, allocations: 1.265 MB / 433.9 MB, free: 5.117 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005086/0.1023, allocations: 311.8 kB / 434.2 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003909/0.1027, allocations: 237.4 kB / 434.4 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001257/0.1029, allocations: 93.31 kB / 434.5 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.1029, allocations: 38.8 kB / 434.5 MB, free: 4.414 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.483e-06/0.1029, allocations: 0 / 434.5 MB, free: 4.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.002222/0.1051, allocations: 1.212 MB / 435.8 MB, free: 3.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.488e-05/0.1052, allocations: 59.41 kB / 435.8 MB, free: 3.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.1054, allocations: 250.6 kB / 436.1 MB, free: 2.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.1054, allocations: 29.7 kB / 436.1 MB, free: 2.734 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.712e-05/0.1055, allocations: 164.6 kB / 436.2 MB, free: 2.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.21e-05/0.1056, allocations: 102.5 kB / 436.3 MB, free: 2.469 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.031e-05/0.1056, allocations: 4 kB / 436.3 MB, free: 2.465 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.417e-05/0.1057, allocations: 338.8 kB / 436.7 MB, free: 2.125 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003587/0.1061, allocations: 179.9 kB / 436.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.1064, allocations: 195.7 kB / 437 MB, free: 1.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.1068, allocations: 196.5 kB / 437.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1068, allocations: 0 / 437.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00114/0.108, allocations: 0.5908 MB / 437.8 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.108, allocations: 4 kB / 437.8 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.108, allocations: 3.953 kB / 437.8 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005001/0.1085, allocations: 148.2 kB / 438 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.1101, allocations: 199.8 kB / 438.2 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004762/0.1149, allocations: 7.296 MB / 445.5 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003268/0.1152, allocations: 51.67 kB / 445.5 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.1152, allocations: 4 kB / 445.5 MB, free: 8.547 MB / 314.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 (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001699/0.1154, allocations: 158 kB / 445.7 MB, free: 8.383 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-05/0.1155, allocations: 23.72 kB / 445.7 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.1168, allocations: 0.5942 MB / 446.3 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1169, allocations: 4 kB / 446.3 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1169, allocations: 0 / 446.3 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1169, allocations: 7.984 kB / 446.3 MB, free: 7.727 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004889/0.1174, allocations: 433 kB / 446.7 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1174, allocations: 4 kB / 446.7 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.119, allocations: 195.8 kB / 446.9 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005015/0.1196, allocations: 152.1 kB / 447.1 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/0.1196, allocations: 4 kB / 447.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005327/0.1249, allocations: 7.292 MB / 454.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.125, allocations: 256 / 454.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.1267, allocations: 0.8745 MB / 455.2 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.1268, allocations: 104.8 kB / 455.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.65e-05/0.1268, allocations: 11.98 kB / 455.4 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000292/0.1271, allocations: 35.88 kB / 455.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.594e-05/0.1272, allocations: 31.89 kB / 455.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.1273, allocations: 4 kB / 455.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001623/0.1274, allocations: 182 kB / 455.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1274, allocations: 0 / 455.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004909/0.1279, allocations: 119.8 kB / 455.7 MB, free: 13.51 MB / 330.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 (23): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001734/0.1281, allocations: 115 kB / 455.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002659/0.1308, allocations: 1.118 MB / 457 MB, free: 12.2 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1308, allocations: 3.938 kB / 457 MB, free: 12.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002141/0.133, allocations: 0.9233 MB / 457.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.1334, allocations: 73.67 kB / 458 MB, free: 11.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.1365, allocations: 1.369 MB / 459.3 MB, free: 9.746 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.1368, allocations: 0.7915 MB / 460.1 MB, free: 8.922 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002064/0.1371, allocations: 54.89 kB / 460.2 MB, free: 8.867 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.865e-05/0.1372, allocations: 23.38 kB / 460.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.1372, allocations: 0 / 460.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of Templates: time 0.009977/0.1471, allocations: 5.653 MB / 465.8 MB, free: 3.191 MB / 330.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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)