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.007751/0.007751, allocations: 96.16 kB / 15.73 MB, free: 6.043 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.001647/0.001647, allocations: 195.2 kB / 16.67 MB, free: 5.969 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2139/0.2139, allocations: 22.35 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 60.06 kB / 437.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1027, allocations: 54.96 MB / 492 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003192/0.106, allocations: 2.579 MB / 494.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000738/0.1067, allocations: 354.7 kB / 495 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1069, allocations: 11.94 kB / 495 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 8.383e-05/0.107, allocations: 35.64 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.1073, allocations: 123 kB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.1075, allocations: 71.84 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.1078, allocations: 366.2 kB / 495.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.1081, allocations: 173.5 kB / 495.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.1083, allocations: 135.5 kB / 495.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.1085, allocations: 127.4 kB / 496 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.1085, allocations: 20 kB / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.1087, allocations: 51.95 kB / 496 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.77e-05/0.1087, allocations: 43.84 kB / 496.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1089, allocations: 143.2 kB / 496.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003413/0.1092, allocations: 314.5 kB / 496.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.1092, allocations: 8 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1093, allocations: 0 / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1093, allocations: 0 / 496.5 MB, free: 12.66 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.0008559/0.1101, allocations: 0.5685 MB / 497.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1102, allocations: 12.03 kB / 497.1 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.1102, allocations: 28.75 kB / 497.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003867/0.1106, allocations: 298.8 kB / 497.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.1107, allocations: 16.75 kB / 497.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.378e-05/0.1107, allocations: 16.38 kB / 497.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000356/0.1111, allocations: 208.5 kB / 497.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1111, allocations: 4.188 kB / 497.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.1111, allocations: 15.94 kB / 497.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.1111, allocations: 4 kB / 497.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.1114, allocations: 128.8 kB / 497.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.1125, allocations: 0.8187 MB / 498.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.1128, allocations: 98.67 kB / 498.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.798e-05/0.1129, allocations: 40.84 kB / 498.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.113, allocations: 0 / 498.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.113, allocations: 42.56 kB / 498.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 8.61e-07/0.113, allocations: 0 / 498.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003771/0.1134, allocations: 149.3 kB / 499 MB, free: 10.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.1134, allocations: 55.41 kB / 499 MB, free: 9.973 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.1137, allocations: 288.6 kB / 499.3 MB, free: 9.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.1138, allocations: 25.7 kB / 499.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1139, allocations: 179.7 kB / 499.5 MB, free: 9.469 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.1139, allocations: 43.61 kB / 499.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.114, allocations: 37.72 kB / 499.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1141, allocations: 334.8 kB / 499.9 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.492e-05/0.1142, allocations: 39.98 kB / 499.9 MB, free: 9.008 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.837e-05/0.1143, allocations: 54.88 kB / 0.4883 GB, free: 8.945 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/0.1155, allocations: 264.9 kB / 0.4885 GB, free: 8.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1155, allocations: 0 / 0.4885 GB, free: 8.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002746/0.1158, allocations: 167.8 kB / 0.4887 GB, free: 8.512 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1158, allocations: 15.88 kB / 0.4887 GB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.1159, allocations: 0 / 0.4887 GB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.1159, allocations: 3.938 kB / 0.4887 GB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.1161, allocations: 43.97 kB / 0.4888 GB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1161, allocations: 0 / 0.4888 GB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.1162, allocations: 15.95 kB / 0.4888 GB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.1163, allocations: 4 kB / 0.4888 GB, free: 8.43 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.0002013/0.1165, allocations: 140.7 kB / 0.4889 GB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.655e-05/0.1165, allocations: 31.8 kB / 0.4889 GB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003161/0.1168, allocations: 147.5 kB / 0.4891 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1169, allocations: 11.92 kB / 0.4891 GB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.1169, allocations: 7.984 kB / 0.4891 GB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.1169, allocations: 0 / 0.4891 GB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002891/0.1172, allocations: 273.5 kB / 0.4894 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1172, allocations: 0 / 0.4894 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001821/0.1174, allocations: 35.92 kB / 0.4894 GB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1174, allocations: 3.984 kB / 0.4894 GB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1174, allocations: 8 kB / 0.4894 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.1174, allocations: 3.938 kB / 0.4894 GB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1174, allocations: 0 / 0.4894 GB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.1178, allocations: 271.3 kB / 0.4897 GB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.855e-05/0.1178, allocations: 104.9 kB / 0.4898 GB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.1179, allocations: 7.953 kB / 0.4898 GB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.118, allocations: 8 kB / 0.4898 GB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.285e-05/0.1181, allocations: 11.98 kB / 0.4898 GB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.1181, allocations: 4 kB / 0.4898 GB, free: 7.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001792/0.1183, allocations: 215 kB / 0.49 GB, free: 7.074 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1183, allocations: 0 / 0.49 GB, free: 7.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.1185, allocations: 51.94 kB / 0.4901 GB, free: 7.023 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.0001471/0.1187, allocations: 111.2 kB / 0.4902 GB, free: 6.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002253/0.1189, allocations: 93.66 kB / 0.4902 GB, free: 6.812 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1189, allocations: 4 kB / 0.4903 GB, free: 6.809 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.567e-05/0.119, allocations: 51.92 kB / 0.4903 GB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003677/0.1194, allocations: 56.55 kB / 0.4904 GB, free: 6.703 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.1204, allocations: 0.5911 MB / 0.4909 GB, free: 6.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.1208, allocations: 0.7518 MB / 0.4917 GB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.1209, allocations: 42.95 kB / 0.4917 GB, free: 5.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.846e-05/0.1209, allocations: 19.44 kB / 0.4917 GB, free: 5.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1209, allocations: 4 kB / 0.4917 GB, free: 5.246 MB / 366.1 MB Notification: Performance of Templates: time 0.005968/0.1269, allocations: 2.793 MB / 0.4945 GB, free: 2.492 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)