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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_02_PI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_02_PI",fmuType="me",version="2.0",platforms={"static"}) [/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.09781/0.09781, allocations: 21.62 MB / 36.57 MB, free: 1.105 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.001291/0.001291, allocations: 183.1 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.429/1.429, allocations: 223.2 MB / 272.1 MB, free: 1.418 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.000992/0.0009919, allocations: 103.4 kB / 328.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005315/0.0005319, allocations: 8 kB / 397.1 MB, free: 46.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1046, allocations: 55.81 MB / 452.9 MB, free: 6.52 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3056/0.4102, allocations: 80.72 MB / 0.5212 GB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.4105, allocations: 85.97 kB / 0.5212 GB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01767/0.4281, allocations: 6.41 MB / 0.5275 GB, free: 11.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.4282, allocations: 3.938 kB / 0.5275 GB, free: 11.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.497e-05/0.4282, allocations: 7.375 kB / 0.5275 GB, free: 11.75 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.001409/0.4296, allocations: 0.7383 MB / 0.5282 GB, free: 11.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.4297, allocations: 7.312 kB / 0.5282 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.181e-05/0.4298, allocations: 58.41 kB / 0.5283 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.334e-05/0.4298, allocations: 38.06 kB / 0.5283 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.4309, allocations: 463.5 kB / 0.5288 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.4309, allocations: 14.53 kB / 0.5288 GB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/0.4309, allocations: 28.75 kB / 0.5288 GB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.4315, allocations: 284.7 kB / 0.5291 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.4315, allocations: 7.953 kB / 0.5291 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.4315, allocations: 14.95 kB / 0.5291 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.4315, allocations: 7.844 kB / 0.5291 GB, free: 10.65 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000492/0.432, allocations: 263.2 kB / 0.5294 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.4333, allocations: 0.8341 MB / 0.5302 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009003/0.4342, allocations: 430 kB / 0.5306 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.4343, allocations: 3.781 kB / 0.5306 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.4343, allocations: 42.31 kB / 0.5306 GB, free: 9.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.4343, allocations: 0 / 0.5306 GB, free: 9.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.002275/0.4366, allocations: 1.006 MB / 0.5316 GB, free: 9.516 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.4367, allocations: 110.3 kB / 0.5317 GB, free: 9.391 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007406/0.4374, allocations: 399.3 kB / 0.5321 GB, free: 9.215 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.4374, allocations: 33.48 kB / 0.5321 GB, free: 9.184 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.263e-05/0.4375, allocations: 188.7 kB / 0.5323 GB, free: 9.066 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.74e-05/0.4376, allocations: 81.95 kB / 0.5324 GB, free: 9.008 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.192e-05/0.4376, allocations: 3.812 kB / 0.5324 GB, free: 9.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.631e-05/0.4377, allocations: 345.7 kB / 0.5327 GB, free: 8.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.4379, allocations: 120 kB / 0.5328 GB, free: 8.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.4381, allocations: 155.1 kB / 0.533 GB, free: 8.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.4383, allocations: 146.8 kB / 0.5331 GB, free: 8.574 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.4383, allocations: 0 / 0.5331 GB, free: 8.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009807/0.4393, allocations: 0.5645 MB / 0.5337 GB, free: 8.395 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.4394, allocations: 92.59 kB / 0.5338 GB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4394, allocations: 0 / 0.5338 GB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005249/0.4399, allocations: 179.6 kB / 0.5339 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.4401, allocations: 31.14 kB / 0.534 GB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007889/0.4408, allocations: 1.315 MB / 0.5352 GB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004527/0.4413, allocations: 78.03 kB / 0.5353 GB, free: 7.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.4413, allocations: 7.688 kB / 0.5353 GB, free: 7.109 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.794e-06/0.4414, allocations: 3.844 kB / 0.5353 GB, free: 7.109 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005463/0.4419, allocations: 346.9 kB / 0.5357 GB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-06/0.4419, allocations: 3.984 kB / 0.5357 GB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/0.4422, allocations: 114.6 kB / 0.5358 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.4423, allocations: 27.39 kB / 0.5358 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00192/0.4442, allocations: 3.307 MB / 0.539 GB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003905/0.4446, allocations: 69.52 kB / 0.5391 GB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.4446, allocations: 3.906 kB / 0.5391 GB, free: 4.09 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.0002227/0.4449, allocations: 247.3 kB / 0.5393 GB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.679e-05/0.4449, allocations: 38.98 kB / 0.5394 GB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.719e-05/0.445, allocations: 45.09 kB / 0.5394 GB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.445, allocations: 0 / 0.5394 GB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.445, allocations: 3.906 kB / 0.5394 GB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.445, allocations: 3.938 kB / 0.5394 GB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.4454, allocations: 401.5 kB / 0.5398 GB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4454, allocations: 0 / 0.5398 GB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.4456, allocations: 23.36 kB / 0.5398 GB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004257/0.446, allocations: 178.1 kB / 0.54 GB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.446, allocations: 17.86 kB / 0.54 GB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00281/0.4488, allocations: 3.554 MB / 0.5435 GB, free: 16.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4489, allocations: 0 / 0.5435 GB, free: 16.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.4501, allocations: 0.7818 MB / 0.5443 GB, free: 16.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.827e-05/0.4502, allocations: 111.2 kB / 0.5444 GB, free: 16.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.4502, allocations: 8.281 kB / 0.5444 GB, free: 16.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004382/0.4507, allocations: 69.19 kB / 0.5444 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.819e-05/0.4508, allocations: 22.53 kB / 0.5445 GB, free: 16.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.4508, allocations: 6.906 kB / 0.5445 GB, free: 16.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006994/0.4515, allocations: 340.6 kB / 0.5448 GB, free: 16.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.352e-06/0.4515, allocations: 0 / 0.5448 GB, free: 16.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005571/0.4521, allocations: 132.2 kB / 0.5449 GB, free: 16.07 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.001604/0.4537, allocations: 1.331 MB / 0.5462 GB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.4548, allocations: 0.6929 MB / 0.5469 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4548, allocations: 0 / 0.5469 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005154/0.4553, allocations: 427.2 kB / 0.5473 GB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.4557, allocations: 62.98 kB / 0.5474 GB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004812/0.4605, allocations: 2.703 MB / 0.55 GB, free: 13.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.4609, allocations: 0.8179 MB / 0.5508 GB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.4611, allocations: 66.67 kB / 0.5509 GB, free: 12.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.4612, allocations: 108.6 kB / 0.551 GB, free: 12.6 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4612, allocations: 0 / 0.551 GB, free: 12.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.4819, allocations: 8.892 MB / 0.5596 GB, free: 6.129 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003999/0.4824, allocations: 271.5 kB / 0.5599 GB, free: 5.762 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.096/2.579, allocations: 0 / 0.5599 GB, free: 5.762 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_02_PI_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_02_PI.fmu > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe 2>&1)