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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 105.6 kB / 15.98 MB, free: 6.352 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.00134/0.00134, allocations: 198 kB / 16.91 MB, free: 6.199 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.234/1.234, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08487/0.08487, allocations: 22.33 MB / 313.1 MB, free: 8.938 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001167, allocations: 65.03 kB / 380.9 MB, free: 41.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07612/0.0773, allocations: 54.96 MB / 435.9 MB, free: 13.39 MB / 318.1 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.02851/0.1058, allocations: 22.12 MB / 458 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1072, allocations: 0.6821 MB / 458.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.1074, allocations: 4 kB / 458.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.1076, allocations: 31.77 kB / 458.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.1078, allocations: 95.36 kB / 458.8 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003543/0.1082, allocations: 87.84 kB / 458.9 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004129/0.1086, allocations: 419.1 kB / 459.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002868/0.1089, allocations: 232.6 kB / 459.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.1091, allocations: 179.4 kB / 459.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002564/0.1094, allocations: 227.3 kB / 459.9 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.2e-05/0.1094, allocations: 40 kB / 460 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.83e-05/0.1095, allocations: 40 kB / 460 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.1096, allocations: 123.7 kB / 460.1 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001687/0.1098, allocations: 199 kB / 460.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.1101, allocations: 347.2 kB / 460.7 MB, free: 4.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.1101, allocations: 0 / 460.7 MB, free: 4.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1101, allocations: 0 / 460.7 MB, free: 4.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.1101, allocations: 0 / 460.7 MB, free: 4.738 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001212/0.1113, allocations: 0.6819 MB / 461.3 MB, free: 4.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.1114, allocations: 12.03 kB / 461.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.725e-05/0.1114, allocations: 32.56 kB / 461.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.1118, allocations: 302.7 kB / 461.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.1118, allocations: 16.94 kB / 461.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.1119, allocations: 24.38 kB / 461.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006397/0.1125, allocations: 348.8 kB / 462.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1125, allocations: 3.984 kB / 462.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.1126, allocations: 12 kB / 462.1 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.1126, allocations: 4 kB / 462.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006894/0.1133, allocations: 334 kB / 462.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.1151, allocations: 1.257 MB / 463.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005631/0.1156, allocations: 311.8 kB / 464 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004163/0.1161, allocations: 221.3 kB / 464.2 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-05/0.1161, allocations: 12.22 kB / 464.2 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.1161, allocations: 34.8 kB / 464.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.442e-06/0.1161, allocations: 0 / 464.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002716/0.1189, allocations: 1.237 MB / 465.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.1189, allocations: 59.34 kB / 465.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002339/0.1191, allocations: 258.6 kB / 465.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.1192, allocations: 29.7 kB / 465.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.709e-05/0.1193, allocations: 160.6 kB / 466 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.1194, allocations: 106.5 kB / 466.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.1195, allocations: 57.69 kB / 466.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1196, allocations: 346.8 kB / 466.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003764/0.12, allocations: 179.9 kB / 466.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003574/0.1204, allocations: 175.9 kB / 466.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007298/0.1211, allocations: 393.6 kB / 467.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1211, allocations: 0 / 467.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001398/0.1225, allocations: 0.6064 MB / 467.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.1226, allocations: 4 kB / 467.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.1226, allocations: 0 / 467.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007082/0.1233, allocations: 168.2 kB / 468 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005389/0.1238, allocations: 99.88 kB / 468.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005283/0.1291, allocations: 7.603 MB / 475.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/0.1295, allocations: 35.75 kB / 475.7 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.1295, allocations: 12 kB / 475.7 MB, free: 4.531 MB / 350.1 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): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 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.0001706/0.1297, allocations: 161.7 kB / 475.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.763e-05/0.1298, allocations: 27.72 kB / 475.9 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.1311, allocations: 0.5745 MB / 476.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1311, allocations: 4 kB / 476.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1311, allocations: 4 kB / 476.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1311, allocations: 4 kB / 476.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004747/0.1316, allocations: 449 kB / 476.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1316, allocations: 0 / 476.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005338/0.1321, allocations: 83.94 kB / 477 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004684/0.1326, allocations: 148.1 kB / 477.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/0.1327, allocations: 8 kB / 477.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004535/0.1372, allocations: 7.207 MB / 484.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1372, allocations: 0 / 484.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.1389, allocations: 0.8638 MB / 485.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.385e-05/0.1389, allocations: 108.6 kB / 485.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.068e-05/0.139, allocations: 12.05 kB / 485.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002904/0.1393, allocations: 27.91 kB / 485.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.1394, allocations: 39.89 kB / 485.4 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.1394, allocations: 4 kB / 485.4 MB, free: 9.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.1396, allocations: 186 kB / 485.6 MB, free: 9.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1396, allocations: 0 / 485.6 MB, free: 9.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004662/0.1401, allocations: 123.8 kB / 485.7 MB, free: 9.672 MB / 366.1 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): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 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.0001169/0.1402, allocations: 107.2 kB / 485.8 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.1416, allocations: 1.021 MB / 486.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1417, allocations: 4 kB / 486.9 MB, free: 8.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008611/0.1425, allocations: 0.7829 MB / 487.6 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.1429, allocations: 68.62 kB / 487.7 MB, free: 7.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002808/0.1458, allocations: 1.323 MB / 489 MB, free: 6.207 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.1461, allocations: 0.7873 MB / 489.8 MB, free: 5.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.1462, allocations: 27.44 kB / 489.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1462, allocations: 0 / 489.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of Templates: time 0.01067/0.1569, allocations: 9.912 MB / 499.7 MB, free: 11.46 MB / 382.1 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)