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.0997/0.0997, allocations: 21.46 MB / 36.42 MB, free: 1.168 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.000903/0.000903, allocations: 187.1 kB / 42.65 MB, free: 3.988 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.439/1.439, 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.0008313/0.0008315, allocations: 92.86 kB / 307.8 MB, free: 11.31 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 12.19 kB / 373.3 MB, free: 59.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1031, allocations: 52.96 MB / 426.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003112/0.1063, allocations: 2.944 MB / 429.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.1086, allocations: 1.006 MB / 430.2 MB, free: 9.316 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004536/0.1091, allocations: 4 kB / 430.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002777/0.1094, allocations: 75.39 kB / 430.3 MB, free: 9.238 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000555/0.1099, allocations: 246.6 kB / 430.5 MB, free: 8.996 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.1105, allocations: 119.9 kB / 430.6 MB, free: 8.879 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009991/0.1115, allocations: 1.287 MB / 431.9 MB, free: 7.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007211/0.1123, allocations: 0.6332 MB / 432.5 MB, free: 6.949 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003771/0.1126, allocations: 362.9 kB / 432.9 MB, free: 6.594 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005799/0.1132, allocations: 0.5219 MB / 433.4 MB, free: 6.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.1134, allocations: 56 kB / 433.5 MB, free: 6.016 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002245/0.1136, allocations: 83.97 kB / 433.5 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.1138, allocations: 323.1 kB / 433.9 MB, free: 5.617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.114, allocations: 185.3 kB / 434 MB, free: 5.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007941/0.1148, allocations: 1.149 MB / 435.2 MB, free: 4.277 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1148, allocations: 4 kB / 435.2 MB, free: 4.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1148, allocations: 0 / 435.2 MB, free: 4.273 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1148, allocations: 0 / 435.2 MB, free: 4.273 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.002341/0.1172, allocations: 1.142 MB / 436.3 MB, free: 3.082 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1172, allocations: 12.03 kB / 436.3 MB, free: 3.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.1174, allocations: 86.97 kB / 436.4 MB, free: 2.984 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006408/0.118, allocations: 0.5572 MB / 437 MB, free: 2.383 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.983e-05/0.1181, allocations: 79.7 kB / 437.1 MB, free: 2.301 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.1182, allocations: 79.91 kB / 437.1 MB, free: 2.223 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.1195, allocations: 0.9092 MB / 438.1 MB, free: 1.305 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.1195, allocations: 4 kB / 438.1 MB, free: 1.301 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.127e-05/0.1196, allocations: 28 kB / 438.1 MB, free: 1.273 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.1196, allocations: 16 kB / 438.1 MB, free: 1.258 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.1207, allocations: 0.8081 MB / 438.9 MB, free: 460 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005493/0.1262, allocations: 3.954 MB / 442.9 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002618/0.1288, allocations: 1.025 MB / 443.9 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005794/0.1294, allocations: 410.4 kB / 444.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001753/0.1296, allocations: 89.66 kB / 444.4 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.1296, allocations: 43.12 kB / 444.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=58): time 3.336e-06/0.1296, allocations: 0 / 444.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.003822/0.1335, allocations: 2.3 MB / 446.7 MB, free: 8.105 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.1335, allocations: 63.95 kB / 446.8 MB, free: 8.031 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005058/0.134, allocations: 405.7 kB / 447.2 MB, free: 7.629 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.422e-05/0.1341, allocations: 33.7 kB / 447.2 MB, free: 7.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.1344, allocations: 327.9 kB / 447.5 MB, free: 7.262 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.1346, allocations: 236.7 kB / 447.8 MB, free: 7.027 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.122e-05/0.1346, allocations: 8 kB / 447.8 MB, free: 7.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1348, allocations: 370.7 kB / 448.1 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006209/0.1354, allocations: 446.6 kB / 448.6 MB, free: 6.211 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006355/0.1361, allocations: 496.5 kB / 449.1 MB, free: 5.707 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007111/0.1368, allocations: 498.8 kB / 449.5 MB, free: 5.223 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1368, allocations: 0 / 449.5 MB, free: 5.223 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00211/0.1389, allocations: 1.286 MB / 450.8 MB, free: 3.898 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.1389, allocations: 8 kB / 450.8 MB, free: 3.891 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.139, allocations: 4.031 kB / 450.8 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009032/0.1399, allocations: 316.3 kB / 451.1 MB, free: 3.547 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/0.1421, allocations: 291.6 kB / 451.4 MB, free: 3.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009735/0.1518, allocations: 14.28 MB / 465.7 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007851/0.1527, allocations: 79.59 kB / 465.8 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/0.1529, allocations: 24 kB / 465.8 MB, free: 3.52 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.0006919/0.1536, allocations: 273.6 kB / 466.1 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001825/0.1538, allocations: 51.34 kB / 466.1 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/0.156, allocations: 1.127 MB / 467.3 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.156, allocations: 4 kB / 467.3 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/0.1561, allocations: 8 kB / 467.3 MB, free: 2.016 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.1561, allocations: 7.938 kB / 467.3 MB, free: 2.008 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003573/0.1597, allocations: 2.117 MB / 469.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.1597, allocations: 4 kB / 469.4 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002234/0.1619, allocations: 263.8 kB / 469.7 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.1632, allocations: 316.3 kB / 470 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/0.1633, allocations: 35.98 kB / 470 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01251/0.1758, allocations: 14.28 MB / 484.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1759, allocations: 0 / 484.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0042/0.1801, allocations: 1.576 MB / 485.9 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004713/0.1806, allocations: 140.3 kB / 486 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002749/0.1809, allocations: 35.98 kB / 486 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008433/0.1818, allocations: 43.86 kB / 486.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/0.1821, allocations: 48.5 kB / 486.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.202e-05/0.1822, allocations: 19.94 kB / 486.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005572/0.1827, allocations: 287.2 kB / 486.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1828, allocations: 0 / 486.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001547/0.1843, allocations: 291.4 kB / 486.7 MB, free: 13.02 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.0003562/0.1847, allocations: 157.1 kB / 486.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00536/0.1901, allocations: 2.153 MB / 489 MB, free: 10.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.1901, allocations: 0 / 489 MB, free: 10.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004052/0.1942, allocations: 1.67 MB / 490.7 MB, free: 8.781 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.1957, allocations: 173.3 kB / 490.8 MB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007421/0.2031, allocations: 3.588 MB / 494.4 MB, free: 4.984 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.2042, allocations: 1.02 MB / 495.5 MB, free: 3.938 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001015/0.2053, allocations: 164.5 kB / 495.6 MB, free: 3.777 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000297/0.2056, allocations: 39.44 kB / 495.7 MB, free: 3.738 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2056, allocations: 0 / 495.7 MB, free: 3.738 MB / 362.7 MB Notification: Performance of Templates: time 0.03001/0.2356, allocations: 11.93 MB / 0.4957 GB, free: 7.797 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)