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.001179/0.001179, allocations: 104.6 kB / 16.41 MB, free: 6.488 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.001037/0.001037, allocations: 183 kB / 17.34 MB, free: 5.734 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.47/1.47, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09424/0.09424, allocations: 22.32 MB / 313.5 MB, free: 8.855 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 59.91 kB / 437.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1042, allocations: 54.95 MB / 492.7 MB, free: 4.711 MB / 366.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.4592/0.5634, allocations: 22.01 MB / 0.5026 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.5647, allocations: 0.6805 MB / 0.5033 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.5649, allocations: 2.75 kB / 0.5033 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000164/0.565, allocations: 34.11 kB / 0.5033 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.5652, allocations: 112.4 kB / 0.5034 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003397/0.5656, allocations: 105 kB / 0.5035 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.566, allocations: 419.8 kB / 0.5039 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002863/0.5663, allocations: 248.7 kB / 0.5042 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.5664, allocations: 173.4 kB / 0.5043 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002782/0.5667, allocations: 221.4 kB / 0.5045 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.809e-05/0.5668, allocations: 37.97 kB / 0.5046 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.514e-05/0.5669, allocations: 43 kB / 0.5046 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.567, allocations: 130.1 kB / 0.5047 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.5672, allocations: 193.5 kB / 0.5049 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004807/0.5677, allocations: 454.8 kB / 0.5054 GB, free: 5.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.5677, allocations: 0 / 0.5054 GB, free: 5.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5677, allocations: 1.875 kB / 0.5054 GB, free: 5.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.5677, allocations: 0 / 0.5054 GB, free: 5.453 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.001227/0.569, allocations: 0.681 MB / 0.506 GB, free: 4.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.569, allocations: 7.5 kB / 0.506 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.505e-05/0.5691, allocations: 38.69 kB / 0.5061 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.5694, allocations: 299.7 kB / 0.5064 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.5694, allocations: 16.56 kB / 0.5064 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.879e-05/0.5695, allocations: 29.22 kB / 0.5064 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/0.5701, allocations: 345.3 kB / 0.5067 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.5702, allocations: 0 / 0.5067 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.5702, allocations: 13.94 kB / 0.5067 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.5702, allocations: 4.219 kB / 0.5067 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007047/0.5709, allocations: 332.1 kB / 0.5071 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.5727, allocations: 1.249 MB / 0.5083 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005671/0.5733, allocations: 310.4 kB / 0.5086 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004796/0.5738, allocations: 229.5 kB / 0.5088 GB, free: 4.027 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.5738, allocations: 2.547 kB / 0.5088 GB, free: 4.027 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.5739, allocations: 40.23 kB / 0.5088 GB, free: 3.988 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.533e-06/0.5739, allocations: 0 / 0.5088 GB, free: 3.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.002861/0.5767, allocations: 1.229 MB / 0.51 GB, free: 3.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.5768, allocations: 63 kB / 0.5101 GB, free: 3.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002617/0.577, allocations: 253.4 kB / 0.5103 GB, free: 3.246 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.5771, allocations: 33.64 kB / 0.5104 GB, free: 3.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.01e-05/0.5772, allocations: 165.1 kB / 0.5105 GB, free: 3.109 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.643e-05/0.5772, allocations: 98.84 kB / 0.5106 GB, free: 3.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.5774, allocations: 56.53 kB / 0.5107 GB, free: 3.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.54e-05/0.5774, allocations: 345.8 kB / 0.511 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000397/0.5778, allocations: 181.9 kB / 0.5112 GB, free: 2.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003814/0.5782, allocations: 177.5 kB / 0.5113 GB, free: 2.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007601/0.579, allocations: 389.4 kB / 0.5117 GB, free: 2.695 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.579, allocations: 0 / 0.5117 GB, free: 2.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001538/0.5805, allocations: 0.6056 MB / 0.5123 GB, free: 2.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.5806, allocations: 5.719 kB / 0.5123 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.5806, allocations: 0.6562 kB / 0.5123 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008188/0.5814, allocations: 173.3 kB / 0.5125 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006344/0.5821, allocations: 94.62 kB / 0.5126 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00591/0.588, allocations: 7.598 MB / 0.52 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/0.5885, allocations: 41.2 kB / 0.52 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.5885, allocations: 10.3 kB / 0.52 GB, free: 11.59 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.0002274/0.5888, allocations: 167.9 kB / 0.5202 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.167e-05/0.5888, allocations: 28.69 kB / 0.5202 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.5902, allocations: 0.5771 MB / 0.5208 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.5903, allocations: 5.094 kB / 0.5208 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.5903, allocations: 3.25 kB / 0.5208 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/0.5903, allocations: 1.594 kB / 0.5208 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005869/0.5909, allocations: 446.2 kB / 0.5212 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.5909, allocations: 0.6562 kB / 0.5212 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005615/0.5915, allocations: 95.16 kB / 0.5213 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005399/0.592, allocations: 144.5 kB / 0.5215 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.5921, allocations: 12.42 kB / 0.5215 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004975/0.597, allocations: 7.207 MB / 0.5285 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5971, allocations: 2.109 kB / 0.5285 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.5991, allocations: 0.8568 MB / 0.5293 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.5993, allocations: 109.7 kB / 0.5294 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.478e-05/0.5993, allocations: 9.141 kB / 0.5295 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003224/0.5997, allocations: 25.53 kB / 0.5295 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.5998, allocations: 31.58 kB / 0.5295 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.5999, allocations: 11.58 kB / 0.5295 GB, free: 4.016 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.6001, allocations: 190.1 kB / 0.5297 GB, free: 3.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6001, allocations: 0 / 0.5297 GB, free: 3.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005807/0.6007, allocations: 122.3 kB / 0.5298 GB, free: 3.926 MB / 398.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.0001588/0.6009, allocations: 109.4 kB / 0.5299 GB, free: 3.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.6027, allocations: 0.9922 MB / 0.5309 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6027, allocations: 0.5312 kB / 0.5309 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.6037, allocations: 0.777 MB / 0.5317 GB, free: 2.723 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.6042, allocations: 65.28 kB / 0.5317 GB, free: 2.723 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/0.6076, allocations: 1.21 MB / 0.5329 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004624/0.6081, allocations: 0.7929 MB / 0.5337 GB, free: 1.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.6082, allocations: 26.84 kB / 0.5337 GB, free: 1.617 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6082, allocations: 0 / 0.5337 GB, free: 1.617 MB / 398.1 MB Notification: Performance of Templates: time 0.01412/0.6224, allocations: 9.962 MB / 0.5434 GB, free: 13.12 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)