Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005237/0.005241, allocations: 101.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.001138/0.001138, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2186/0.2186, allocations: 22.37 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 63.7 kB / 437.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1003, allocations: 54.96 MB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003408/0.1038, allocations: 2.579 MB / 494.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009199/0.1047, allocations: 358.7 kB / 495 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002521/0.105, allocations: 11.94 kB / 495 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.1051, allocations: 43.58 kB / 495 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003597/0.1055, allocations: 119 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.1058, allocations: 63.84 kB / 495.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004553/0.1063, allocations: 362.2 kB / 495.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003935/0.1067, allocations: 165.7 kB / 495.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002919/0.107, allocations: 159.4 kB / 495.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1072, allocations: 135.3 kB / 496 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.368e-05/0.1073, allocations: 20 kB / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.1074, allocations: 51.97 kB / 496.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.534e-05/0.1075, allocations: 43.84 kB / 496.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.1076, allocations: 143.3 kB / 496.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003986/0.1081, allocations: 306.8 kB / 496.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1081, allocations: 0 / 496.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1081, allocations: 0 / 496.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.1081, allocations: 0 / 496.6 MB, free: 12.68 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009312/0.109, allocations: 0.5648 MB / 497.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1091, allocations: 8.031 kB / 497.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.95e-05/0.1092, allocations: 40.56 kB / 497.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.1096, allocations: 294.5 kB / 497.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.1097, allocations: 16.75 kB / 497.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.1097, allocations: 16.38 kB / 497.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/0.1101, allocations: 208.6 kB / 497.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1101, allocations: 192 / 497.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.402e-05/0.1101, allocations: 19.88 kB / 497.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1102, allocations: 4 kB / 497.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.1104, allocations: 124.8 kB / 497.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.1116, allocations: 0.8262 MB / 498.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002468/0.1118, allocations: 86.73 kB / 498.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.889e-05/0.1119, allocations: 48.84 kB / 498.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.112, allocations: 4 kB / 498.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.112, allocations: 38.5 kB / 498.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.112, allocations: 0 / 498.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003598/0.1124, allocations: 157.2 kB / 499 MB, free: 10.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.1124, allocations: 51.41 kB / 499 MB, free: 9.984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.1127, allocations: 288.6 kB / 499.3 MB, free: 9.691 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.1127, allocations: 29.64 kB / 499.4 MB, free: 9.656 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.1128, allocations: 175.6 kB / 499.5 MB, free: 9.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.1129, allocations: 43.45 kB / 499.6 MB, free: 9.438 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/0.1129, allocations: 33.7 kB / 499.6 MB, free: 9.398 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1131, allocations: 334.8 kB / 499.9 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.734e-05/0.1132, allocations: 35.98 kB / 500 MB, free: 9.027 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.312e-05/0.1133, allocations: 62.55 kB / 0.4883 GB, free: 8.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001185/0.1145, allocations: 264.6 kB / 0.4886 GB, free: 8.691 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1145, allocations: 0 / 0.4886 GB, free: 8.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002835/0.1148, allocations: 165.2 kB / 0.4887 GB, free: 8.523 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1148, allocations: 4 kB / 0.4887 GB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1148, allocations: 0 / 0.4887 GB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.1148, allocations: 7.938 kB / 0.4887 GB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.115, allocations: 39.91 kB / 0.4888 GB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.1151, allocations: 8.047 kB / 0.4888 GB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.1152, allocations: 23.78 kB / 0.4888 GB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.1152, allocations: 4 kB / 0.4888 GB, free: 8.438 MB / 366.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: 3 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.1154, allocations: 131 kB / 0.4889 GB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.312e-05/0.1155, allocations: 23.7 kB / 0.4889 GB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002968/0.1158, allocations: 165.3 kB / 0.4891 GB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.1158, allocations: 7.922 kB / 0.4891 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1158, allocations: 3.938 kB / 0.4891 GB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1158, allocations: 0 / 0.4891 GB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000308/0.1161, allocations: 277.5 kB / 0.4894 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1161, allocations: 4 kB / 0.4894 GB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.1163, allocations: 31.97 kB / 0.4894 GB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1163, allocations: 4 kB / 0.4894 GB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.1164, allocations: 0 / 0.4894 GB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.1164, allocations: 3.938 kB / 0.4894 GB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1164, allocations: 0 / 0.4894 GB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.1167, allocations: 271.1 kB / 0.4897 GB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.806e-05/0.1168, allocations: 104.8 kB / 0.4898 GB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.1169, allocations: 4.062 kB / 0.4898 GB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.117, allocations: 15.94 kB / 0.4898 GB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.117, allocations: 11.92 kB / 0.4898 GB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.1171, allocations: 0 / 0.4898 GB, free: 7.301 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002133/0.1173, allocations: 211.1 kB / 0.49 GB, free: 7.098 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1173, allocations: 0 / 0.49 GB, free: 7.098 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000311/0.1176, allocations: 59.84 kB / 0.4901 GB, free: 7.039 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000193/0.1178, allocations: 107.2 kB / 0.4902 GB, free: 6.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002573/0.1181, allocations: 103.4 kB / 0.4903 GB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.1181, allocations: 0 / 0.4903 GB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.267e-05/0.1182, allocations: 47.92 kB / 0.4903 GB, free: 6.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000406/0.1186, allocations: 52.75 kB / 0.4904 GB, free: 6.727 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.1198, allocations: 0.5762 MB / 0.4909 GB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1202, allocations: 0.7596 MB / 0.4917 GB, free: 5.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.1204, allocations: 38.95 kB / 0.4917 GB, free: 5.305 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.168e-05/0.1204, allocations: 23.44 kB / 0.4917 GB, free: 5.281 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1204, allocations: 0 / 0.4917 GB, free: 5.281 MB / 366.1 MB Notification: Performance of Templates: time 0.007508/0.1279, allocations: 2.876 MB / 0.4945 GB, free: 2.445 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)