Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.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_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI") [/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.1545/0.1545, allocations: 21.44 MB / 36.39 MB, free: 1.176 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.001331/0.001331, allocations: 195.7 kB / 42.63 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.828/1.828, allocations: 205.4 MB / 254.1 MB, free: 15.19 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.0008924/0.0008924, allocations: 97.42 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004918/0.0004917, allocations: 16.16 kB / 373.2 MB, free: 58.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1062, allocations: 52.95 MB / 426.2 MB, free: 13 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2947/0.4009, allocations: 79.91 MB / 0.4942 GB, free: 17.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.4012, allocations: 80.3 kB / 0.4943 GB, free: 17.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01842/0.4196, allocations: 6.387 MB / 0.5006 GB, free: 17.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.4197, allocations: 0 / 0.5006 GB, free: 17.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.728e-05/0.4197, allocations: 15.41 kB / 0.5006 GB, free: 17.16 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001377/0.4211, allocations: 0.7433 MB / 0.5013 GB, free: 16.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.4211, allocations: 9.688 kB / 0.5013 GB, free: 16.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.797e-05/0.4212, allocations: 41.48 kB / 0.5013 GB, free: 16.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009574/0.4222, allocations: 474.6 kB / 0.5018 GB, free: 16.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.4222, allocations: 16.31 kB / 0.5018 GB, free: 16.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.221e-05/0.4223, allocations: 25.02 kB / 0.5018 GB, free: 16.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004575/0.4227, allocations: 290.3 kB / 0.5021 GB, free: 16.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.4228, allocations: 0 / 0.5021 GB, free: 16.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.4228, allocations: 10.12 kB / 0.5021 GB, free: 16.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.4228, allocations: 4.188 kB / 0.5021 GB, free: 16.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005019/0.4233, allocations: 266.8 kB / 0.5024 GB, free: 16.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.4246, allocations: 0.8435 MB / 0.5032 GB, free: 16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008658/0.4255, allocations: 417.3 kB / 0.5036 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.4255, allocations: 4.625 kB / 0.5036 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.531e-05/0.4255, allocations: 36.34 kB / 0.5036 GB, free: 15.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.193e-06/0.4255, allocations: 0 / 0.5036 GB, free: 15.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.002342/0.4279, allocations: 1.007 MB / 0.5046 GB, free: 15.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.4279, allocations: 107.7 kB / 0.5047 GB, free: 15.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000774/0.4287, allocations: 413.2 kB / 0.5051 GB, free: 15.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.4287, allocations: 30.58 kB / 0.5052 GB, free: 15.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.31e-05/0.4288, allocations: 193.3 kB / 0.5053 GB, free: 15.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.782e-05/0.4289, allocations: 83.03 kB / 0.5054 GB, free: 15.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.173e-05/0.4289, allocations: 7.438 kB / 0.5054 GB, free: 15.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.766e-05/0.429, allocations: 348.6 kB / 0.5058 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.4292, allocations: 120.5 kB / 0.5059 GB, free: 14.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.4295, allocations: 162.2 kB / 0.506 GB, free: 14.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.4297, allocations: 142.5 kB / 0.5062 GB, free: 14.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4298, allocations: 1.375 kB / 0.5062 GB, free: 14.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00108/0.4308, allocations: 0.557 MB / 0.5067 GB, free: 14.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.227e-05/0.4309, allocations: 97.92 kB / 0.5068 GB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4309, allocations: 1.156 kB / 0.5068 GB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005416/0.4315, allocations: 183.7 kB / 0.507 GB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.4316, allocations: 30.44 kB / 0.507 GB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.4332, allocations: 1.315 MB / 0.5083 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005812/0.4338, allocations: 76.02 kB / 0.5084 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.4339, allocations: 13.22 kB / 0.5084 GB, free: 29.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.4339, allocations: 3.406 kB / 0.5084 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007209/0.4346, allocations: 338 kB / 0.5087 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.4346, allocations: 0 / 0.5087 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003336/0.435, allocations: 123.2 kB / 0.5088 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.4351, allocations: 23.41 kB / 0.5088 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.4379, allocations: 3.305 MB / 0.5121 GB, free: 26.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005234/0.4385, allocations: 62.81 kB / 0.5121 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.4385, allocations: 16.83 kB / 0.5121 GB, free: 26.77 MB / 378.7 MB Warning: Assuming fixed start value for the following 4 variables: sens_tforS.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P_tforS.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] sens_tforP.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P_tforP.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003424/0.4389, allocations: 245.1 kB / 0.5124 GB, free: 26.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.6e-05/0.439, allocations: 35.03 kB / 0.5124 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.384e-05/0.4391, allocations: 44 kB / 0.5125 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.4391, allocations: 3.125 kB / 0.5125 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4391, allocations: 0 / 0.5125 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.4391, allocations: 0.5312 kB / 0.5125 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004768/0.4396, allocations: 401.3 kB / 0.5128 GB, free: 26.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.4396, allocations: 7.578 kB / 0.5128 GB, free: 26.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.4397, allocations: 17.28 kB / 0.5129 GB, free: 26.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004699/0.4402, allocations: 187.8 kB / 0.513 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.4403, allocations: 5.75 kB / 0.513 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/0.4439, allocations: 3.547 MB / 0.5165 GB, free: 23.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4439, allocations: 3.938 kB / 0.5165 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.4452, allocations: 0.774 MB / 0.5173 GB, free: 23.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.4454, allocations: 118.7 kB / 0.5174 GB, free: 23.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.662e-05/0.4454, allocations: 11.59 kB / 0.5174 GB, free: 23.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004537/0.4459, allocations: 63.84 kB / 0.5175 GB, free: 23.42 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.66e-05/0.446, allocations: 23.53 kB / 0.5175 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.446, allocations: 18.77 kB / 0.5175 GB, free: 23.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007296/0.4467, allocations: 351.6 kB / 0.5178 GB, free: 23.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4467, allocations: 3.938 kB / 0.5178 GB, free: 23.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005887/0.4473, allocations: 129.5 kB / 0.518 GB, free: 23.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P_tforP.x_scaled[1],sens_tforP.x_scaled[1],P_tforS.x_scaled[1],sens_tforS.x_scaled[1],PI_tuned_for_process.FO.y,PI_tuned_for_sensor.FO.y) * 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): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000148/0.4475, allocations: 113.4 kB / 0.5181 GB, free: 23.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.4486, allocations: 0.6932 MB / 0.5187 GB, free: 22.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4486, allocations: 4 kB / 0.5187 GB, free: 22.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005321/0.4492, allocations: 420.6 kB / 0.5192 GB, free: 22.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000456/0.4496, allocations: 73.47 kB / 0.5192 GB, free: 22.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.4507, allocations: 0.8413 MB / 0.52 GB, free: 22.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.4511, allocations: 0.8283 MB / 0.5209 GB, free: 21.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001758/0.4513, allocations: 63.08 kB / 0.5209 GB, free: 21.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.4513, allocations: 23.34 kB / 0.5209 GB, free: 21.57 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4513, allocations: 0 / 0.5209 GB, free: 21.57 MB / 378.7 MB Notification: Performance of Templates: time 0.008949/0.4603, allocations: 5.477 MB / 0.5263 GB, free: 21.15 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.sim & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe 2>&1)