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.001452/0.001452, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001565/0.001565, allocations: 191 kB / 17.29 MB, free: 5.516 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.346/1.346, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09265/0.09265, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 62.27 kB / 382.2 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09614, allocations: 54.97 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003837/0.1, allocations: 2.565 MB / 439.8 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009204/0.101, allocations: 354.7 kB / 440.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002576/0.1012, allocations: 15.94 kB / 440.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001222/0.1014, allocations: 39.56 kB / 440.2 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004005/0.1018, allocations: 119 kB / 440.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.1021, allocations: 79.77 kB / 440.4 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005183/0.1027, allocations: 362.2 kB / 440.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000364/0.103, allocations: 161.7 kB / 440.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.1033, allocations: 139.4 kB / 441 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.1035, allocations: 131.3 kB / 441.1 MB, free: 8.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.164e-05/0.1036, allocations: 20 kB / 441.2 MB, free: 8.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.1037, allocations: 47.97 kB / 441.2 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.587e-05/0.1038, allocations: 47.78 kB / 441.2 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.104, allocations: 143.3 kB / 441.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003731/0.1044, allocations: 310.8 kB / 441.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1044, allocations: 4 kB / 441.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1044, allocations: 0 / 441.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1044, allocations: 0 / 441.7 MB, free: 7.746 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.0008706/0.1053, allocations: 0.5647 MB / 442.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1053, allocations: 16.02 kB / 442.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.425e-05/0.1054, allocations: 36.56 kB / 442.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.1058, allocations: 286.6 kB / 442.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.1058, allocations: 16.75 kB / 442.6 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.623e-05/0.1058, allocations: 16.38 kB / 442.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.1061, allocations: 204.6 kB / 442.8 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1062, allocations: 192 / 442.8 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.364e-05/0.1062, allocations: 19.88 kB / 442.8 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1062, allocations: 4 kB / 442.8 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.1064, allocations: 120.9 kB / 443 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.1075, allocations: 0.8339 MB / 443.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.1078, allocations: 90.73 kB / 443.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.789e-05/0.1079, allocations: 44.84 kB / 443.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.1079, allocations: 7.938 kB / 443.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.108, allocations: 38.56 kB / 444 MB, free: 5.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.108, allocations: 0 / 444 MB, free: 5.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.000354/0.1083, allocations: 145.5 kB / 444.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.1084, allocations: 55.41 kB / 444.2 MB, free: 5.059 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.1087, allocations: 292.5 kB / 444.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.1087, allocations: 25.8 kB / 444.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.1089, allocations: 179.6 kB / 444.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.77e-05/0.1089, allocations: 39.39 kB / 444.7 MB, free: 4.504 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/0.109, allocations: 37.7 kB / 444.7 MB, free: 4.461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1091, allocations: 338.8 kB / 445.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.945e-05/0.1092, allocations: 35.98 kB / 445.1 MB, free: 4.086 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.948e-05/0.1092, allocations: 58.56 kB / 445.2 MB, free: 4.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.1104, allocations: 258.5 kB / 445.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1104, allocations: 0 / 445.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002821/0.1107, allocations: 166.5 kB / 445.6 MB, free: 3.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.1107, allocations: 4 kB / 445.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1107, allocations: 0 / 445.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.1108, allocations: 7.938 kB / 445.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.111, allocations: 39.91 kB / 445.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.111, allocations: 4.062 kB / 445.6 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.1111, allocations: 15.84 kB / 445.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.1111, allocations: 8 kB / 445.7 MB, free: 3.512 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.0001588/0.1113, allocations: 133.7 kB / 445.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.1114, allocations: 23.72 kB / 445.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003237/0.1117, allocations: 167.1 kB / 446 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1117, allocations: 7.938 kB / 446 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1117, allocations: 0 / 446 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1117, allocations: 0 / 446 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002832/0.112, allocations: 289.3 kB / 446.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.112, allocations: 4 kB / 446.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.1122, allocations: 27.98 kB / 446.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1122, allocations: 0 / 446.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1122, allocations: 4 kB / 446.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.1122, allocations: 3.938 kB / 446.3 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1123, allocations: 3.938 kB / 446.3 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003413/0.1126, allocations: 267.2 kB / 446.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.508e-05/0.1127, allocations: 108.7 kB / 446.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.075e-05/0.1127, allocations: 8.062 kB / 446.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.1129, allocations: 7.938 kB / 446.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.175e-05/0.1129, allocations: 7.984 kB / 446.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1129, allocations: 8 kB / 446.7 MB, free: 2.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001888/0.1131, allocations: 211.1 kB / 446.9 MB, free: 2.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1131, allocations: 0 / 446.9 MB, free: 2.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.1134, allocations: 48 kB / 447 MB, free: 2.113 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.000124/0.1135, allocations: 103.2 kB / 447.1 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002131/0.1138, allocations: 103.9 kB / 447.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.1138, allocations: 3.938 kB / 447.2 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.777e-05/0.1139, allocations: 47.98 kB / 447.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.1142, allocations: 56.73 kB / 447.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009312/0.1152, allocations: 0.5762 MB / 447.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1155, allocations: 0.7519 MB / 448.6 MB, free: 428 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.1156, allocations: 38.95 kB / 448.6 MB, free: 388 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.233e-05/0.1157, allocations: 31.42 kB / 448.7 MB, free: 360 kB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1157, allocations: 0 / 448.7 MB, free: 360 kB / 318.1 MB Notification: Performance of Templates: time 0.006291/0.122, allocations: 2.773 MB / 451.4 MB, free: 13.61 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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)