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.0008674/0.0008675, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.005957/0.005958, allocations: 171.5 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2037/0.2037, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.000382, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2955, allocations: 55.98 MB / 438.6 MB, free: 39.21 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.002109/0.2977, allocations: 1.872 MB / 440.4 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.2988, allocations: 0.7823 MB / 441.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.299, allocations: 7.094 kB / 441.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003249/0.2993, allocations: 70.58 kB / 441.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002254/0.2996, allocations: 86.02 kB / 441.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.3, allocations: 243.3 kB / 441.6 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004814/0.3005, allocations: 0.5195 MB / 442.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.3007, allocations: 114.2 kB / 442.3 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.3009, allocations: 171.7 kB / 442.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.3012, allocations: 197.1 kB / 442.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.575e-05/0.3012, allocations: 17 kB / 442.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.591e-05/0.3013, allocations: 9.812 kB / 442.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.3014, allocations: 86.23 kB / 442.7 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.3015, allocations: 160.4 kB / 442.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.3018, allocations: 343.3 kB / 443.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3018, allocations: 6.875 kB / 443.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3018, allocations: 0 / 443.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.3018, allocations: 0 / 443.2 MB, free: 36.42 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.001687/0.3035, allocations: 0.767 MB / 444 MB, free: 35.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.3035, allocations: 12.31 kB / 444 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.528e-05/0.3036, allocations: 41.5 kB / 444 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009195/0.3046, allocations: 458.4 kB / 444.5 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.3046, allocations: 17.53 kB / 444.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.327e-05/0.3047, allocations: 24.78 kB / 444.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00059/0.3053, allocations: 300.1 kB / 444.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.3053, allocations: 0 / 444.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.3053, allocations: 4 kB / 444.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.3053, allocations: 6.25 kB / 444.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000608/0.306, allocations: 270.5 kB / 445.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.3076, allocations: 0.8415 MB / 445.9 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.3086, allocations: 417.2 kB / 446.4 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002685/0.3089, allocations: 143.1 kB / 446.5 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.487e-05/0.309, allocations: 3 kB / 446.5 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.309, allocations: 34.56 kB / 446.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.445e-06/0.309, allocations: 0 / 446.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.002802/0.3118, allocations: 1.085 MB / 447.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.3119, allocations: 105.7 kB / 447.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008501/0.3127, allocations: 442.7 kB / 448.2 MB, free: 33.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.3128, allocations: 29.7 kB / 448.2 MB, free: 33.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.3129, allocations: 189.7 kB / 448.4 MB, free: 33.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.655e-05/0.313, allocations: 82.05 kB / 448.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.828e-05/0.3131, allocations: 29.61 kB / 448.5 MB, free: 33.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3132, allocations: 352.4 kB / 448.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.3135, allocations: 121.9 kB / 448.9 MB, free: 33.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.3139, allocations: 164.8 kB / 449.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/0.3156, allocations: 0.606 MB / 449.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3156, allocations: 0 / 449.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.002/0.3177, allocations: 0.6151 MB / 450.3 MB, free: 32.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.983e-05/0.3177, allocations: 102 kB / 450.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.3178, allocations: 4 kB / 450.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006371/0.3184, allocations: 146.9 kB / 450.6 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.3185, allocations: 25.33 kB / 450.6 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003766/0.3223, allocations: 3.525 MB / 454.1 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005063/0.3229, allocations: 84.27 kB / 454.2 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.3229, allocations: 10.03 kB / 454.2 MB, free: 29.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.3229, allocations: 5.688 kB / 454.2 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006293/0.3236, allocations: 351.6 kB / 454.6 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-06/0.3236, allocations: 0 / 454.6 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.3239, allocations: 111.2 kB / 454.7 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.324, allocations: 29.59 kB / 454.7 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.3261, allocations: 3.282 MB / 458 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.3265, allocations: 68.61 kB / 458 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.3265, allocations: 7.125 kB / 458.1 MB, free: 26.49 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.3268, allocations: 249.5 kB / 458.3 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.02e-05/0.3269, allocations: 39.17 kB / 458.3 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.504e-05/0.327, allocations: 44.66 kB / 458.4 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.327, allocations: 0 / 458.4 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.327, allocations: 0 / 458.4 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.327, allocations: 6.438 kB / 458.4 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003626/0.3274, allocations: 397.3 kB / 458.8 MB, free: 25.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3274, allocations: 0 / 458.8 MB, free: 25.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.3275, allocations: 16.81 kB / 458.8 MB, free: 25.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004806/0.328, allocations: 193.3 kB / 459 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.3281, allocations: 7.25 kB / 459 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003871/0.3319, allocations: 3.496 MB / 462.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.332, allocations: 0 / 462.5 MB, free: 22.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.3335, allocations: 0.7768 MB / 463.3 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.107e-05/0.3336, allocations: 115.3 kB / 463.4 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.3337, allocations: 6.719 kB / 463.4 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004583/0.3341, allocations: 69.66 kB / 463.4 MB, free: 22.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.3342, allocations: 23.55 kB / 463.5 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.3342, allocations: 9.094 kB / 463.5 MB, free: 22.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007364/0.335, allocations: 351.5 kB / 463.8 MB, free: 22.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.92e-07/0.335, allocations: 0 / 463.8 MB, free: 22.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006337/0.3356, allocations: 131.4 kB / 463.9 MB, free: 22.31 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001122/0.3358, allocations: 105.9 kB / 464.1 MB, free: 22.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.3372, allocations: 0.9423 MB / 465 MB, free: 21.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3372, allocations: 1.188 kB / 465 MB, free: 21.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006086/0.3378, allocations: 421.3 kB / 465.4 MB, free: 21.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.3385, allocations: 69.52 kB / 465.5 MB, free: 21.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.3398, allocations: 0.8772 MB / 466.4 MB, free: 20.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.3402, allocations: 0.8118 MB / 467.2 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003242/0.3405, allocations: 66.95 kB / 467.2 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.673e-05/0.3406, allocations: 23.44 kB / 467.3 MB, free: 20.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3406, allocations: 0 / 467.3 MB, free: 20.05 MB / 350.1 MB Notification: Performance of Templates: time 0.01399/0.3546, allocations: 6.063 MB / 473.3 MB, free: 19.66 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)