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 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_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.127/0.127, allocations: 21.62 MB / 36.56 MB, free: 1.059 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.001084/0.001085, allocations: 183.4 kB / 42.83 MB, free: 3.785 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.248/1.248, allocations: 223.2 MB / 272.1 MB, free: 1.402 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.001052/0.001052, allocations: 110.2 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003612, allocations: 12 kB / 397.1 MB, free: 46.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0871/0.08747, allocations: 55.81 MB / 452.9 MB, free: 6.637 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2778/0.3653, allocations: 80.72 MB / 0.5211 GB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.3655, allocations: 91.31 kB / 0.5212 GB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01613/0.3817, allocations: 6.405 MB / 0.5274 GB, free: 11.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3817, allocations: 0 / 0.5274 GB, free: 11.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.3817, allocations: 11.72 kB / 0.5274 GB, free: 11.62 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.00119/0.3829, allocations: 0.7438 MB / 0.5282 GB, free: 11.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.383, allocations: 7.688 kB / 0.5282 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.604e-05/0.383, allocations: 38.69 kB / 0.5282 GB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000815/0.3839, allocations: 462 kB / 0.5286 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.3839, allocations: 15.16 kB / 0.5287 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/0.3839, allocations: 29.77 kB / 0.5287 GB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/0.3844, allocations: 291.2 kB / 0.529 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.3844, allocations: 0 / 0.529 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.3844, allocations: 10.52 kB / 0.529 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3844, allocations: 11.78 kB / 0.529 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004398/0.3849, allocations: 260.5 kB / 0.5292 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.3861, allocations: 0.8374 MB / 0.5301 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008077/0.3869, allocations: 420.6 kB / 0.5305 GB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.387, allocations: 3.844 kB / 0.5305 GB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.578e-05/0.387, allocations: 45.86 kB / 0.5305 GB, free: 9.898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.387, allocations: 0 / 0.5305 GB, free: 9.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.002067/0.3891, allocations: 1.005 MB / 0.5315 GB, free: 9.438 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.3891, allocations: 110.6 kB / 0.5316 GB, free: 9.309 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006699/0.3898, allocations: 408.7 kB / 0.532 GB, free: 9.129 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.3898, allocations: 33.05 kB / 0.532 GB, free: 9.098 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.547e-05/0.3899, allocations: 181.6 kB / 0.5322 GB, free: 8.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.247e-05/0.39, allocations: 88.03 kB / 0.5323 GB, free: 8.922 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.39, allocations: 3.562 kB / 0.5323 GB, free: 8.922 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.409e-05/0.39, allocations: 339.6 kB / 0.5326 GB, free: 8.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.3903, allocations: 123.9 kB / 0.5327 GB, free: 8.578 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.3905, allocations: 158.2 kB / 0.5329 GB, free: 8.527 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.3907, allocations: 143.5 kB / 0.533 GB, free: 8.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3907, allocations: 0 / 0.533 GB, free: 8.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009527/0.3917, allocations: 0.56 MB / 0.5335 GB, free: 8.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.3917, allocations: 96.34 kB / 0.5336 GB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3917, allocations: 0 / 0.5336 GB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004726/0.3922, allocations: 179.2 kB / 0.5338 GB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3923, allocations: 38.3 kB / 0.5338 GB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007872/0.3931, allocations: 1.302 MB / 0.5351 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/0.3935, allocations: 81.53 kB / 0.5352 GB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.855e-05/0.3935, allocations: 10.97 kB / 0.5352 GB, free: 7.027 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.292e-06/0.3936, allocations: 3.969 kB / 0.5352 GB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005553/0.3941, allocations: 350.4 kB / 0.5355 GB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-06/0.3941, allocations: 0 / 0.5355 GB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002324/0.3944, allocations: 111.9 kB / 0.5357 GB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.3945, allocations: 26.48 kB / 0.5357 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.3964, allocations: 3.305 MB / 0.5389 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003455/0.3968, allocations: 66.42 kB / 0.539 GB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.3968, allocations: 7.781 kB / 0.539 GB, free: 4.012 MB / 362.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.0001704/0.3969, allocations: 251.5 kB / 0.5392 GB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.354e-05/0.397, allocations: 31 kB / 0.5392 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.448e-05/0.3971, allocations: 45.56 kB / 0.5393 GB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.3971, allocations: 3.875 kB / 0.5393 GB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.3971, allocations: 0 / 0.5393 GB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3971, allocations: 3.938 kB / 0.5393 GB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003119/0.3974, allocations: 401 kB / 0.5397 GB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3974, allocations: 0 / 0.5397 GB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.3976, allocations: 19.33 kB / 0.5397 GB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004062/0.398, allocations: 187.3 kB / 0.5399 GB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.398, allocations: 11.52 kB / 0.5399 GB, free: 3.418 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002802/0.4008, allocations: 3.556 MB / 0.5434 GB, free: 16.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4009, allocations: 7.938 kB / 0.5434 GB, free: 16.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.4021, allocations: 0.7763 MB / 0.5441 GB, free: 16.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.649e-05/0.4022, allocations: 111.7 kB / 0.5442 GB, free: 16.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.4022, allocations: 7.625 kB / 0.5442 GB, free: 16.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003999/0.4026, allocations: 69.84 kB / 0.5443 GB, free: 16.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.4027, allocations: 19.59 kB / 0.5443 GB, free: 16.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.4027, allocations: 7.625 kB / 0.5443 GB, free: 16.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006037/0.4033, allocations: 346.9 kB / 0.5447 GB, free: 16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4033, allocations: 0 / 0.5447 GB, free: 16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004701/0.4038, allocations: 134.4 kB / 0.5448 GB, free: 15.98 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.0001329/0.4039, allocations: 116.8 kB / 0.5449 GB, free: 15.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000967/0.4049, allocations: 0.6884 MB / 0.5456 GB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4049, allocations: 0 / 0.5456 GB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004537/0.4054, allocations: 430.2 kB / 0.546 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.4057, allocations: 62.09 kB / 0.546 GB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.4068, allocations: 0.8373 MB / 0.5469 GB, free: 14.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.4072, allocations: 0.8191 MB / 0.5477 GB, free: 14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001668/0.4073, allocations: 68.83 kB / 0.5477 GB, free: 13.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.252e-05/0.4074, allocations: 22.81 kB / 0.5477 GB, free: 13.96 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4074, allocations: 0 / 0.5477 GB, free: 13.96 MB / 378.7 MB Notification: Performance of Templates: time 0.008251/0.4157, allocations: 5.475 MB / 0.5531 GB, free: 11.29 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe 2>&1)