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.00128/0.00128, allocations: 104.3 kB / 16.27 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.001259/0.001259, allocations: 183.9 kB / 17.19 MB, free: 5.688 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.32/1.32, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09326/0.09326, allocations: 22.32 MB / 313.4 MB, free: 8.988 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.12 kB / 381.5 MB, free: 41.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09071/0.09214, allocations: 54.96 MB / 436.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00381/0.096, allocations: 2.568 MB / 439 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009746/0.09701, allocations: 358.7 kB / 439.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002954/0.09732, allocations: 11.94 kB / 439.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.09745, allocations: 43.58 kB / 439.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003729/0.09787, allocations: 119 kB / 439.5 MB, free: 9.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.09818, allocations: 71.84 kB / 439.6 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003271/0.09852, allocations: 358.3 kB / 439.9 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.09881, allocations: 169.7 kB / 440.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.099, allocations: 139.4 kB / 440.2 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.09918, allocations: 123.4 kB / 440.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.665e-05/0.09923, allocations: 20 kB / 440.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.09935, allocations: 47.97 kB / 440.4 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.06e-05/0.09941, allocations: 59.77 kB / 440.5 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.09955, allocations: 143.2 kB / 440.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003167/0.09988, allocations: 299.1 kB / 440.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.09989, allocations: 0 / 440.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.0999, allocations: 0 / 440.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.09991, allocations: 0 / 440.9 MB, free: 8.555 MB / 318.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.0008196/0.1007, allocations: 0.5726 MB / 441.5 MB, free: 7.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.1008, allocations: 8.031 kB / 441.5 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.745e-05/0.1009, allocations: 32.56 kB / 441.5 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003333/0.1012, allocations: 286.6 kB / 441.8 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.1012, allocations: 12.75 kB / 441.8 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.1013, allocations: 20.38 kB / 441.8 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003485/0.1016, allocations: 208.6 kB / 442 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1016, allocations: 8.188 kB / 442 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.1017, allocations: 7.938 kB / 442 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1017, allocations: 4 kB / 442.1 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.1019, allocations: 128.8 kB / 442.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.103, allocations: 0.8339 MB / 443 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.1033, allocations: 94.72 kB / 443.1 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.98e-05/0.1034, allocations: 48.84 kB / 443.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1034, allocations: 0 / 443.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.1034, allocations: 38.5 kB / 443.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.1034, allocations: 0 / 443.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003408/0.1038, allocations: 149.2 kB / 443.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.1038, allocations: 51.41 kB / 443.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002781/0.1041, allocations: 292.5 kB / 443.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.1041, allocations: 25.7 kB / 443.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.1043, allocations: 175.7 kB / 443.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.1043, allocations: 43.38 kB / 443.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.505e-05/0.1044, allocations: 29.72 kB / 443.9 MB, free: 5.277 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1045, allocations: 342.8 kB / 444.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.853e-05/0.1046, allocations: 35.98 kB / 444.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.519e-05/0.1047, allocations: 58.94 kB / 444.4 MB, free: 4.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.1059, allocations: 258.2 kB / 444.6 MB, free: 4.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1059, allocations: 0 / 444.6 MB, free: 4.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000274/0.1062, allocations: 168.2 kB / 444.8 MB, free: 4.402 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.1062, allocations: 11.94 kB / 444.8 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1062, allocations: 0 / 444.8 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.1062, allocations: 8 kB / 444.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.1065, allocations: 43.91 kB / 444.8 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1065, allocations: 0 / 444.8 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.1066, allocations: 11.84 kB / 444.9 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.1066, allocations: 8 kB / 444.9 MB, free: 4.32 MB / 318.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.0002359/0.1069, allocations: 137.8 kB / 445 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.572e-05/0.1069, allocations: 27.7 kB / 445 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003145/0.1073, allocations: 155.4 kB / 445.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.1073, allocations: 11.91 kB / 445.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1073, allocations: 8 kB / 445.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1073, allocations: 0 / 445.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002923/0.1076, allocations: 273.4 kB / 445.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1076, allocations: 0 / 445.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.1078, allocations: 27.98 kB / 445.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1078, allocations: 3.984 kB / 445.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.1078, allocations: 4 kB / 445.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.1079, allocations: 11.94 kB / 445.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1079, allocations: 0 / 445.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000345/0.1082, allocations: 275.2 kB / 445.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.269e-05/0.1083, allocations: 108.7 kB / 445.9 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.041e-05/0.1083, allocations: 4 kB / 445.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.1085, allocations: 7.938 kB / 445.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.1085, allocations: 7.984 kB / 445.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.1086, allocations: 4 kB / 445.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001919/0.1087, allocations: 207.1 kB / 446.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1088, allocations: 0 / 446.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003169/0.1091, allocations: 48.06 kB / 446.2 MB, free: 2.926 MB / 318.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.0001324/0.1092, allocations: 118 kB / 446.3 MB, free: 2.801 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002577/0.1095, allocations: 103.8 kB / 446.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1095, allocations: 0 / 446.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.286e-05/0.1096, allocations: 43.98 kB / 446.4 MB, free: 2.656 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.11, allocations: 64.67 kB / 446.5 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.1111, allocations: 0.617 MB / 447.1 MB, free: 1.949 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.1114, allocations: 0.748 MB / 447.8 MB, free: 1.176 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.393e-05/0.1115, allocations: 23.44 kB / 447.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1115, allocations: 0 / 447.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of Templates: time 0.005237/0.1167, allocations: 3.08 MB / 450.9 MB, free: 14.08 MB / 334.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)