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/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 99.39 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.753/1.753, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2026/0.2026, allocations: 22.35 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000435/0.0004351, allocations: 8 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3276, allocations: 55.98 MB / 437.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI): time 0.001969/0.3296, allocations: 1.814 MB / 439.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.3306, allocations: 0.7594 MB / 440.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.3308, allocations: 7.031 kB / 440.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.3311, allocations: 65 kB / 440.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.3313, allocations: 90.72 kB / 440.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.3318, allocations: 207.2 kB / 440.8 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003064/0.3321, allocations: 302.2 kB / 441.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.3322, allocations: 94.23 kB / 441.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.3325, allocations: 204.2 kB / 441.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.3326, allocations: 178.6 kB / 441.6 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.602e-05/0.3327, allocations: 12.44 kB / 441.6 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.336e-05/0.3327, allocations: 11.69 kB / 441.6 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.811e-05/0.3328, allocations: 81.73 kB / 441.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.3329, allocations: 75.95 kB / 441.8 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001901/0.3331, allocations: 274.2 kB / 442 MB, free: 36.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3331, allocations: 0 / 442 MB, free: 36.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3331, allocations: 0 / 442 MB, free: 36.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.3331, allocations: 0 / 442 MB, free: 36.65 MB / 350.1 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.001567/0.3347, allocations: 0.7719 MB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3347, allocations: 13.28 kB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.087e-05/0.3348, allocations: 51.12 kB / 442.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.355e-05/0.3349, allocations: 45.53 kB / 442.9 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008475/0.3357, allocations: 445.6 kB / 443.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.3358, allocations: 17.09 kB / 443.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.03e-05/0.3358, allocations: 21.31 kB / 443.4 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000456/0.3363, allocations: 294.7 kB / 443.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3363, allocations: 3.953 kB / 443.7 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.3363, allocations: 7.984 kB / 443.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3363, allocations: 7.625 kB / 443.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.3368, allocations: 268.6 kB / 444 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.338, allocations: 0.8284 MB / 444.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008319/0.3389, allocations: 421.9 kB / 445.2 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.078e-05/0.3389, allocations: 3.25 kB / 445.2 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.339, allocations: 38.5 kB / 445.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.339, allocations: 0 / 445.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.002534/0.3415, allocations: 1.067 MB / 446.3 MB, free: 34.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.3416, allocations: 110.7 kB / 446.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007818/0.3424, allocations: 437.5 kB / 446.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.3424, allocations: 32.58 kB / 446.9 MB, free: 34.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.915e-05/0.3425, allocations: 190.7 kB / 447.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.782e-05/0.3426, allocations: 81.8 kB / 447.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.27e-05/0.3426, allocations: 7.938 kB / 447.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.578e-05/0.3427, allocations: 345.7 kB / 447.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/0.3429, allocations: 121.6 kB / 447.6 MB, free: 33.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.3431, allocations: 158.9 kB / 447.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002747/0.3434, allocations: 132.6 kB / 447.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3434, allocations: 3.953 kB / 447.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001297/0.3447, allocations: 0.6109 MB / 448.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.93e-05/0.3448, allocations: 94.75 kB / 448.6 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3448, allocations: 0 / 448.6 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005665/0.3454, allocations: 188.2 kB / 448.8 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.3455, allocations: 24.17 kB / 448.8 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003469/0.349, allocations: 3.579 MB / 452.4 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.3495, allocations: 90.22 kB / 452.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.3496, allocations: 9.25 kB / 452.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.769e-06/0.3496, allocations: 4.406 kB / 452.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005865/0.3502, allocations: 353.6 kB / 452.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.3502, allocations: 3.984 kB / 452.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002781/0.3505, allocations: 110.8 kB / 452.9 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.3506, allocations: 33.42 kB / 453 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002118/0.3527, allocations: 3.303 MB / 456.3 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.3532, allocations: 63.33 kB / 456.3 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.3532, allocations: 9.625 kB / 456.4 MB, free: 26.86 MB / 350.1 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.0002713/0.3535, allocations: 241.3 kB / 456.6 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.105e-05/0.3536, allocations: 38.75 kB / 456.6 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.737e-05/0.3537, allocations: 53.95 kB / 456.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3537, allocations: 3.688 kB / 456.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3537, allocations: 0 / 456.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3537, allocations: 0 / 456.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004224/0.3541, allocations: 390.5 kB / 457.1 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3541, allocations: 0 / 457.1 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.3543, allocations: 25.75 kB / 457.1 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004888/0.3548, allocations: 186.2 kB / 457.3 MB, free: 26.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.3548, allocations: 6.844 kB / 457.3 MB, free: 26.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003338/0.3582, allocations: 3.567 MB / 460.8 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3582, allocations: 0 / 460.8 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.3598, allocations: 0.7577 MB / 461.6 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.3599, allocations: 123.9 kB / 461.7 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.309e-05/0.36, allocations: 15.36 kB / 461.7 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.3604, allocations: 68.92 kB / 461.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.389e-05/0.3605, allocations: 22.48 kB / 461.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.3606, allocations: 4.219 kB / 461.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007092/0.3613, allocations: 345.6 kB / 462.2 MB, free: 22.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3613, allocations: 0 / 462.2 MB, free: 22.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006757/0.362, allocations: 136.5 kB / 462.3 MB, free: 22.65 MB / 350.1 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.001657/0.3636, allocations: 1.304 MB / 463.6 MB, free: 21.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.365, allocations: 0.9422 MB / 464.6 MB, free: 21.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.365, allocations: 0 / 464.6 MB, free: 21.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/0.3655, allocations: 417.8 kB / 465 MB, free: 20.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.3659, allocations: 66.41 kB / 465 MB, free: 20.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005842/0.3718, allocations: 2.765 MB / 467.8 MB, free: 19.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.3721, allocations: 0.8202 MB / 468.6 MB, free: 19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002234/0.3724, allocations: 72.61 kB / 468.7 MB, free: 18.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.3725, allocations: 106.4 kB / 468.8 MB, free: 18.91 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3725, allocations: 0 / 468.8 MB, free: 18.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.3986, allocations: 9.294 MB / 478.1 MB, free: 17.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.3988, allocations: 266.4 kB / 478.3 MB, free: 17.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.159/2.558, allocations: 1.031 kB / 478.3 MB, free: 17.11 MB / 350.1 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) Environment - environmentSimulation: