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.006269/0.006269, allocations: 103.2 kB / 15.73 MB, free: 6.051 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.001273/0.001273, allocations: 191.2 kB / 16.67 MB, free: 5.98 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.553/1.553, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2072/0.2072, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 62.28 kB / 437.1 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1481, allocations: 54.96 MB / 492 MB, free: 1.23 MB / 350.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.04441/0.1926, allocations: 22.03 MB / 0.502 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1944, allocations: 0.6704 MB / 0.5027 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.1946, allocations: 8 kB / 0.5027 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.1948, allocations: 39.64 kB / 0.5027 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003077/0.1951, allocations: 115.2 kB / 0.5028 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.1956, allocations: 95.8 kB / 0.5029 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000551/0.1962, allocations: 419.1 kB / 0.5033 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004378/0.1966, allocations: 247.6 kB / 0.5036 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.1969, allocations: 175.4 kB / 0.5037 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.1973, allocations: 223.3 kB / 0.5039 GB, free: 9.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.992e-05/0.1974, allocations: 40 kB / 0.504 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.35e-05/0.1975, allocations: 40 kB / 0.504 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.1977, allocations: 127.7 kB / 0.5041 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.1979, allocations: 195 kB / 0.5043 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005574/0.1985, allocations: 450.6 kB / 0.5048 GB, free: 8.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1985, allocations: 0 / 0.5048 GB, free: 8.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1985, allocations: 4 kB / 0.5048 GB, free: 8.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1986, allocations: 0 / 0.5048 GB, free: 8.516 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.001759/0.2003, allocations: 0.6704 MB / 0.5054 GB, free: 7.797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.2004, allocations: 15.97 kB / 0.5054 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.2005, allocations: 40.45 kB / 0.5055 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004853/0.201, allocations: 298.6 kB / 0.5057 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.201, allocations: 20.94 kB / 0.5058 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.65e-05/0.2011, allocations: 24.38 kB / 0.5058 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009709/0.2021, allocations: 340.9 kB / 0.5061 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2021, allocations: 0 / 0.5061 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.744e-05/0.2022, allocations: 16 kB / 0.5061 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.998e-06/0.2022, allocations: 4 kB / 0.5061 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.2033, allocations: 334 kB / 0.5065 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002712/0.206, allocations: 1.241 MB / 0.5077 GB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008505/0.2069, allocations: 311.7 kB / 0.508 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006494/0.2076, allocations: 237.4 kB / 0.5082 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.628e-05/0.2076, allocations: 4.219 kB / 0.5082 GB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.2077, allocations: 46.73 kB / 0.5082 GB, free: 4.727 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.264e-06/0.2077, allocations: 0 / 0.5082 GB, free: 4.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.004007/0.2117, allocations: 1.231 MB / 0.5094 GB, free: 3.383 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.2118, allocations: 63.28 kB / 0.5095 GB, free: 3.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003915/0.2122, allocations: 250.6 kB / 0.5097 GB, free: 3.055 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.2122, allocations: 29.7 kB / 0.5098 GB, free: 3.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.2124, allocations: 172.6 kB / 0.5099 GB, free: 2.848 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.2125, allocations: 102.5 kB / 0.51 GB, free: 2.746 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.2127, allocations: 61.69 kB / 0.5101 GB, free: 2.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.2129, allocations: 334.8 kB / 0.5104 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005779/0.2135, allocations: 179.8 kB / 0.5106 GB, free: 2.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005696/0.2141, allocations: 179.9 kB / 0.5108 GB, free: 1.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.2152, allocations: 389.7 kB / 0.5111 GB, free: 1.609 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.748e-06/0.2153, allocations: 0 / 0.5111 GB, free: 1.609 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002133/0.2174, allocations: 0.6062 MB / 0.5117 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.2174, allocations: 11.98 kB / 0.5117 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2175, allocations: 0 / 0.5117 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.2185, allocations: 168.2 kB / 0.5119 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007665/0.2193, allocations: 95.86 kB / 0.512 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007729/0.227, allocations: 7.599 MB / 0.5194 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005026/0.2275, allocations: 35.84 kB / 0.5194 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.173e-05/0.2276, allocations: 8 kB / 0.5194 GB, free: 8.312 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.0002802/0.2279, allocations: 166.6 kB / 0.5196 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.228, allocations: 27.62 kB / 0.5196 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.23, allocations: 0.5796 MB / 0.5202 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2301, allocations: 4 kB / 0.5202 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.2301, allocations: 0 / 0.5202 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2301, allocations: 0 / 0.5202 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007744/0.2309, allocations: 449 kB / 0.5206 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.2309, allocations: 0 / 0.5206 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007775/0.2317, allocations: 91.94 kB / 0.5207 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007087/0.2324, allocations: 144.1 kB / 0.5208 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.615e-05/0.2325, allocations: 8 kB / 0.5209 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006687/0.2392, allocations: 7.207 MB / 0.5279 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.2392, allocations: 0 / 0.5279 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002515/0.2417, allocations: 0.8593 MB / 0.5287 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.2419, allocations: 104.8 kB / 0.5288 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.138e-05/0.242, allocations: 11.98 kB / 0.5288 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004274/0.2424, allocations: 27.86 kB / 0.5289 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.2426, allocations: 35.89 kB / 0.5289 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.438e-05/0.2426, allocations: 11.98 kB / 0.5289 GB, free: 13.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000262/0.2429, allocations: 186 kB / 0.5291 GB, free: 13.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2429, allocations: 0 / 0.5291 GB, free: 13.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000801/0.2437, allocations: 123.8 kB / 0.5292 GB, free: 13.46 MB / 414.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.0002064/0.2439, allocations: 111.2 kB / 0.5293 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0022/0.2461, allocations: 0.9816 MB / 0.5303 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2462, allocations: 0 / 0.5303 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.2475, allocations: 0.7902 MB / 0.531 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006865/0.2482, allocations: 60.64 kB / 0.5311 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004201/0.2524, allocations: 1.174 MB / 0.5323 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.2529, allocations: 0.7834 MB / 0.533 GB, free: 9.375 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002825/0.2532, allocations: 54.94 kB / 0.5331 GB, free: 9.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2533, allocations: 27.44 kB / 0.5331 GB, free: 9.293 MB / 414.1 MB Notification: Performance of SimCode: time 4.7e-07/0.2533, allocations: 0 / 0.5331 GB, free: 9.293 MB / 414.1 MB Notification: Performance of Templates: time 0.01585/0.2692, allocations: 6.296 MB / 0.5392 GB, free: 3.027 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)