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: 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 99.16 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.001331/0.001332, 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.4/1.4, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2144/0.2144, allocations: 22.34 MB / 313.3 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004953/0.0004956, allocations: 8 kB / 381.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3376, allocations: 55.98 MB / 437.8 MB, free: 39.37 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.002226/0.3399, allocations: 1.82 MB / 439.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.3411, allocations: 0.7606 MB / 440.4 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.3413, allocations: 11.78 kB / 440.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003364/0.3416, allocations: 54.97 kB / 440.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.3418, allocations: 92.31 kB / 440.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.3423, allocations: 206.9 kB / 440.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.3426, allocations: 303.9 kB / 441.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.3428, allocations: 91.36 kB / 441.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.343, allocations: 206.9 kB / 441.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.3432, allocations: 181.4 kB / 441.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.954e-05/0.3432, allocations: 12.72 kB / 441.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.55e-05/0.3433, allocations: 9.688 kB / 441.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.182e-05/0.3434, allocations: 81.81 kB / 441.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.496e-05/0.3434, allocations: 71.08 kB / 441.7 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.3436, allocations: 275 kB / 442 MB, free: 36.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3436, allocations: 0 / 442 MB, free: 36.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3436, allocations: 0 / 442 MB, free: 36.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.79e-06/0.3437, allocations: 0 / 442 MB, free: 36.89 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.001609/0.3453, allocations: 0.7775 MB / 442.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.3453, allocations: 9.188 kB / 442.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.767e-05/0.3454, allocations: 37.06 kB / 442.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008779/0.3463, allocations: 453 kB / 443.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.3463, allocations: 16.94 kB / 443.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/0.3464, allocations: 21.66 kB / 443.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004626/0.3468, allocations: 286.5 kB / 443.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3469, allocations: 0 / 443.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.3469, allocations: 15.7 kB / 443.6 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.3469, allocations: 3.938 kB / 443.6 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004904/0.3474, allocations: 267.8 kB / 443.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.3487, allocations: 0.8336 MB / 444.7 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008725/0.3496, allocations: 424.5 kB / 445.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.3496, allocations: 2.781 kB / 445.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.3496, allocations: 30.56 kB / 445.1 MB, free: 35.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.3497, allocations: 3.938 kB / 445.1 MB, free: 35.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00263/0.3523, allocations: 1.063 MB / 446.2 MB, free: 34.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.3523, allocations: 109.5 kB / 446.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007762/0.3531, allocations: 444.2 kB / 446.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.3532, allocations: 29.7 kB / 446.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.3533, allocations: 188.9 kB / 446.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.212e-05/0.3534, allocations: 82.83 kB / 447 MB, free: 34.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.462e-05/0.3534, allocations: 11.31 kB / 447 MB, free: 34.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.683e-05/0.3535, allocations: 342 kB / 447.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002276/0.3537, allocations: 128 kB / 447.5 MB, free: 33.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.354, allocations: 158 kB / 447.6 MB, free: 33.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.3542, allocations: 129.8 kB / 447.8 MB, free: 33.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3542, allocations: 6.5 kB / 447.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001227/0.3555, allocations: 0.6084 MB / 448.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.714e-05/0.3555, allocations: 94.94 kB / 448.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3555, allocations: 3.938 kB / 448.5 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005601/0.3561, allocations: 183.6 kB / 448.7 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.3562, allocations: 28.75 kB / 448.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003542/0.3598, allocations: 3.584 MB / 452.3 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/0.3602, allocations: 83.81 kB / 452.3 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.3603, allocations: 5.25 kB / 452.3 MB, free: 30.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/0.3603, allocations: 5.25 kB / 452.4 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005462/0.3608, allocations: 354.4 kB / 452.7 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-06/0.3608, allocations: 0 / 452.7 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/0.3611, allocations: 110 kB / 452.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.3612, allocations: 26.5 kB / 452.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.3632, allocations: 3.317 MB / 456.2 MB, free: 27.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.3635, allocations: 63.53 kB / 456.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.3636, allocations: 9.25 kB / 456.2 MB, free: 27.14 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.0002013/0.3638, allocations: 238.8 kB / 456.5 MB, free: 26.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.991e-05/0.3639, allocations: 31.56 kB / 456.5 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.638e-05/0.3639, allocations: 42.83 kB / 456.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3639, allocations: 6.922 kB / 456.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3639, allocations: 0 / 456.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.364, allocations: 10.78 kB / 456.5 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003396/0.3643, allocations: 392.2 kB / 456.9 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3643, allocations: 0 / 456.9 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.3645, allocations: 26.7 kB / 457 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004283/0.3649, allocations: 179.2 kB / 457.1 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.3649, allocations: 6.969 kB / 457.1 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003018/0.368, allocations: 3.566 MB / 460.7 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.368, allocations: 0.875 kB / 460.7 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.3693, allocations: 0.7691 MB / 461.5 MB, free: 23.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.061e-05/0.3694, allocations: 116.4 kB / 461.6 MB, free: 23.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.683e-05/0.3695, allocations: 11.27 kB / 461.6 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.3699, allocations: 68.38 kB / 461.7 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.581e-05/0.37, allocations: 23.59 kB / 461.7 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.37, allocations: 8.906 kB / 461.7 MB, free: 23.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007018/0.3707, allocations: 344.8 kB / 462 MB, free: 22.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3707, allocations: 0 / 462 MB, free: 22.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000673/0.3714, allocations: 135.5 kB / 462.2 MB, free: 22.94 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.0001398/0.3716, allocations: 103.8 kB / 462.3 MB, free: 22.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.3729, allocations: 0.9368 MB / 463.2 MB, free: 22.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3729, allocations: 0 / 463.2 MB, free: 22.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004746/0.3734, allocations: 420.3 kB / 463.6 MB, free: 21.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.3738, allocations: 64.25 kB / 463.7 MB, free: 21.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.3749, allocations: 0.8452 MB / 464.5 MB, free: 21.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.3752, allocations: 0.8241 MB / 465.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001594/0.3753, allocations: 63 kB / 465.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.871e-05/0.3754, allocations: 19.62 kB / 465.4 MB, free: 20.72 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3754, allocations: 5.75 kB / 465.4 MB, free: 20.72 MB / 350.1 MB Notification: Performance of Templates: time 0.01157/0.387, allocations: 5.876 MB / 471.3 MB, free: 20.33 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: