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.001074/0.001074, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001306/0.001306, allocations: 168.7 kB / 15.95 MB, free: 200 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.447/1.447, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2362/0.2362, allocations: 22.32 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000314/0.0003141, allocations: 19.98 kB / 382 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.325, allocations: 55.96 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.002103/0.3271, allocations: 1.812 MB / 439.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.3283, allocations: 0.7689 MB / 440.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.3284, allocations: 9.062 kB / 440.5 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003482/0.3288, allocations: 59.09 kB / 440.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002122/0.329, allocations: 83.22 kB / 440.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004416/0.3294, allocations: 217 kB / 440.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004077/0.3299, allocations: 467.1 kB / 441.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.33, allocations: 87.7 kB / 441.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.3302, allocations: 200.8 kB / 441.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.3305, allocations: 197.7 kB / 441.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.3305, allocations: 11.38 kB / 441.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.251e-05/0.3306, allocations: 10.62 kB / 441.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.28e-05/0.3306, allocations: 79.22 kB / 441.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.392e-05/0.3307, allocations: 71.55 kB / 442 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.3309, allocations: 282.4 kB / 442.2 MB, free: 36.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3309, allocations: 0 / 442.2 MB, free: 36.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3309, allocations: 0 / 442.2 MB, free: 36.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.3309, allocations: 0 / 442.2 MB, free: 36.6 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.001398/0.3323, allocations: 0.7706 MB / 443 MB, free: 36.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.3324, allocations: 10.47 kB / 443 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.97e-05/0.3324, allocations: 38.06 kB / 443.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.3332, allocations: 450.4 kB / 443.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.3332, allocations: 14.91 kB / 443.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.185e-05/0.3332, allocations: 27.19 kB / 443.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000473/0.3337, allocations: 292.7 kB / 443.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3337, allocations: 2.844 kB / 443.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.3338, allocations: 15.94 kB / 443.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3338, allocations: 5.906 kB / 443.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.3343, allocations: 264.4 kB / 444.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.3355, allocations: 0.834 MB / 444.9 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008053/0.3363, allocations: 419.1 kB / 445.3 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002247/0.3366, allocations: 141.2 kB / 445.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.501e-05/0.3366, allocations: 6.266 kB / 445.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.3367, allocations: 34.97 kB / 445.5 MB, free: 34.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.3367, allocations: 4 kB / 445.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.002268/0.3389, allocations: 1.068 MB / 446.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.339, allocations: 109.7 kB / 446.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007135/0.3397, allocations: 441.3 kB / 447.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.3397, allocations: 32.48 kB / 447.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.3399, allocations: 192.3 kB / 447.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.325e-05/0.34, allocations: 78.72 kB / 447.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.275e-05/0.34, allocations: 3.938 kB / 447.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3401, allocations: 348.1 kB / 447.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.3403, allocations: 119.9 kB / 447.9 MB, free: 33.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.3406, allocations: 154 kB / 448 MB, free: 33.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.3409, allocations: 144.9 kB / 448.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.3409, allocations: 3.953 kB / 448.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001217/0.3421, allocations: 0.6028 MB / 448.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.061e-05/0.3422, allocations: 98.97 kB / 448.9 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3422, allocations: 3.328 kB / 448.9 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005682/0.3428, allocations: 184 kB / 449.1 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.3429, allocations: 29.91 kB / 449.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003337/0.3463, allocations: 3.526 MB / 452.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.3467, allocations: 81.19 kB / 452.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.3468, allocations: 8.438 kB / 452.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.306e-06/0.3468, allocations: 2.625 kB / 452.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005607/0.3473, allocations: 351.3 kB / 453.1 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-06/0.3474, allocations: 0 / 453.1 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.3476, allocations: 119 kB / 453.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.3478, allocations: 28.64 kB / 453.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.3498, allocations: 3.28 MB / 456.5 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003652/0.3501, allocations: 68.47 kB / 456.5 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.3502, allocations: 5.344 kB / 456.6 MB, free: 26.82 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.0002753/0.3504, allocations: 240.4 kB / 456.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.615e-05/0.3505, allocations: 35.55 kB / 456.8 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.678e-05/0.3506, allocations: 53.19 kB / 456.9 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3506, allocations: 0 / 456.9 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3506, allocations: 2.438 kB / 456.9 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3506, allocations: 3.469 kB / 456.9 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003856/0.351, allocations: 394.8 kB / 457.3 MB, free: 26.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.351, allocations: 0 / 457.3 MB, free: 26.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.3512, allocations: 16.94 kB / 457.3 MB, free: 26.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004284/0.3516, allocations: 179.5 kB / 457.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.3517, allocations: 7.344 kB / 457.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002892/0.3546, allocations: 3.519 MB / 461 MB, free: 23.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3546, allocations: 320 / 461 MB, free: 23.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.3559, allocations: 0.7595 MB / 461.7 MB, free: 22.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.923e-05/0.356, allocations: 120.5 kB / 461.9 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.3561, allocations: 14.89 kB / 461.9 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003908/0.3565, allocations: 70.59 kB / 461.9 MB, free: 22.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.037e-05/0.3565, allocations: 19.58 kB / 462 MB, free: 22.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.3566, allocations: 8.25 kB / 462 MB, free: 22.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006512/0.3572, allocations: 344 kB / 462.3 MB, free: 22.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3572, allocations: 0 / 462.3 MB, free: 22.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000649/0.3579, allocations: 135.7 kB / 462.4 MB, free: 22.64 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.0001169/0.358, allocations: 109.2 kB / 462.5 MB, free: 22.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.3592, allocations: 0.9322 MB / 463.5 MB, free: 21.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3593, allocations: 0 / 463.5 MB, free: 21.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004533/0.3597, allocations: 420.5 kB / 463.9 MB, free: 21.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.3602, allocations: 58.64 kB / 463.9 MB, free: 21.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.3614, allocations: 0.8439 MB / 464.8 MB, free: 21.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.3616, allocations: 0.8147 MB / 465.6 MB, free: 20.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.3618, allocations: 69.64 kB / 465.7 MB, free: 20.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.909e-05/0.3619, allocations: 18.97 kB / 465.7 MB, free: 20.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3619, allocations: 0 / 465.7 MB, free: 20.43 MB / 350.1 MB Notification: Performance of Templates: time 0.0121/0.374, allocations: 5.891 MB / 471.6 MB, free: 20.04 MB / 350.1 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)