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.001125/0.001125, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001285/0.001285, allocations: 191 kB / 17.29 MB, free: 5.516 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.35/1.35, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09189/0.09189, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 64.03 kB / 382.2 MB, free: 40.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08691/0.08821, allocations: 54.97 MB / 437.2 MB, free: 12.24 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.02949/0.1177, allocations: 21.74 MB / 458.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1191, allocations: 0.6665 MB / 459.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.1192, allocations: 4 kB / 459.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.1194, allocations: 35.66 kB / 459.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.1196, allocations: 115.1 kB / 459.8 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.1199, allocations: 99.81 kB / 459.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004251/0.1203, allocations: 423 kB / 460.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003027/0.1207, allocations: 239.6 kB / 460.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.1209, allocations: 167.5 kB / 460.7 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.1212, allocations: 231.2 kB / 460.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.887e-05/0.1212, allocations: 40 kB / 460.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.219e-05/0.1213, allocations: 36 kB / 461 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1214, allocations: 127.7 kB / 461.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.1216, allocations: 195.1 kB / 461.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004447/0.1221, allocations: 450.6 kB / 461.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1221, allocations: 0 / 461.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1221, allocations: 0 / 461.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.1221, allocations: 7.938 kB / 461.7 MB, free: 3.836 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.001269/0.1234, allocations: 0.682 MB / 462.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.1234, allocations: 12.03 kB / 462.4 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.415e-05/0.1235, allocations: 32.56 kB / 462.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003826/0.1239, allocations: 306.5 kB / 462.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.1239, allocations: 20.94 kB / 462.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.745e-05/0.124, allocations: 24.38 kB / 462.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006395/0.1246, allocations: 340.9 kB / 463.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1246, allocations: 0 / 463.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.17e-05/0.1247, allocations: 16 kB / 463.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1247, allocations: 7.984 kB / 463.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006802/0.1254, allocations: 330 kB / 463.5 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.1273, allocations: 1.253 MB / 464.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005681/0.1279, allocations: 307.8 kB / 465 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004428/0.1283, allocations: 233.3 kB / 465.3 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.1284, allocations: 4.219 kB / 465.3 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.1284, allocations: 38.8 kB / 465.3 MB, free: 44 kB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.693e-06/0.1284, allocations: 0 / 465.3 MB, free: 44 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002739/0.1312, allocations: 1.221 MB / 466.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.1312, allocations: 67.27 kB / 466.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.1315, allocations: 250.6 kB / 466.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.1315, allocations: 29.7 kB / 466.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1316, allocations: 172.6 kB / 467 MB, free: 14.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.1318, allocations: 98.56 kB / 467.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.1319, allocations: 57.69 kB / 467.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.132, allocations: 338.8 kB / 467.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003652/0.1324, allocations: 171.9 kB / 467.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003532/0.1327, allocations: 179.9 kB / 467.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007212/0.1335, allocations: 397.6 kB / 468.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1335, allocations: 0 / 468.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001376/0.1349, allocations: 0.6025 MB / 468.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1349, allocations: 8 kB / 468.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1349, allocations: 0 / 468.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007073/0.1356, allocations: 172.2 kB / 469 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005086/0.1361, allocations: 91.86 kB / 469.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005849/0.142, allocations: 7.606 MB / 476.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003117/0.1423, allocations: 39.7 kB / 476.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.1424, allocations: 7.984 kB / 476.8 MB, free: 3.645 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.0001702/0.1425, allocations: 169.6 kB / 476.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.861e-05/0.1426, allocations: 27.78 kB / 477 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.1439, allocations: 0.5796 MB / 477.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1439, allocations: 4 kB / 477.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1439, allocations: 4 kB / 477.6 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1439, allocations: 0 / 477.6 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004727/0.1444, allocations: 445 kB / 478 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.1444, allocations: 3.938 kB / 478 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005155/0.1449, allocations: 91.92 kB / 478.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004824/0.1454, allocations: 148.1 kB / 478.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/0.1455, allocations: 8 kB / 478.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004837/0.1503, allocations: 7.199 MB / 485.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1503, allocations: 0 / 485.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.152, allocations: 0.8592 MB / 486.3 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.664e-05/0.1521, allocations: 112.7 kB / 486.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.1521, allocations: 8 kB / 486.4 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.1524, allocations: 27.91 kB / 486.4 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.1525, allocations: 31.89 kB / 486.5 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.1526, allocations: 15.98 kB / 486.5 MB, free: 9.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001708/0.1527, allocations: 186 kB / 486.7 MB, free: 8.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1527, allocations: 0 / 486.7 MB, free: 8.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004868/0.1532, allocations: 123.8 kB / 486.8 MB, free: 8.781 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.000136/0.1534, allocations: 103.2 kB / 486.9 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.1548, allocations: 0.9894 MB / 487.9 MB, free: 7.617 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.1548, allocations: 0 / 487.9 MB, free: 7.617 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000924/0.1557, allocations: 0.7863 MB / 488.7 MB, free: 6.766 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004175/0.1561, allocations: 60.66 kB / 488.7 MB, free: 6.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.1589, allocations: 1.189 MB / 489.9 MB, free: 5.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.1593, allocations: 0.7873 MB / 490.7 MB, free: 4.688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001683/0.1595, allocations: 50.95 kB / 490.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.503e-05/0.1596, allocations: 27.38 kB / 490.8 MB, free: 4.609 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1596, allocations: 0 / 490.8 MB, free: 4.609 MB / 366.1 MB Notification: Performance of Templates: time 0.0105/0.1701, allocations: 6.214 MB / 497 MB, free: 14.44 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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)