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_01_gen.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_01_gen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen") [/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.1323/0.1323, allocations: 21.45 MB / 36.39 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.001281/0.001281, allocations: 179.4 kB / 42.62 MB, free: 3.984 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.826/1.826, allocations: 205.4 MB / 254.1 MB, free: 15.21 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.0008121/0.0008121, allocations: 97.11 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003597, allocations: 7.781 kB / 373.2 MB, free: 59.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1067, allocations: 52.95 MB / 426.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3134/0.4202, allocations: 79.16 MB / 0.4935 GB, free: 24.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.4204, allocations: 79.78 kB / 0.4936 GB, free: 24.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03795/0.4584, allocations: 11.2 MB / 0.5045 GB, free: 23.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4584, allocations: 4 kB / 0.5045 GB, free: 23.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.495e-05/0.4585, allocations: 34.53 kB / 0.5046 GB, free: 23.26 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.003661/0.4622, allocations: 1.294 MB / 0.5058 GB, free: 22.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.439e-05/0.4623, allocations: 8.594 kB / 0.5058 GB, free: 22.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.4625, allocations: 74.47 kB / 0.5059 GB, free: 22.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00268/0.4652, allocations: 0.9206 MB / 0.5068 GB, free: 22.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.4653, allocations: 26.64 kB / 0.5068 GB, free: 22.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.82e-05/0.4654, allocations: 28.41 kB / 0.5069 GB, free: 22.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008051/0.4662, allocations: 366.8 kB / 0.5072 GB, free: 22.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.4662, allocations: 0 / 0.5072 GB, free: 22.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.4663, allocations: 13.41 kB / 0.5072 GB, free: 22.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.4663, allocations: 8.062 kB / 0.5072 GB, free: 22.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008799/0.4672, allocations: 464.3 kB / 0.5077 GB, free: 22.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.4697, allocations: 1.22 MB / 0.5089 GB, free: 21.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.4716, allocations: 0.7978 MB / 0.5096 GB, free: 21.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.4716, allocations: 5.938 kB / 0.5096 GB, free: 21.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.647e-05/0.4717, allocations: 44.75 kB / 0.5097 GB, free: 21.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 1.803e-06/0.4717, allocations: 0 / 0.5097 GB, free: 21.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.002908/0.4746, allocations: 1.498 MB / 0.5111 GB, free: 21.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.123e-05/0.4746, allocations: 63.69 kB / 0.5112 GB, free: 21.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002184/0.4768, allocations: 0.9709 MB / 0.5122 GB, free: 21.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.4769, allocations: 29.33 kB / 0.5122 GB, free: 21.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.477, allocations: 309.6 kB / 0.5125 GB, free: 20.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.4771, allocations: 176 kB / 0.5126 GB, free: 20.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/0.4772, allocations: 7.25 kB / 0.5127 GB, free: 20.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.393e-05/0.4772, allocations: 330.6 kB / 0.513 GB, free: 20.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.4775, allocations: 215.1 kB / 0.5132 GB, free: 20.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.4778, allocations: 225.4 kB / 0.5134 GB, free: 20.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/0.4781, allocations: 268.8 kB / 0.5136 GB, free: 20.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4781, allocations: 0 / 0.5136 GB, free: 20.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001301/0.4794, allocations: 0.8915 MB / 0.5145 GB, free: 20.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.4795, allocations: 6.406 kB / 0.5145 GB, free: 20.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.4795, allocations: 3.953 kB / 0.5145 GB, free: 20.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005926/0.4801, allocations: 224.9 kB / 0.5147 GB, free: 20.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003001/0.4804, allocations: 72.66 kB / 0.5148 GB, free: 20.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004707/0.4851, allocations: 6.051 MB / 0.5207 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.4864, allocations: 181 kB / 0.5209 GB, free: 31.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-05/0.4865, allocations: 13.41 kB / 0.5209 GB, free: 31.21 MB / 378.7 MB Warning: Assuming fixed start value for the following 15 variables: Sf4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C4.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C3.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S2.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 (51): * Single equations (assignments): 47 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004596/0.487, allocations: 261.1 kB / 0.5212 GB, free: 31.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.4871, allocations: 67.41 kB / 0.5212 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001845/0.4873, allocations: 98.69 kB / 0.5213 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.4873, allocations: 5.688 kB / 0.5213 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.4873, allocations: 7.906 kB / 0.5213 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.4873, allocations: 7.703 kB / 0.5213 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006231/0.488, allocations: 0.6315 MB / 0.5219 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.488, allocations: 7.891 kB / 0.522 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003621/0.4884, allocations: 64.8 kB / 0.522 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005358/0.4889, allocations: 219.5 kB / 0.5222 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.489, allocations: 18.58 kB / 0.5222 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004043/0.493, allocations: 6.035 MB / 0.5281 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.493, allocations: 0 / 0.5281 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.4948, allocations: 1.183 MB / 0.5293 GB, free: 25.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/0.495, allocations: 172.8 kB / 0.5295 GB, free: 25.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.702e-05/0.4951, allocations: 18.81 kB / 0.5295 GB, free: 25.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.4962, allocations: 166 kB / 0.5296 GB, free: 25.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.4963, allocations: 40.47 kB / 0.5297 GB, free: 25.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.4964, allocations: 7.719 kB / 0.5297 GB, free: 25.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002139/0.4985, allocations: 0.8413 MB / 0.5305 GB, free: 25.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4985, allocations: 0 / 0.5305 GB, free: 25.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007043/0.4992, allocations: 142.8 kB / 0.5306 GB, free: 25.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 15 (P1.x_scaled[1],S1.x_scaled[1],C1.x_scaled[1],S2.x_scaled[1],C2.x_scaled[1],P2.x_scaled[1],S3.x_scaled[1],P3.x_scaled[1],C3.x_scaled[1],C3.x_scaled[2],C4.x_scaled[1],C4.x_scaled[2],P4.x_scaled[1],S4.x_scaled[1],Sf4.x_scaled[1]) * 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 (36): * Single equations (assignments): 32 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002052/0.4995, allocations: 130.9 kB / 0.5308 GB, free: 25.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.5011, allocations: 1.069 MB / 0.5318 GB, free: 24.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5011, allocations: 0 / 0.5318 GB, free: 24.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.5021, allocations: 0.7606 MB / 0.5326 GB, free: 24.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007195/0.5028, allocations: 121.6 kB / 0.5327 GB, free: 24.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.5051, allocations: 1.641 MB / 0.5343 GB, free: 23.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.5057, allocations: 0.9949 MB / 0.5352 GB, free: 22.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004026/0.5061, allocations: 147.5 kB / 0.5354 GB, free: 22.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.5062, allocations: 49.98 kB / 0.5354 GB, free: 22.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.393e-06/0.5062, allocations: 0 / 0.5354 GB, free: 22.66 MB / 378.7 MB Notification: Performance of Templates: time 0.01157/0.5178, allocations: 7.785 MB / 0.543 GB, free: 20.46 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.sim & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe 2>&1)