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.007656/0.007656, allocations: 96.31 kB / 15.73 MB, free: 5.996 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.001744/0.001744, allocations: 185.8 kB / 16.67 MB, free: 5.926 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2039/0.2039, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 70.27 kB / 437.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1177, allocations: 54.96 MB / 492.1 MB, free: 1.223 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.03214/0.1499, allocations: 22.05 MB / 0.5021 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.1517, allocations: 0.6743 MB / 0.5027 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.1519, allocations: 0 / 0.5027 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.152, allocations: 39.58 kB / 0.5027 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002341/0.1523, allocations: 107.2 kB / 0.5029 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.1527, allocations: 95.8 kB / 0.5029 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004458/0.1531, allocations: 423 kB / 0.5033 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.1534, allocations: 255.6 kB / 0.5036 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.1537, allocations: 167.5 kB / 0.5037 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002977/0.154, allocations: 223.3 kB / 0.504 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.364e-05/0.154, allocations: 36 kB / 0.504 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.11e-05/0.1541, allocations: 40 kB / 0.504 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.1543, allocations: 127.6 kB / 0.5042 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001817/0.1544, allocations: 195.1 kB / 0.5043 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.1549, allocations: 450.3 kB / 0.5048 GB, free: 8.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1549, allocations: 0 / 0.5048 GB, free: 8.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1549, allocations: 0 / 0.5048 GB, free: 8.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1549, allocations: 0 / 0.5048 GB, free: 8.496 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.00134/0.1562, allocations: 0.6973 MB / 0.5055 GB, free: 7.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1563, allocations: 12.03 kB / 0.5055 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.339e-05/0.1564, allocations: 36.7 kB / 0.5055 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.1568, allocations: 306.8 kB / 0.5058 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.1568, allocations: 20.92 kB / 0.5058 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.839e-05/0.1569, allocations: 28.38 kB / 0.5058 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006913/0.1576, allocations: 340.9 kB / 0.5062 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.1576, allocations: 0 / 0.5062 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.398e-05/0.1576, allocations: 12 kB / 0.5062 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.1576, allocations: 4 kB / 0.5062 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007353/0.1584, allocations: 334 kB / 0.5065 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.1603, allocations: 1.242 MB / 0.5077 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006006/0.1609, allocations: 311.8 kB / 0.508 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004565/0.1614, allocations: 221.4 kB / 0.5082 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.1614, allocations: 16.17 kB / 0.5082 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.1615, allocations: 42.72 kB / 0.5083 GB, free: 4.684 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.643e-06/0.1615, allocations: 0 / 0.5083 GB, free: 4.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.002959/0.1644, allocations: 1.232 MB / 0.5095 GB, free: 3.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.1645, allocations: 59.34 kB / 0.5095 GB, free: 3.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.1648, allocations: 254.6 kB / 0.5098 GB, free: 3.012 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.1648, allocations: 29.7 kB / 0.5098 GB, free: 2.977 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.1649, allocations: 168.8 kB / 0.51 GB, free: 2.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.165, allocations: 111 kB / 0.5101 GB, free: 2.699 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.1651, allocations: 57.7 kB / 0.5101 GB, free: 2.637 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1652, allocations: 338.8 kB / 0.5104 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.1657, allocations: 183.7 kB / 0.5106 GB, free: 2.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003849/0.1661, allocations: 175.9 kB / 0.5108 GB, free: 1.945 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007772/0.1669, allocations: 393.7 kB / 0.5112 GB, free: 1.559 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1669, allocations: 0 / 0.5112 GB, free: 1.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001461/0.1683, allocations: 0.6064 MB / 0.5118 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1684, allocations: 10.66 kB / 0.5118 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.1684, allocations: 0 / 0.5118 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007502/0.1691, allocations: 168.2 kB / 0.5119 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005538/0.1697, allocations: 95.88 kB / 0.512 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005536/0.1752, allocations: 7.603 MB / 0.5194 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/0.1756, allocations: 40.05 kB / 0.5195 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.1756, allocations: 11.94 kB / 0.5195 GB, free: 8.258 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.0001815/0.1758, allocations: 157.7 kB / 0.5196 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.73e-05/0.1759, allocations: 27.91 kB / 0.5197 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001362/0.1772, allocations: 0.5912 MB / 0.5203 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1773, allocations: 0 / 0.5203 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1773, allocations: 4 kB / 0.5203 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1773, allocations: 3.984 kB / 0.5203 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005266/0.1778, allocations: 453 kB / 0.5207 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1778, allocations: 0 / 0.5207 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005517/0.1784, allocations: 83.94 kB / 0.5208 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004984/0.1789, allocations: 144.1 kB / 0.5209 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.1789, allocations: 11.98 kB / 0.5209 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00492/0.1839, allocations: 7.203 MB / 0.528 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1839, allocations: 0 / 0.528 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.1857, allocations: 0.8633 MB / 0.5288 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.878e-05/0.1858, allocations: 112.8 kB / 0.5289 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.1859, allocations: 8.062 kB / 0.5289 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.1862, allocations: 27.91 kB / 0.5289 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.1863, allocations: 31.95 kB / 0.529 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.989e-05/0.1864, allocations: 4 kB / 0.529 GB, free: 13.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.1866, allocations: 189.9 kB / 0.5292 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1866, allocations: 4 kB / 0.5292 GB, free: 13.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006135/0.1872, allocations: 127.9 kB / 0.5293 GB, free: 13.39 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.0001792/0.1874, allocations: 103.9 kB / 0.5294 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.1891, allocations: 0.9893 MB / 0.5303 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1891, allocations: 0 / 0.5303 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009755/0.1901, allocations: 0.7824 MB / 0.5311 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.1906, allocations: 72.62 kB / 0.5312 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.1936, allocations: 1.161 MB / 0.5323 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.194, allocations: 0.7989 MB / 0.5331 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002118/0.1943, allocations: 46.95 kB / 0.5331 GB, free: 9.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.1944, allocations: 27.42 kB / 0.5332 GB, free: 9.223 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1944, allocations: 4 kB / 0.5332 GB, free: 9.219 MB / 414.1 MB Notification: Performance of Templates: time 0.01089/0.2053, allocations: 6.302 MB / 0.5393 GB, free: 2.949 MB / 414.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)