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.001085/0.001085, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.001122/0.001122, allocations: 193.2 kB / 17.31 MB, free: 5.613 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.336/1.336, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09208/0.09208, allocations: 22.32 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 64.22 kB / 382.2 MB, free: 41.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.134, allocations: 54.96 MB / 437.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00497/0.139, allocations: 2.569 MB / 439.8 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009409/0.1399, allocations: 354.7 kB / 440.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.1401, allocations: 15.94 kB / 440.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.1403, allocations: 39.56 kB / 440.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003736/0.1406, allocations: 115 kB / 440.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.1409, allocations: 67.84 kB / 440.4 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004531/0.1414, allocations: 370.2 kB / 440.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003697/0.1418, allocations: 169.7 kB / 440.9 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002387/0.1421, allocations: 131.5 kB / 441 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.1423, allocations: 127.4 kB / 441.1 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.455e-05/0.1424, allocations: 20 kB / 441.2 MB, free: 8.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.1425, allocations: 47.97 kB / 441.2 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.708e-05/0.1426, allocations: 59.77 kB / 441.3 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.1428, allocations: 139.3 kB / 441.4 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004236/0.1432, allocations: 302.9 kB / 441.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1433, allocations: 0 / 441.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1433, allocations: 0 / 441.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1433, allocations: 3.938 kB / 441.7 MB, free: 7.773 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.001051/0.1444, allocations: 0.5648 MB / 442.3 MB, free: 7.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1444, allocations: 15.97 kB / 442.3 MB, free: 7.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.805e-05/0.1445, allocations: 36.5 kB / 442.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.145, allocations: 298.6 kB / 442.6 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.145, allocations: 12.75 kB / 442.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.591e-05/0.1451, allocations: 20.38 kB / 442.6 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000464/0.1456, allocations: 208.6 kB / 442.8 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1456, allocations: 192 / 442.8 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.1457, allocations: 11.94 kB / 442.9 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.1457, allocations: 7.938 kB / 442.9 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003655/0.1461, allocations: 124.9 kB / 443 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.1475, allocations: 0.83 MB / 443.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.1478, allocations: 86.73 kB / 443.9 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1479, allocations: 48.84 kB / 443.9 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.148, allocations: 7.938 kB / 444 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.148, allocations: 30.56 kB / 444 MB, free: 5.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.714e-06/0.148, allocations: 0 / 444 MB, free: 5.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004707/0.1485, allocations: 149.2 kB / 444.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.1486, allocations: 55.41 kB / 444.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.149, allocations: 288.5 kB / 444.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.149, allocations: 29.7 kB / 444.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.1492, allocations: 171.7 kB / 444.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.342e-05/0.1492, allocations: 43.39 kB / 444.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.315e-05/0.1493, allocations: 33.7 kB / 444.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1495, allocations: 338.8 kB / 445.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.1496, allocations: 35.98 kB / 445.1 MB, free: 4.113 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.1498, allocations: 58.56 kB / 445.2 MB, free: 4.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.1515, allocations: 262.5 kB / 445.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1515, allocations: 0 / 445.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004231/0.152, allocations: 167.9 kB / 445.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.152, allocations: 4.375 kB / 445.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.152, allocations: 0 / 445.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.1521, allocations: 11.88 kB / 445.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003213/0.1524, allocations: 43.97 kB / 445.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.1524, allocations: 3.938 kB / 445.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.1526, allocations: 15.84 kB / 445.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.1526, allocations: 4 kB / 445.7 MB, free: 3.531 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.0002069/0.1529, allocations: 144.5 kB / 445.8 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-05/0.1529, allocations: 27.72 kB / 445.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004214/0.1534, allocations: 155.5 kB / 446 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1534, allocations: 7.938 kB / 446 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1534, allocations: 0 / 446 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1534, allocations: 0 / 446 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004283/0.1539, allocations: 285.4 kB / 446.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1539, allocations: 0 / 446.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000277/0.1542, allocations: 31.98 kB / 446.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.1542, allocations: 0 / 446.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.1542, allocations: 4 kB / 446.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.1542, allocations: 3.938 kB / 446.3 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.1542, allocations: 0 / 446.3 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004814/0.1547, allocations: 267.2 kB / 446.6 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.1548, allocations: 116.8 kB / 446.7 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.695e-05/0.1549, allocations: 3.984 kB / 446.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.1551, allocations: 7.938 kB / 446.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.567e-05/0.1552, allocations: 7.984 kB / 446.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.1552, allocations: 4 kB / 446.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002892/0.1555, allocations: 211.1 kB / 446.9 MB, free: 2.184 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1555, allocations: 0 / 446.9 MB, free: 2.184 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005062/0.1561, allocations: 55.98 kB / 447 MB, free: 2.129 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.0001706/0.1562, allocations: 107.2 kB / 447.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003307/0.1566, allocations: 95.91 kB / 447.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1566, allocations: 0 / 447.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.1567, allocations: 50.98 kB / 447.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/0.1574, allocations: 56.75 kB / 447.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.1589, allocations: 0.584 MB / 447.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.1593, allocations: 0.7518 MB / 448.6 MB, free: 444 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.1595, allocations: 38.95 kB / 448.6 MB, free: 404 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.305e-05/0.1596, allocations: 23.44 kB / 448.7 MB, free: 384 kB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1596, allocations: 0 / 448.7 MB, free: 384 kB / 318.1 MB Notification: Performance of Templates: time 0.009146/0.1687, allocations: 2.781 MB / 451.4 MB, free: 13.63 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 cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)