Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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.HeatExchanger_1vol_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001163/0.001163, allocations: 193.1 kB / 16.91 MB, free: 6.195 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.215/1.215, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08536/0.08536, allocations: 22.32 MB / 313.1 MB, free: 9.152 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 65.17 kB / 380.9 MB, free: 41.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06977/0.07095, allocations: 54.96 MB / 435.9 MB, free: 13.55 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.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/Liquid/HE_LiquidLiquid_1vol.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.HeatExchanger_1vol_case_003): time 0.02703/0.09802, allocations: 22.62 MB / 458.5 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.09904, allocations: 454.4 kB / 458.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.0992, allocations: 11.94 kB / 459 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.299e-05/0.0993, allocations: 35.69 kB / 459 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002915/0.0996, allocations: 123 kB / 459.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.09977, allocations: 67.94 kB / 459.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003173/0.1001, allocations: 422 kB / 459.6 MB, free: 5.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002824/0.1004, allocations: 243.1 kB / 459.8 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.1006, allocations: 179.2 kB / 460 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.1008, allocations: 183.2 kB / 460.2 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.763e-05/0.1008, allocations: 28 kB / 460.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.1009, allocations: 63.95 kB / 460.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.068e-05/0.101, allocations: 71.7 kB / 460.3 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.1011, allocations: 179.1 kB / 460.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.1014, allocations: 299.2 kB / 460.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1014, allocations: 0 / 460.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1014, allocations: 0 / 460.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1014, allocations: 0 / 460.8 MB, free: 4.746 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0008714/0.1023, allocations: 0.635 MB / 461.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.1023, allocations: 11.97 kB / 461.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.821e-05/0.1024, allocations: 40.47 kB / 461.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.1027, allocations: 311.3 kB / 461.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.1027, allocations: 16.94 kB / 461.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.1028, allocations: 24.38 kB / 461.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004013/0.1032, allocations: 280.8 kB / 462.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.1032, allocations: 192 / 462.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.1033, allocations: 11.94 kB / 462.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.1033, allocations: 4 kB / 462.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003172/0.1036, allocations: 201.6 kB / 462.3 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.1047, allocations: 0.9005 MB / 463.2 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.1051, allocations: 170.7 kB / 463.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.1052, allocations: 96.83 kB / 463.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.1053, allocations: 4 kB / 463.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.1053, allocations: 42.48 kB / 463.5 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001887/0.1055, allocations: 39.75 kB / 463.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.1055, allocations: 4 kB / 463.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001223/0.1067, allocations: 442.9 kB / 464 MB, free: 1.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.1068, allocations: 51.41 kB / 464.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.107, allocations: 296.6 kB / 464.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.1071, allocations: 29.7 kB / 464.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.982e-05/0.1072, allocations: 184 kB / 464.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.271e-05/0.1072, allocations: 63.11 kB / 464.6 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.256e-05/0.1073, allocations: 45.69 kB / 464.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1074, allocations: 346.7 kB / 465 MB, free: 292 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.1075, allocations: 67.97 kB / 465.1 MB, free: 224 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.1076, allocations: 89.61 kB / 465.2 MB, free: 128 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003782/0.1114, allocations: 0.6993 MB / 465.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1114, allocations: 0 / 465.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000733/0.1122, allocations: 317.7 kB / 466.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.1122, allocations: 4 kB / 466.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1122, allocations: 0 / 466.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007245/0.113, allocations: 104.8 kB / 466.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.1132, allocations: 51.95 kB / 466.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003408/0.1136, allocations: 0.5718 MB / 466.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.1137, allocations: 8.062 kB / 466.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.1137, allocations: 20.02 kB / 466.9 MB, free: 14.32 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.1139, allocations: 145.7 kB / 467.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.176e-05/0.114, allocations: 35.56 kB / 467.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008081/0.1148, allocations: 361.2 kB / 467.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.1148, allocations: 7.984 kB / 467.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1148, allocations: 0 / 467.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1148, allocations: 0 / 467.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.1159, allocations: 0.7309 MB / 468.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1159, allocations: 4.062 kB / 468.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.1162, allocations: 39.98 kB / 468.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005133/0.1167, allocations: 96.7 kB / 468.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.1167, allocations: 8 kB / 468.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003142/0.117, allocations: 0.5913 MB / 468.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.117, allocations: 4.031 kB / 468.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008177/0.1179, allocations: 0.507 MB / 469.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.1179, allocations: 104.7 kB / 469.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.118, allocations: 0 / 469.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.1182, allocations: 15.92 kB / 469.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.378e-05/0.1182, allocations: 15.98 kB / 469.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.1182, allocations: 11.94 kB / 469.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.1184, allocations: 215.1 kB / 469.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1184, allocations: 0 / 469.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1187, allocations: 71.84 kB / 469.9 MB, free: 11.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000127/0.1189, allocations: 111.3 kB / 470 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004499/0.1193, allocations: 214.6 kB / 470.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.1193, allocations: 0 / 470.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002325/0.1196, allocations: 127.7 kB / 470.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.12, allocations: 65.31 kB / 470.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.121, allocations: 0.8289 MB / 471.2 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.1213, allocations: 0.7754 MB / 472 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.255e-05/0.1214, allocations: 35.42 kB / 472 MB, free: 9.004 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1214, allocations: 0 / 472 MB, free: 9.004 MB / 350.1 MB Notification: Performance of Templates: time 0.005938/0.1274, allocations: 5.032 MB / 477 MB, free: 3.988 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)