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.007076/0.007076, allocations: 102.4 kB / 15.73 MB, free: 6.043 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.001211/0.001211, allocations: 199.2 kB / 16.68 MB, free: 5.961 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.361/1.361, allocations: 222.9 MB / 240.4 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.0927/0.0927, allocations: 22.33 MB / 312.8 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 63.89 kB / 437 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09967/0.1011, allocations: 54.96 MB / 492 MB, free: 4.719 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.4343/0.5354, allocations: 21.93 MB / 0.5019 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.537, allocations: 0.6675 MB / 0.5025 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.5371, allocations: 4.062 kB / 0.5025 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.5373, allocations: 42.55 kB / 0.5026 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.5375, allocations: 106.9 kB / 0.5027 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003725/0.5379, allocations: 100.4 kB / 0.5028 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.5383, allocations: 421.6 kB / 0.5032 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003328/0.5386, allocations: 243.2 kB / 0.5034 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.5388, allocations: 175 kB / 0.5036 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003199/0.5391, allocations: 223.6 kB / 0.5038 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.548e-05/0.5392, allocations: 38.34 kB / 0.5038 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.411e-05/0.5393, allocations: 39.38 kB / 0.5039 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001591/0.5394, allocations: 132.7 kB / 0.504 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.5397, allocations: 192.4 kB / 0.5042 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000558/0.5402, allocations: 444.6 kB / 0.5046 GB, free: 5.492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.5402, allocations: 0 / 0.5046 GB, free: 5.492 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5402, allocations: 0 / 0.5046 GB, free: 5.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.5403, allocations: 0 / 0.5046 GB, free: 5.492 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.001328/0.5416, allocations: 0.6839 MB / 0.5053 GB, free: 5.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.5416, allocations: 13.59 kB / 0.5053 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.991e-05/0.5417, allocations: 42 kB / 0.5053 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.5421, allocations: 300.5 kB / 0.5056 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.5421, allocations: 19.44 kB / 0.5056 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-05/0.5422, allocations: 23.56 kB / 0.5057 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006678/0.5429, allocations: 348.5 kB / 0.506 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.5429, allocations: 0 / 0.506 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.564e-05/0.5429, allocations: 12.09 kB / 0.506 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.5429, allocations: 5.594 kB / 0.506 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006906/0.5436, allocations: 331.5 kB / 0.5063 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.5454, allocations: 1.248 MB / 0.5075 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005696/0.546, allocations: 310.6 kB / 0.5078 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004915/0.5465, allocations: 227.8 kB / 0.5081 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.5465, allocations: 5.891 kB / 0.5081 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.5466, allocations: 36.5 kB / 0.5081 GB, free: 4.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.222e-06/0.5466, allocations: 2.812 kB / 0.5081 GB, free: 4.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.002939/0.5495, allocations: 1.239 MB / 0.5093 GB, free: 3.449 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.5496, allocations: 58.97 kB / 0.5094 GB, free: 3.383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/0.5498, allocations: 254.5 kB / 0.5096 GB, free: 3.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.5499, allocations: 30.98 kB / 0.5096 GB, free: 3.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.55, allocations: 168.4 kB / 0.5098 GB, free: 3.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.515e-05/0.5501, allocations: 100.9 kB / 0.5099 GB, free: 3.074 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.5502, allocations: 57.2 kB / 0.5099 GB, free: 3.059 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.171e-05/0.5503, allocations: 335.2 kB / 0.5103 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000385/0.5507, allocations: 186.2 kB / 0.5104 GB, free: 2.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.5511, allocations: 177.5 kB / 0.5106 GB, free: 2.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007581/0.5518, allocations: 387.8 kB / 0.511 GB, free: 2.727 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5519, allocations: 3.938 kB / 0.511 GB, free: 2.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001488/0.5534, allocations: 0.6066 MB / 0.5116 GB, free: 2.621 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.5534, allocations: 5.312 kB / 0.5116 GB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.5534, allocations: 1.5 kB / 0.5116 GB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007614/0.5542, allocations: 172 kB / 0.5117 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005587/0.5547, allocations: 93.38 kB / 0.5118 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005678/0.5604, allocations: 7.604 MB / 0.5193 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.5608, allocations: 36.89 kB / 0.5193 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.5609, allocations: 11.58 kB / 0.5193 GB, free: 11.62 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.0002235/0.5611, allocations: 159.8 kB / 0.5195 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-05/0.5612, allocations: 29.41 kB / 0.5195 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.5626, allocations: 0.5829 MB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.5627, allocations: 2.594 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.5627, allocations: 3.812 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5627, allocations: 3.969 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006948/0.5634, allocations: 447.3 kB / 0.5205 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/0.5634, allocations: 0.5156 kB / 0.5205 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005509/0.564, allocations: 95.36 kB / 0.5206 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005318/0.5645, allocations: 141.5 kB / 0.5207 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/0.5646, allocations: 8.703 kB / 0.5207 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005461/0.57, allocations: 7.199 MB / 0.5278 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.57, allocations: 0.7031 kB / 0.5278 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/0.572, allocations: 0.8575 MB / 0.5286 GB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.5721, allocations: 106.8 kB / 0.5287 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.685e-05/0.5722, allocations: 6.391 kB / 0.5287 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002985/0.5725, allocations: 33.34 kB / 0.5287 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.5727, allocations: 28.86 kB / 0.5288 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/0.5727, allocations: 9.625 kB / 0.5288 GB, free: 4.055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002648/0.573, allocations: 186 kB / 0.529 GB, free: 3.977 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.573, allocations: 2.656 kB / 0.529 GB, free: 3.977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006416/0.5736, allocations: 124.6 kB / 0.5291 GB, free: 3.969 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.0001832/0.5738, allocations: 109.7 kB / 0.5292 GB, free: 3.879 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.5758, allocations: 0.993 MB / 0.5301 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5759, allocations: 2.656 kB / 0.5302 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.5772, allocations: 0.7764 MB / 0.5309 GB, free: 2.758 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.5777, allocations: 63.86 kB / 0.531 GB, free: 2.758 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004026/0.5817, allocations: 1.188 MB / 0.5321 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000629/0.5824, allocations: 0.7883 MB / 0.5329 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002864/0.5827, allocations: 50.48 kB / 0.5329 GB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.5828, allocations: 28.34 kB / 0.533 GB, free: 1.695 MB / 398.1 MB Notification: Performance of SimCode: time 3.136e-06/0.5828, allocations: 0 / 0.533 GB, free: 1.695 MB / 398.1 MB Notification: Performance of Templates: time 0.01415/0.597, allocations: 6.478 MB / 0.5393 GB, free: 15.24 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)