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.001232/0.001232, allocations: 106.3 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.001301/0.001301, allocations: 187 kB / 17.34 MB, free: 5.73 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08923/0.08923, allocations: 22.33 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 68.03 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1172, allocations: 54.96 MB / 492.7 MB, free: 4.742 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.4714/0.5887, allocations: 21.93 MB / 0.5026 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.5901, allocations: 0.6637 MB / 0.5032 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.5903, allocations: 1.688 kB / 0.5032 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.5905, allocations: 43.52 kB / 0.5033 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.5907, allocations: 113.6 kB / 0.5034 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.5911, allocations: 97.72 kB / 0.5035 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003972/0.5915, allocations: 412.2 kB / 0.5038 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003225/0.5919, allocations: 242.5 kB / 0.5041 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001971/0.5921, allocations: 182.7 kB / 0.5043 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003006/0.5924, allocations: 223.8 kB / 0.5045 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.881e-05/0.5924, allocations: 37.75 kB / 0.5045 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.157e-05/0.5925, allocations: 38.31 kB / 0.5045 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.5927, allocations: 134.2 kB / 0.5047 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.5929, allocations: 190.3 kB / 0.5048 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004934/0.5934, allocations: 448.3 kB / 0.5053 GB, free: 5.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.5934, allocations: 0 / 0.5053 GB, free: 5.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5934, allocations: 0 / 0.5053 GB, free: 5.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.5934, allocations: 1.094 kB / 0.5053 GB, free: 5.5 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.0013/0.5947, allocations: 0.6842 MB / 0.5059 GB, free: 5.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.5947, allocations: 7.844 kB / 0.506 GB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.926e-05/0.5948, allocations: 37.31 kB / 0.506 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.5952, allocations: 310.2 kB / 0.5063 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.5952, allocations: 16.69 kB / 0.5063 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.855e-05/0.5953, allocations: 25 kB / 0.5063 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006942/0.596, allocations: 346.3 kB / 0.5067 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.596, allocations: 2.656 kB / 0.5067 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/0.596, allocations: 7.188 kB / 0.5067 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.596, allocations: 7.797 kB / 0.5067 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007178/0.5968, allocations: 333.2 kB / 0.507 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.5986, allocations: 1.252 MB / 0.5082 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005634/0.5992, allocations: 308.4 kB / 0.5085 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004604/0.5997, allocations: 227.7 kB / 0.5087 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.5997, allocations: 5.266 kB / 0.5087 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.5998, allocations: 36.98 kB / 0.5088 GB, free: 4.031 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.673e-06/0.5998, allocations: 0 / 0.5088 GB, free: 4.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.00292/0.6027, allocations: 1.242 MB / 0.51 GB, free: 3.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/0.6027, allocations: 62.06 kB / 0.51 GB, free: 3.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.603, allocations: 252.9 kB / 0.5103 GB, free: 3.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.603, allocations: 30.7 kB / 0.5103 GB, free: 3.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.355e-05/0.6031, allocations: 164.7 kB / 0.5105 GB, free: 3.145 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.146e-05/0.6032, allocations: 101.7 kB / 0.5106 GB, free: 3.082 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.6033, allocations: 58.78 kB / 0.5106 GB, free: 3.066 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.796e-05/0.6034, allocations: 339.6 kB / 0.5109 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004052/0.6038, allocations: 178.5 kB / 0.5111 GB, free: 2.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003965/0.6042, allocations: 180.9 kB / 0.5113 GB, free: 2.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007929/0.605, allocations: 386.8 kB / 0.5116 GB, free: 2.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.605, allocations: 0 / 0.5116 GB, free: 2.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001501/0.6065, allocations: 0.61 MB / 0.5122 GB, free: 2.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.6066, allocations: 4.125 kB / 0.5122 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.6066, allocations: 4.859 kB / 0.5123 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007348/0.6073, allocations: 167.2 kB / 0.5124 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005496/0.6079, allocations: 98.31 kB / 0.5125 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005366/0.6133, allocations: 7.597 MB / 0.5199 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004428/0.6137, allocations: 37.94 kB / 0.52 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.181e-05/0.6138, allocations: 8.391 kB / 0.52 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.0002421/0.614, allocations: 165 kB / 0.5201 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.202e-05/0.6141, allocations: 29.77 kB / 0.5202 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.6155, allocations: 0.5844 MB / 0.5207 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.6155, allocations: 3.25 kB / 0.5207 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.6155, allocations: 1.969 kB / 0.5207 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.6155, allocations: 0 / 0.5207 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005899/0.6161, allocations: 446.8 kB / 0.5212 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.6161, allocations: 2.656 kB / 0.5212 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.6167, allocations: 89.67 kB / 0.5212 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005197/0.6172, allocations: 147.7 kB / 0.5214 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.6173, allocations: 9.031 kB / 0.5214 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00541/0.6227, allocations: 7.198 MB / 0.5284 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6227, allocations: 4.062 kB / 0.5284 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002015/0.6247, allocations: 0.8547 MB / 0.5293 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.6249, allocations: 111.4 kB / 0.5294 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.6249, allocations: 6.484 kB / 0.5294 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/0.6253, allocations: 27.47 kB / 0.5294 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.6254, allocations: 35.39 kB / 0.5294 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.6255, allocations: 6.5 kB / 0.5294 GB, free: 4.062 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002227/0.6257, allocations: 189.4 kB / 0.5296 GB, free: 3.984 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6257, allocations: 0 / 0.5296 GB, free: 3.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006374/0.6263, allocations: 120.6 kB / 0.5297 GB, free: 3.977 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.6265, allocations: 109.7 kB / 0.5298 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.6283, allocations: 0.9948 MB / 0.5308 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.6283, allocations: 0.5 kB / 0.5308 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.6294, allocations: 0.7807 MB / 0.5316 GB, free: 2.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004918/0.6299, allocations: 72.56 kB / 0.5316 GB, free: 2.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003238/0.6331, allocations: 1.209 MB / 0.5328 GB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/0.6336, allocations: 0.7904 MB / 0.5336 GB, free: 1.688 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.6338, allocations: 29.12 kB / 0.5336 GB, free: 1.68 MB / 398.1 MB Notification: Performance of SimCode: time 2.305e-06/0.6338, allocations: 0 / 0.5336 GB, free: 1.68 MB / 398.1 MB Notification: Performance of Templates: time 0.01486/0.6486, allocations: 9.98 MB / 0.5434 GB, free: 13.26 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)