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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008812/0.008812, allocations: 102.4 kB / 15.73 MB, free: 5.969 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.001157/0.001157, allocations: 197.9 kB / 16.67 MB, free: 5.906 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 / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2305/0.2305, allocations: 22.36 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 65.47 kB / 436.6 MB, free: 34.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1127, allocations: 54.96 MB / 491.5 MB, free: 1.715 MB / 350.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.02909/0.1418, allocations: 21.99 MB / 0.5015 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.1432, allocations: 0.6782 MB / 0.5022 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.791e-05/0.1433, allocations: 4 kB / 0.5022 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.1434, allocations: 35.59 kB / 0.5022 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.1437, allocations: 119.1 kB / 0.5023 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003841/0.1441, allocations: 99.81 kB / 0.5024 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003916/0.1445, allocations: 419 kB / 0.5028 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.1448, allocations: 243.6 kB / 0.503 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.145, allocations: 171.5 kB / 0.5032 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000271/0.1453, allocations: 223.3 kB / 0.5034 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.1453, allocations: 40 kB / 0.5035 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.805e-05/0.1454, allocations: 40 kB / 0.5035 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.1455, allocations: 131.6 kB / 0.5036 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1457, allocations: 195.1 kB / 0.5038 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.1461, allocations: 450.5 kB / 0.5042 GB, free: 9.039 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1461, allocations: 4 kB / 0.5042 GB, free: 9.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1461, allocations: 3.938 kB / 0.5042 GB, free: 9.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1461, allocations: 0 / 0.5042 GB, free: 9.031 MB / 382.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.001261/0.1474, allocations: 0.6781 MB / 0.5049 GB, free: 8.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.1474, allocations: 8.031 kB / 0.5049 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.993e-05/0.1475, allocations: 62.72 kB / 0.505 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.716e-05/0.1476, allocations: 40.47 kB / 0.505 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003633/0.148, allocations: 298.7 kB / 0.5053 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.148, allocations: 20.94 kB / 0.5053 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.514e-05/0.1481, allocations: 32.36 kB / 0.5053 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006385/0.1487, allocations: 344.6 kB / 0.5057 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.1487, allocations: 0 / 0.5057 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/0.1488, allocations: 12 kB / 0.5057 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1488, allocations: 4 kB / 0.5057 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000682/0.1494, allocations: 330 kB / 0.506 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.1513, allocations: 1.241 MB / 0.5072 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005594/0.1519, allocations: 311.9 kB / 0.5075 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004496/0.1523, allocations: 225.2 kB / 0.5077 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.1524, allocations: 16.2 kB / 0.5077 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.1524, allocations: 34.8 kB / 0.5078 GB, free: 5.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.483e-06/0.1524, allocations: 3.938 kB / 0.5078 GB, free: 5.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.002667/0.1551, allocations: 1.231 MB / 0.509 GB, free: 3.828 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.1551, allocations: 59.34 kB / 0.509 GB, free: 3.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.1554, allocations: 258.6 kB / 0.5093 GB, free: 3.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.1554, allocations: 25.7 kB / 0.5093 GB, free: 3.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.384e-05/0.1555, allocations: 160.6 kB / 0.5095 GB, free: 3.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.327e-05/0.1556, allocations: 106.5 kB / 0.5096 GB, free: 3.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1557, allocations: 57.7 kB / 0.5096 GB, free: 3.137 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1559, allocations: 338.8 kB / 0.5099 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.1562, allocations: 179.7 kB / 0.5101 GB, free: 2.621 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.1566, allocations: 179.8 kB / 0.5103 GB, free: 2.445 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000711/0.1573, allocations: 393.6 kB / 0.5107 GB, free: 2.059 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1573, allocations: 4 kB / 0.5107 GB, free: 2.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001346/0.1587, allocations: 0.6063 MB / 0.5113 GB, free: 1.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.1587, allocations: 4 kB / 0.5113 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1587, allocations: 0 / 0.5113 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007098/0.1594, allocations: 172.1 kB / 0.5114 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005295/0.16, allocations: 91.94 kB / 0.5115 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005628/0.1656, allocations: 7.606 MB / 0.5189 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002956/0.1659, allocations: 39.91 kB / 0.519 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.166, allocations: 8 kB / 0.519 GB, free: 8.758 MB / 398.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.0001899/0.1662, allocations: 167.4 kB / 0.5191 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.998e-05/0.1662, allocations: 27.72 kB / 0.5192 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.1675, allocations: 0.5797 MB / 0.5197 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1675, allocations: 4 kB / 0.5197 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1675, allocations: 4 kB / 0.5197 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.1675, allocations: 3.984 kB / 0.5198 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004886/0.168, allocations: 445 kB / 0.5202 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.168, allocations: 0 / 0.5202 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/0.1685, allocations: 87.88 kB / 0.5203 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004605/0.169, allocations: 148.2 kB / 0.5204 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.169, allocations: 15.98 kB / 0.5204 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004799/0.1738, allocations: 7.199 MB / 0.5274 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1739, allocations: 0 / 0.5274 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.1755, allocations: 0.8588 MB / 0.5283 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.357e-05/0.1756, allocations: 108.8 kB / 0.5284 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.1756, allocations: 11.94 kB / 0.5284 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.1759, allocations: 19.97 kB / 0.5284 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.176, allocations: 31.95 kB / 0.5285 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.176, allocations: 8 kB / 0.5285 GB, free: 14.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001662/0.1762, allocations: 186 kB / 0.5286 GB, free: 14.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1762, allocations: 4 kB / 0.5286 GB, free: 14.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004513/0.1767, allocations: 119.8 kB / 0.5288 GB, free: 13.91 MB / 414.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.001872/0.1786, allocations: 1.404 MB / 0.5301 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.1801, allocations: 0.9975 MB / 0.5311 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1801, allocations: 0 / 0.5311 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009022/0.181, allocations: 0.7824 MB / 0.5319 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.1814, allocations: 72.64 kB / 0.5319 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007242/0.1887, allocations: 4.212 MB / 0.536 GB, free: 6.168 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.189, allocations: 0.799 MB / 0.5368 GB, free: 5.344 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000176/0.1892, allocations: 54.88 kB / 0.5369 GB, free: 5.293 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.1894, allocations: 99.39 kB / 0.537 GB, free: 5.195 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1894, allocations: 0 / 0.537 GB, free: 5.195 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03477/0.2242, allocations: 9.327 MB / 0.5461 GB, free: 11.97 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.368/9.592, allocations: 8.953 kB / 0.5461 GB, free: 11.96 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT_fmu --startTime=0 --stopTime=1.5e+06 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT.fmu > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)