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 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 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.1168/0.1168, allocations: 21.61 MB / 36.56 MB, free: 1.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009765/0.0009764, allocations: 179.2 kB / 42.83 MB, free: 3.832 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 223.2 MB / 272.2 MB, free: 1.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008095/0.0008095, allocations: 102.7 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 8 kB / 397 MB, free: 46.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07592/0.07624, allocations: 55.82 MB / 452.9 MB, free: 6.629 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.301/0.3773, allocations: 84.04 MB / 0.5243 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.3775, allocations: 72.16 kB / 0.5244 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02728/0.4048, allocations: 12.75 MB / 0.5368 GB, free: 8.414 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4049, allocations: 0 / 0.5368 GB, free: 8.414 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.736e-05/0.4049, allocations: 15.47 kB / 0.5368 GB, free: 8.414 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.001907/0.4068, allocations: 1.106 MB / 0.5379 GB, free: 7.684 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.4069, allocations: 11.84 kB / 0.5379 GB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.407, allocations: 93 kB / 0.538 GB, free: 7.633 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009463/0.408, allocations: 0.597 MB / 0.5386 GB, free: 7.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.025e-05/0.4081, allocations: 77.7 kB / 0.5387 GB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.4082, allocations: 80.81 kB / 0.5388 GB, free: 7.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.4095, allocations: 1.044 MB / 0.5398 GB, free: 6.938 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.4096, allocations: 7.859 kB / 0.5398 GB, free: 6.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.527e-05/0.4096, allocations: 30.34 kB / 0.5398 GB, free: 6.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.4097, allocations: 15.38 kB / 0.5398 GB, free: 6.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.4107, allocations: 0.8176 MB / 0.5406 GB, free: 6.812 MB / 362.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004772/0.4155, allocations: 4.064 MB / 0.5446 GB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.4179, allocations: 1.032 MB / 0.5456 GB, free: 4.344 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.418, allocations: 12.05 kB / 0.5456 GB, free: 4.344 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.418, allocations: 38.94 kB / 0.5457 GB, free: 4.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=58): time 1.894e-06/0.418, allocations: 0 / 0.5457 GB, free: 4.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.003429/0.4214, allocations: 2.394 MB / 0.548 GB, free: 2.938 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.4215, allocations: 59.56 kB / 0.548 GB, free: 2.875 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003275/0.4218, allocations: 362.8 kB / 0.5484 GB, free: 2.734 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.708e-05/0.4219, allocations: 44.36 kB / 0.5484 GB, free: 2.695 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.422, allocations: 322.7 kB / 0.5487 GB, free: 2.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.4222, allocations: 229.6 kB / 0.549 GB, free: 2.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.4222, allocations: 14.84 kB / 0.549 GB, free: 2.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.4223, allocations: 373.7 kB / 0.5493 GB, free: 1.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005371/0.4228, allocations: 449 kB / 0.5498 GB, free: 1.918 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/0.4234, allocations: 0.4986 MB / 0.5502 GB, free: 1.797 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006229/0.424, allocations: 0.4909 MB / 0.5507 GB, free: 1.746 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4241, allocations: 0 / 0.5507 GB, free: 1.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00199/0.426, allocations: 1.35 MB / 0.552 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.4261, allocations: 4 kB / 0.552 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.4261, allocations: 0 / 0.552 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009557/0.427, allocations: 354 kB / 0.5524 GB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008221/0.4279, allocations: 186.9 kB / 0.5526 GB, free: 328 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.438, allocations: 14.18 MB / 0.5664 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007416/0.4388, allocations: 82.2 kB / 0.5665 GB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-05/0.4389, allocations: 22.88 kB / 0.5665 GB, free: 1.695 MB / 378.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: 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): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 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.0005515/0.4394, allocations: 293.2 kB / 0.5668 GB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.4395, allocations: 55.39 kB / 0.5668 GB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/0.4415, allocations: 1.126 MB / 0.5679 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.4416, allocations: 4 kB / 0.5679 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4416, allocations: 7.953 kB / 0.568 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.4416, allocations: 7.922 kB / 0.568 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.4447, allocations: 2.147 MB / 0.5701 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.4447, allocations: 4 kB / 0.5701 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009825/0.4457, allocations: 167 kB / 0.5702 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007779/0.4465, allocations: 307.4 kB / 0.5705 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-05/0.4466, allocations: 33.28 kB / 0.5705 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00915/0.4557, allocations: 13.76 MB / 0.584 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4558, allocations: 0 / 0.584 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002717/0.4585, allocations: 1.653 MB / 0.5856 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001642/0.4587, allocations: 144.3 kB / 0.5857 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.974e-05/0.4588, allocations: 31.98 kB / 0.5858 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004561/0.4593, allocations: 39.88 kB / 0.5858 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.4594, allocations: 56.42 kB / 0.5859 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.772e-05/0.4595, allocations: 16 kB / 0.5859 GB, free: 14.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003436/0.4598, allocations: 291.1 kB / 0.5861 GB, free: 13.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4598, allocations: 4 kB / 0.5862 GB, free: 13.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009092/0.4607, allocations: 299.4 kB / 0.5864 GB, free: 13.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 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.0001976/0.4609, allocations: 137.4 kB / 0.5866 GB, free: 13.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002409/0.4634, allocations: 2.036 MB / 0.5886 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4634, allocations: 4 kB / 0.5886 GB, free: 11.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.465, allocations: 1.561 MB / 0.5901 GB, free: 9.527 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005903/0.4656, allocations: 172.3 kB / 0.5902 GB, free: 9.363 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005316/0.471, allocations: 3.596 MB / 0.5938 GB, free: 5.734 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007157/0.4717, allocations: 1.021 MB / 0.5948 GB, free: 4.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004859/0.4722, allocations: 160.5 kB / 0.5949 GB, free: 4.523 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.4724, allocations: 47.44 kB / 0.595 GB, free: 4.48 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4724, allocations: 0 / 0.595 GB, free: 4.48 MB / 410.7 MB Notification: Performance of Templates: time 0.01832/0.4907, allocations: 11.85 MB / 0.6065 GB, free: 8.773 MB / 426.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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)