Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003") [/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.1086/0.1086, allocations: 21.45 MB / 36.4 MB, free: 1.156 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.001051/0.001051, allocations: 184.3 kB / 42.62 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.594/1.594, allocations: 205.4 MB / 254.1 MB, free: 15.23 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.0009351/0.0009349, allocations: 96.8 kB / 307.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004426/0.0004426, allocations: 9.188 kB / 373.2 MB, free: 59.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1559, allocations: 52.96 MB / 426.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4614/0.6174, allocations: 83.26 MB / 0.4975 GB, free: 17.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003738/0.6178, allocations: 76.48 kB / 0.4976 GB, free: 17.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05715/0.675, allocations: 20.53 MB / 0.5176 GB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.6751, allocations: 1.562 kB / 0.5176 GB, free: 15.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.18e-05/0.6752, allocations: 35.06 kB / 0.5177 GB, free: 15.94 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003501/0.6787, allocations: 1.69 MB / 0.5193 GB, free: 15.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.6787, allocations: 11.69 kB / 0.5193 GB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002919/0.679, allocations: 151.9 kB / 0.5195 GB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.6808, allocations: 0.9443 MB / 0.5204 GB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.876e-05/0.6809, allocations: 116.4 kB / 0.5205 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002245/0.6811, allocations: 143.6 kB / 0.5206 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002734/0.6838, allocations: 1.755 MB / 0.5223 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.824e-05/0.6839, allocations: 3.969 kB / 0.5223 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/0.684, allocations: 46.75 kB / 0.5224 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/0.6841, allocations: 30.53 kB / 0.5224 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002229/0.6863, allocations: 1.417 MB / 0.5238 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01095/0.6973, allocations: 7.19 MB / 0.5308 GB, free: 10.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004638/0.7019, allocations: 1.869 MB / 0.5327 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002261/0.7022, allocations: 101.6 kB / 0.5328 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.7023, allocations: 43.56 kB / 0.5328 GB, free: 10.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 4.589e-06/0.7023, allocations: 0 / 0.5328 GB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=102): time 0.006906/0.7092, allocations: 3.826 MB / 0.5365 GB, free: 24.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.7093, allocations: 60.19 kB / 0.5366 GB, free: 24.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008422/0.7101, allocations: 0.5623 MB / 0.5371 GB, free: 23.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.7102, allocations: 43.39 kB / 0.5372 GB, free: 23.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/0.7106, allocations: 493.5 kB / 0.5376 GB, free: 23.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004102/0.711, allocations: 405.3 kB / 0.538 GB, free: 23.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.489e-05/0.7111, allocations: 27 kB / 0.5381 GB, free: 23.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.7113, allocations: 411.6 kB / 0.5385 GB, free: 22.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.7124, allocations: 0.811 MB / 0.5392 GB, free: 22.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.7135, allocations: 0.9064 MB / 0.5401 GB, free: 22.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.7147, allocations: 0.9104 MB / 0.541 GB, free: 22.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.7147, allocations: 0 / 0.541 GB, free: 22.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003617/0.7183, allocations: 2.287 MB / 0.5433 GB, free: 21.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.7183, allocations: 11.83 kB / 0.5433 GB, free: 21.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.7184, allocations: 3.875 kB / 0.5433 GB, free: 21.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.7197, allocations: 495.4 kB / 0.5437 GB, free: 21.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003763/0.7235, allocations: 0.5522 MB / 0.5443 GB, free: 21.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01642/0.7399, allocations: 21.98 MB / 0.5657 GB, free: 16.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00184/0.7418, allocations: 148.7 kB / 0.5659 GB, free: 16.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.742, allocations: 48.03 kB / 0.5659 GB, free: 16.72 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(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: 13 * 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 (147): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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,(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.001122/0.7431, allocations: 406.4 kB / 0.5663 GB, free: 16.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/0.7434, allocations: 89.83 kB / 0.5664 GB, free: 16.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003462/0.7468, allocations: 1.953 MB / 0.5683 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.7468, allocations: 11.62 kB / 0.5683 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.7469, allocations: 3.875 kB / 0.5683 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.7469, allocations: 3.984 kB / 0.5683 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005138/0.752, allocations: 3.561 MB / 0.5718 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.7521, allocations: 0 / 0.5718 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004005/0.7561, allocations: 0.5108 MB / 0.5723 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.7573, allocations: 489.1 kB / 0.5728 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.7574, allocations: 63.03 kB / 0.5728 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01628/0.7737, allocations: 21.97 MB / 0.5943 GB, free: 6.387 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.7738, allocations: 0 / 0.5943 GB, free: 6.387 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006763/0.7806, allocations: 2.759 MB / 0.597 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006206/0.7812, allocations: 194.9 kB / 0.5972 GB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004434/0.7817, allocations: 55.23 kB / 0.5972 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.7829, allocations: 78.62 kB / 0.5973 GB, free: 4.422 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004242/0.7834, allocations: 91.56 kB / 0.5974 GB, free: 4.367 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.7835, allocations: 30.69 kB / 0.5974 GB, free: 4.359 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009165/0.7844, allocations: 444.3 kB / 0.5978 GB, free: 4.098 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.7845, allocations: 3.938 kB / 0.5978 GB, free: 4.094 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002702/0.7872, allocations: 0.493 MB / 0.5983 GB, free: 4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 42 (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],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.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 (87): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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,(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.0005198/0.7877, allocations: 186.1 kB / 0.5985 GB, free: 3.863 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007722/0.7954, allocations: 3.583 MB / 0.602 GB, free: 1.223 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.7955, allocations: 0 / 0.602 GB, free: 1.223 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006109/0.8016, allocations: 2.69 MB / 0.6046 GB, free: 14.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.8032, allocations: 298.5 kB / 0.6049 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.8158, allocations: 6.45 MB / 0.6112 GB, free: 7.906 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002021/0.818, allocations: 1.287 MB / 0.6125 GB, free: 6.59 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002039/0.82, allocations: 339.2 kB / 0.6128 GB, free: 6.254 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/0.8204, allocations: 67.44 kB / 0.6129 GB, free: 6.191 MB / 426.7 MB Notification: Performance of SimCode: time 1.854e-06/0.8204, allocations: 0 / 0.6129 GB, free: 6.191 MB / 426.7 MB Notification: Performance of Templates: time 0.04203/0.8625, allocations: 20.73 MB / 0.6331 GB, free: 1.457 MB / 442.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003.pipe 2>&1)