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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007199/0.007199, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001971/0.00197, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.405/1.405, allocations: 222.9 MB / 240.4 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.1004/0.1004, allocations: 22.33 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 63.89 kB / 436.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1029, allocations: 54.95 MB / 491.5 MB, free: 5.266 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.3723/0.4753, allocations: 22.37 MB / 0.5018 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.4764, allocations: 0.679 MB / 0.5025 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.948e-05/0.4766, allocations: 1.625 kB / 0.5025 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.4767, allocations: 44.67 kB / 0.5026 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.4769, allocations: 107.9 kB / 0.5027 GB, free: 5.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000307/0.4772, allocations: 102.6 kB / 0.5028 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000336/0.4776, allocations: 415.8 kB / 0.5031 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.4778, allocations: 239.7 kB / 0.5034 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.478, allocations: 171.2 kB / 0.5035 GB, free: 5.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.4783, allocations: 228 kB / 0.5038 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.056e-05/0.4784, allocations: 39.22 kB / 0.5038 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.729e-05/0.4784, allocations: 36.66 kB / 0.5038 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.4786, allocations: 128.2 kB / 0.504 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.4787, allocations: 201 kB / 0.5041 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004071/0.4792, allocations: 453.4 kB / 0.5046 GB, free: 4.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.4792, allocations: 0 / 0.5046 GB, free: 4.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4792, allocations: 0 / 0.5046 GB, free: 4.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.403e-06/0.4792, allocations: 0 / 0.5046 GB, free: 4.945 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.001196/0.4804, allocations: 0.6941 MB / 0.5053 GB, free: 4.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.4804, allocations: 12.19 kB / 0.5053 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.657e-05/0.4805, allocations: 60.23 kB / 0.5053 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.165e-05/0.4806, allocations: 36.45 kB / 0.5054 GB, free: 4.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/0.4808, allocations: 300.4 kB / 0.5056 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.4809, allocations: 19.12 kB / 0.5057 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.4809, allocations: 29.09 kB / 0.5057 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006192/0.4816, allocations: 346.2 kB / 0.506 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.4816, allocations: 3.156 kB / 0.506 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.4816, allocations: 7.438 kB / 0.506 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4816, allocations: 6.625 kB / 0.506 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006789/0.4823, allocations: 332.4 kB / 0.5064 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.484, allocations: 1.248 MB / 0.5076 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005343/0.4845, allocations: 311.5 kB / 0.5079 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004358/0.485, allocations: 231.7 kB / 0.5081 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.485, allocations: 3.828 kB / 0.5081 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.4851, allocations: 37.23 kB / 0.5081 GB, free: 3.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.4851, allocations: 0 / 0.5081 GB, free: 3.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.00277/0.4878, allocations: 1.234 MB / 0.5093 GB, free: 2.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.062e-05/0.4879, allocations: 60.06 kB / 0.5094 GB, free: 2.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.4881, allocations: 251.1 kB / 0.5096 GB, free: 2.688 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.4881, allocations: 31.52 kB / 0.5097 GB, free: 2.656 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.153e-05/0.4882, allocations: 168.8 kB / 0.5098 GB, free: 2.547 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.05e-05/0.4883, allocations: 109.9 kB / 0.5099 GB, free: 2.477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.4884, allocations: 59.56 kB / 0.51 GB, free: 2.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.325e-05/0.4884, allocations: 337.8 kB / 0.5103 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.4888, allocations: 180 kB / 0.5105 GB, free: 2.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003893/0.4892, allocations: 182 kB / 0.5107 GB, free: 2.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000786/0.49, allocations: 387.6 kB / 0.511 GB, free: 2.129 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.49, allocations: 0 / 0.511 GB, free: 2.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00142/0.4915, allocations: 0.6057 MB / 0.5116 GB, free: 2.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.4915, allocations: 5.5 kB / 0.5116 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.4915, allocations: 0 / 0.5116 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007174/0.4922, allocations: 175.5 kB / 0.5118 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005469/0.4928, allocations: 94.67 kB / 0.5119 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005895/0.4987, allocations: 7.608 MB / 0.5193 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003967/0.4991, allocations: 40.78 kB / 0.5193 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.4992, allocations: 11.81 kB / 0.5194 GB, free: 11.01 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.0002051/0.4994, allocations: 161.5 kB / 0.5195 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.51e-05/0.4994, allocations: 27.39 kB / 0.5195 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.5008, allocations: 0.5792 MB / 0.5201 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.5008, allocations: 4.25 kB / 0.5201 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.5008, allocations: 6.5 kB / 0.5201 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.5009, allocations: 3.469 kB / 0.5201 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005139/0.5014, allocations: 461.8 kB / 0.5206 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5014, allocations: 0.6094 kB / 0.5206 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005309/0.5019, allocations: 88.64 kB / 0.5206 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005093/0.5024, allocations: 146.6 kB / 0.5208 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.212e-05/0.5025, allocations: 9.703 kB / 0.5208 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006203/0.5087, allocations: 7.201 MB / 0.5278 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5087, allocations: 0 / 0.5278 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.5107, allocations: 0.8595 MB / 0.5287 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.5108, allocations: 105 kB / 0.5288 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.302e-05/0.5109, allocations: 12.55 kB / 0.5288 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.5112, allocations: 22.75 kB / 0.5288 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.5113, allocations: 35.03 kB / 0.5288 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.5114, allocations: 9.297 kB / 0.5288 GB, free: 3.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002648/0.5116, allocations: 186 kB / 0.529 GB, free: 3.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5116, allocations: 2.656 kB / 0.529 GB, free: 3.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006514/0.5123, allocations: 124.1 kB / 0.5291 GB, free: 3.348 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.002309/0.5146, allocations: 1.401 MB / 0.5305 GB, free: 2.621 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.5164, allocations: 1 MB / 0.5315 GB, free: 2.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.5164, allocations: 0 / 0.5315 GB, free: 2.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.5175, allocations: 0.7826 MB / 0.5322 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.5179, allocations: 70.66 kB / 0.5323 GB, free: 1.484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007868/0.5258, allocations: 4.248 MB / 0.5365 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.5263, allocations: 0.7881 MB / 0.5372 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000224/0.5265, allocations: 51.73 kB / 0.5373 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.5267, allocations: 99.45 kB / 0.5374 GB, free: 14.74 MB / 414.1 MB Notification: Performance of SimCode: time 4.2e-07/0.5267, allocations: 0 / 0.5374 GB, free: 14.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04436/0.5711, allocations: 9.335 MB / 0.5465 GB, free: 10.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.6, allocations: 9.562 kB / 0.5465 GB, free: 10.54 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT_fmu --startTime=0 --stopTime=1.5e+06 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT.fmu > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)