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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 105.5 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001893/0.001893, allocations: 190.5 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09663/0.09663, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 64.8 kB / 382.2 MB, free: 40.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.08801, allocations: 54.96 MB / 437.2 MB, free: 12.23 MB / 318.1 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.03333/0.1214, allocations: 22.08 MB / 459.3 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.1228, allocations: 422.5 kB / 459.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.1231, allocations: 11.94 kB / 459.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.1232, allocations: 47.5 kB / 459.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003936/0.1236, allocations: 134.9 kB / 459.9 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002217/0.1238, allocations: 79.83 kB / 460 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004081/0.1242, allocations: 422 kB / 460.4 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003559/0.1246, allocations: 247.1 kB / 460.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.1248, allocations: 183.3 kB / 460.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002681/0.1251, allocations: 187.2 kB / 461 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.1252, allocations: 28 kB / 461 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.1253, allocations: 55.97 kB / 461.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.677e-05/0.1254, allocations: 63.77 kB / 461.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.1256, allocations: 179.1 kB / 461.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.1261, allocations: 402.6 kB / 461.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.1261, allocations: 0 / 461.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1261, allocations: 0 / 461.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.1262, allocations: 0 / 461.7 MB, free: 3.879 MB / 334.1 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.001579/0.1277, allocations: 0.6389 MB / 462.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.121e-05/0.1278, allocations: 8.031 kB / 462.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1279, allocations: 48.34 kB / 462.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005267/0.1284, allocations: 319.4 kB / 462.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.1285, allocations: 16.94 kB / 462.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.47e-05/0.1286, allocations: 24.38 kB / 462.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004577/0.129, allocations: 268.8 kB / 463 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.129, allocations: 4.172 kB / 463 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.1291, allocations: 15.94 kB / 463 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.1291, allocations: 8 kB / 463 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003757/0.1295, allocations: 197.6 kB / 463.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001395/0.1309, allocations: 0.9005 MB / 464.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003492/0.1312, allocations: 174.7 kB / 464.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.1314, allocations: 100.8 kB / 464.4 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.1315, allocations: 0 / 464.4 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.1315, allocations: 42.5 kB / 464.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001989/0.1317, allocations: 39.81 kB / 464.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.242e-06/0.1317, allocations: 0 / 464.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.00132/0.1331, allocations: 438.9 kB / 464.9 MB, free: 464 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.1331, allocations: 55.41 kB / 464.9 MB, free: 396 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002827/0.1334, allocations: 300.6 kB / 465.2 MB, free: 80 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.1334, allocations: 29.7 kB / 465.3 MB, free: 44 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.1336, allocations: 180.1 kB / 465.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.1336, allocations: 67.03 kB / 465.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.593e-05/0.1337, allocations: 49.69 kB / 465.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1339, allocations: 342.8 kB / 465.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.134, allocations: 63.97 kB / 466 MB, free: 15.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.1341, allocations: 89.61 kB / 466 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003926/0.1381, allocations: 0.7014 MB / 466.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1381, allocations: 0 / 466.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008024/0.1389, allocations: 312.6 kB / 467 MB, free: 14.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1389, allocations: 10.19 kB / 467.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1389, allocations: 0 / 467.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007503/0.1397, allocations: 104.8 kB / 467.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.14, allocations: 47.91 kB / 467.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004382/0.1404, allocations: 0.5797 MB / 467.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.1406, allocations: 8.031 kB / 467.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.1406, allocations: 4 kB / 467.8 MB, free: 13.45 MB / 350.1 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.0002056/0.1409, allocations: 157.7 kB / 468 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.511e-05/0.1409, allocations: 27.62 kB / 468 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008651/0.1418, allocations: 360.6 kB / 468.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1418, allocations: 4 kB / 468.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1418, allocations: 0 / 468.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.1418, allocations: 4 kB / 468.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.143, allocations: 0.7231 MB / 469.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.143, allocations: 0 / 469.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002539/0.1433, allocations: 47.91 kB / 469.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005302/0.1438, allocations: 96.83 kB / 469.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.1439, allocations: 8 kB / 469.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003819/0.1443, allocations: 0.5913 MB / 469.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1443, allocations: 4.062 kB / 469.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009043/0.1452, allocations: 0.504 MB / 470.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.161e-05/0.1453, allocations: 112.6 kB / 470.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.786e-05/0.1453, allocations: 8 kB / 470.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1455, allocations: 4 kB / 470.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.795e-05/0.1456, allocations: 19.97 kB / 470.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.1456, allocations: 15.88 kB / 470.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001981/0.1458, allocations: 215.1 kB / 470.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1458, allocations: 8.062 kB / 470.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003351/0.1462, allocations: 71.84 kB / 470.8 MB, free: 10.34 MB / 350.1 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.0001528/0.1463, allocations: 106.2 kB / 470.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004727/0.1468, allocations: 199.8 kB / 471.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.1468, allocations: 0 / 471.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.1471, allocations: 131.9 kB / 471.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/0.1475, allocations: 61.88 kB / 471.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.1487, allocations: 0.6816 MB / 471.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.1492, allocations: 0.7832 MB / 472.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.1493, allocations: 46.95 kB / 472.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.934e-05/0.1494, allocations: 31.42 kB / 472.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1494, allocations: 4 kB / 472.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of Templates: time 0.008052/0.1575, allocations: 4.081 MB / 476.9 MB, free: 4.203 MB / 350.1 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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)