Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1094/0.1094, allocations: 21.44 MB / 36.39 MB, free: 1.246 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001156/0.001156, allocations: 178.4 kB / 42.62 MB, free: 3.969 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.4 MB / 254.1 MB, free: 15.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008792/0.0008795, allocations: 93.5 kB / 307.8 MB, free: 11.33 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004572/0.0004572, allocations: 8.969 kB / 373.2 MB, free: 59.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1263, allocations: 52.96 MB / 426.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003941/0.1304, allocations: 2.737 MB / 428.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.1322, allocations: 1.037 MB / 430 MB, free: 9.523 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002194/0.1324, allocations: 7.938 kB / 430 MB, free: 9.516 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.1327, allocations: 75.52 kB / 430 MB, free: 9.441 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.1331, allocations: 183.4 kB / 430.2 MB, free: 9.262 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.1336, allocations: 119.7 kB / 430.3 MB, free: 9.145 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006911/0.1343, allocations: 0.6525 MB / 431 MB, free: 8.492 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008372/0.1352, allocations: 0.6371 MB / 431.6 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004052/0.1356, allocations: 331.1 kB / 431.9 MB, free: 7.523 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005782/0.1362, allocations: 386.8 kB / 432.3 MB, free: 7.145 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.1363, allocations: 56 kB / 432.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.1366, allocations: 83.95 kB / 432.5 MB, free: 7.008 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002464/0.1368, allocations: 279.3 kB / 432.7 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.137, allocations: 193.3 kB / 432.9 MB, free: 6.539 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.1382, allocations: 1.145 MB / 434.1 MB, free: 5.391 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1382, allocations: 0 / 434.1 MB, free: 5.391 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1382, allocations: 0 / 434.1 MB, free: 5.391 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.1382, allocations: 0 / 434.1 MB, free: 5.391 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.003066/0.1413, allocations: 1.146 MB / 435.2 MB, free: 4.195 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1413, allocations: 8.031 kB / 435.2 MB, free: 4.188 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.1416, allocations: 86.97 kB / 435.3 MB, free: 4.102 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008949/0.1425, allocations: 0.5494 MB / 435.9 MB, free: 3.508 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.075e-05/0.1425, allocations: 83.7 kB / 435.9 MB, free: 3.422 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.1427, allocations: 83.89 kB / 436 MB, free: 3.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.1439, allocations: 0.9091 MB / 436.9 MB, free: 2.422 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.1439, allocations: 0 / 436.9 MB, free: 2.422 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.144, allocations: 28 kB / 437 MB, free: 2.395 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.144, allocations: 16 kB / 437 MB, free: 2.379 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.145, allocations: 0.7965 MB / 437.8 MB, free: 1.582 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00548/0.1505, allocations: 3.974 MB / 441.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002754/0.1533, allocations: 1.021 MB / 442.8 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002112/0.1536, allocations: 97.66 kB / 442.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.1536, allocations: 39.06 kB / 442.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=58): time 3.476e-06/0.1536, allocations: 0 / 442.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.004018/0.1577, allocations: 2.305 MB / 445.2 MB, free: 9.617 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.1577, allocations: 59.97 kB / 445.3 MB, free: 9.547 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005333/0.1583, allocations: 401.7 kB / 445.7 MB, free: 9.148 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.033e-05/0.1584, allocations: 37.7 kB / 445.7 MB, free: 9.105 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.1586, allocations: 327.9 kB / 446 MB, free: 8.777 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.1588, allocations: 228.7 kB / 446.2 MB, free: 8.551 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.1589, allocations: 16 kB / 446.2 MB, free: 8.535 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.159, allocations: 370.7 kB / 446.6 MB, free: 8.164 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006339/0.1597, allocations: 446.6 kB / 447 MB, free: 7.727 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006429/0.1603, allocations: 496.4 kB / 447.5 MB, free: 7.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006843/0.161, allocations: 494.8 kB / 448 MB, free: 6.742 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.161, allocations: 4 kB / 448 MB, free: 6.738 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002139/0.1632, allocations: 1.286 MB / 449.3 MB, free: 5.414 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.1632, allocations: 8 kB / 449.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1632, allocations: 0 / 449.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008922/0.1641, allocations: 320.4 kB / 449.6 MB, free: 5.062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001982/0.1661, allocations: 287.6 kB / 449.9 MB, free: 4.781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.1761, allocations: 14.38 MB / 464.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007665/0.1769, allocations: 79.36 kB / 464.4 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.653e-05/0.177, allocations: 27.94 kB / 464.4 MB, free: 4.934 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005101/0.1775, allocations: 281.9 kB / 464.7 MB, free: 4.648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.1776, allocations: 55.34 kB / 464.7 MB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002081/0.1797, allocations: 1.119 MB / 465.8 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1797, allocations: 8 kB / 465.8 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.1798, allocations: 4 kB / 465.9 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.1798, allocations: 3.984 kB / 465.9 MB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003355/0.1831, allocations: 2.109 MB / 468 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.1832, allocations: 3.984 kB / 468 MB, free: 1.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002081/0.1853, allocations: 267.8 kB / 468.2 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008456/0.1861, allocations: 316.3 kB / 468.5 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.826e-05/0.1862, allocations: 31.98 kB / 468.6 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.1965, allocations: 14.39 MB / 483 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1965, allocations: 0 / 483 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002746/0.1993, allocations: 1.616 MB / 484.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.1995, allocations: 136.4 kB / 484.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.1996, allocations: 35.94 kB / 484.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/0.2001, allocations: 39.88 kB / 484.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.2002, allocations: 56.42 kB / 484.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.573e-05/0.2003, allocations: 16 kB / 484.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003297/0.2006, allocations: 283.2 kB / 485.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2006, allocations: 0 / 485.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009376/0.2016, allocations: 295.4 kB / 485.4 MB, free: 14.28 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3]) * 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 (48): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002286/0.2018, allocations: 149.1 kB / 485.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003614/0.2054, allocations: 2.153 MB / 487.7 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2055, allocations: 0 / 487.7 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003448/0.2089, allocations: 1.674 MB / 489.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006408/0.2096, allocations: 169.3 kB / 489.6 MB, free: 9.875 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005214/0.2148, allocations: 3.588 MB / 493.1 MB, free: 6.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006056/0.2154, allocations: 1.032 MB / 494.2 MB, free: 5.191 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004791/0.2159, allocations: 164.5 kB / 494.3 MB, free: 5.031 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.2161, allocations: 39.44 kB / 494.4 MB, free: 4.992 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2161, allocations: 4 kB / 494.4 MB, free: 4.988 MB / 362.7 MB Notification: Performance of Templates: time 0.01864/0.2347, allocations: 11.91 MB / 0.4944 GB, free: 9.074 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)