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.001511/0.001511, allocations: 107.7 kB / 16.41 MB, free: 6.484 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.0017/0.0017, allocations: 187 kB / 17.34 MB, free: 5.734 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.347/1.347, allocations: 222.9 MB / 241 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.09151/0.09151, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.91 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1033, allocations: 54.95 MB / 492.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00355/0.1069, allocations: 2.571 MB / 495.2 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008824/0.1078, allocations: 362.6 kB / 495.6 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.108, allocations: 11.94 kB / 495.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.1082, allocations: 43.58 kB / 495.6 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000342/0.1085, allocations: 119 kB / 495.8 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002589/0.1088, allocations: 63.84 kB / 495.8 MB, free: 1.578 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003912/0.1092, allocations: 366.2 kB / 496.2 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003014/0.1095, allocations: 161.7 kB / 496.3 MB, free: 1.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002457/0.1098, allocations: 167.3 kB / 496.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.11, allocations: 127.4 kB / 496.6 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/0.11, allocations: 20 kB / 496.6 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.1102, allocations: 51.97 kB / 496.7 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.041e-05/0.1102, allocations: 47.78 kB / 496.7 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.1103, allocations: 143.3 kB / 496.9 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003286/0.1107, allocations: 302.9 kB / 497.2 MB, free: 220 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1107, allocations: 0 / 497.2 MB, free: 220 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1107, allocations: 0 / 497.2 MB, free: 220 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.1107, allocations: 4 kB / 497.2 MB, free: 216 kB / 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.0008399/0.1116, allocations: 0.5648 MB / 497.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1116, allocations: 15.95 kB / 497.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.857e-05/0.1117, allocations: 32.56 kB / 497.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.1121, allocations: 294.6 kB / 498.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.1121, allocations: 12.75 kB / 498.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.1121, allocations: 20.38 kB / 498.1 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003264/0.1125, allocations: 204.6 kB / 498.3 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1125, allocations: 4.172 kB / 498.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.1125, allocations: 11.94 kB / 498.3 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1125, allocations: 11.94 kB / 498.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002279/0.1128, allocations: 124.9 kB / 498.5 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009729/0.1138, allocations: 0.8416 MB / 499.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.114, allocations: 86.73 kB / 499.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.523e-05/0.1141, allocations: 44.84 kB / 499.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.1141, allocations: 7.938 kB / 499.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/0.1141, allocations: 30.56 kB / 499.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.655e-06/0.1142, allocations: 4 kB / 499.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003297/0.1145, allocations: 157.2 kB / 499.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.1145, allocations: 51.41 kB / 499.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.1148, allocations: 284.6 kB / 500 MB, free: 13.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.1148, allocations: 29.7 kB / 500 MB, free: 13.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.115, allocations: 171.6 kB / 0.4884 GB, free: 13.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.115, allocations: 39.45 kB / 0.4885 GB, free: 12.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.643e-05/0.1151, allocations: 33.7 kB / 0.4885 GB, free: 12.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1152, allocations: 338.8 kB / 0.4888 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.301e-05/0.1153, allocations: 35.98 kB / 0.4889 GB, free: 12.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.454e-05/0.1153, allocations: 60.59 kB / 0.4889 GB, free: 12.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.1165, allocations: 250.6 kB / 0.4892 GB, free: 12.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1165, allocations: 4 kB / 0.4892 GB, free: 12.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002652/0.1168, allocations: 169.2 kB / 0.4893 GB, free: 12.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1168, allocations: 4 kB / 0.4893 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1168, allocations: 0 / 0.4893 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1168, allocations: 7.938 kB / 0.4893 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/0.1171, allocations: 39.91 kB / 0.4894 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1171, allocations: 0 / 0.4894 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.1172, allocations: 19.84 kB / 0.4894 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.1172, allocations: 4 kB / 0.4894 GB, free: 11.98 MB / 382.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.0001575/0.1174, allocations: 137.9 kB / 0.4895 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.1174, allocations: 23.62 kB / 0.4895 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002923/0.1177, allocations: 167.4 kB / 0.4897 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1178, allocations: 3.938 kB / 0.4897 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1178, allocations: 3.938 kB / 0.4897 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1178, allocations: 0 / 0.4897 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002739/0.1181, allocations: 277.5 kB / 0.49 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.1181, allocations: 0 / 0.49 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.1183, allocations: 27.98 kB / 0.49 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.1183, allocations: 4 kB / 0.49 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.1183, allocations: 4 kB / 0.49 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1183, allocations: 7.938 kB / 0.49 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.1183, allocations: 0 / 0.49 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003312/0.1186, allocations: 273.5 kB / 0.4903 GB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.844e-05/0.1187, allocations: 108.8 kB / 0.4904 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.721e-05/0.1188, allocations: 0 / 0.4904 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.1189, allocations: 12.31 kB / 0.4904 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.869e-05/0.1189, allocations: 11.97 kB / 0.4904 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.119, allocations: 4.062 kB / 0.4904 GB, free: 10.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001803/0.1191, allocations: 215.1 kB / 0.4906 GB, free: 10.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1191, allocations: 3.938 kB / 0.4906 GB, free: 10.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.1194, allocations: 59.91 kB / 0.4907 GB, free: 10.57 MB / 382.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.0001222/0.1196, allocations: 99.19 kB / 0.4908 GB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002238/0.1198, allocations: 103.4 kB / 0.4909 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1198, allocations: 0 / 0.4909 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.463e-05/0.1199, allocations: 48.11 kB / 0.4909 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.1203, allocations: 60.55 kB / 0.491 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.1213, allocations: 0.6049 MB / 0.4916 GB, free: 9.621 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1216, allocations: 0.7519 MB / 0.4923 GB, free: 8.844 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.177e-05/0.1217, allocations: 27.42 kB / 0.4923 GB, free: 8.816 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1217, allocations: 0 / 0.4923 GB, free: 8.816 MB / 382.1 MB Notification: Performance of Templates: time 0.005316/0.127, allocations: 3.139 MB / 0.4954 GB, free: 5.688 MB / 382.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)