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.001005/0.001005, allocations: 90.52 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.00706/0.00706, allocations: 173.9 kB / 16.26 MB, free: 6.676 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.406/1.406, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2283/0.2283, allocations: 22.34 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003526, allocations: 8.219 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3081, allocations: 55.98 MB / 438.6 MB, free: 39.49 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.00271/0.3108, allocations: 1.879 MB / 440.5 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.3123, allocations: 0.7809 MB / 441.2 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.3125, allocations: 10.22 kB / 441.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003808/0.3129, allocations: 63.09 kB / 441.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.3131, allocations: 85.67 kB / 441.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.3135, allocations: 248.8 kB / 441.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004203/0.314, allocations: 0.5153 MB / 442.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.3142, allocations: 111.4 kB / 442.3 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.3144, allocations: 171.5 kB / 442.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.3146, allocations: 193.3 kB / 442.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.303e-05/0.3146, allocations: 9.094 kB / 442.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.413e-05/0.3147, allocations: 13.31 kB / 442.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.979e-05/0.3148, allocations: 93.38 kB / 442.7 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.3149, allocations: 160.3 kB / 442.9 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.3152, allocations: 349.8 kB / 443.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3152, allocations: 0 / 443.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3152, allocations: 0 / 443.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3152, allocations: 0 / 443.2 MB, free: 36.7 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.001742/0.3169, allocations: 0.7727 MB / 444 MB, free: 36.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.317, allocations: 11.12 kB / 444 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.928e-05/0.3171, allocations: 43.81 kB / 444.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008335/0.3179, allocations: 461.4 kB / 444.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.318, allocations: 21.2 kB / 444.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.318, allocations: 16.69 kB / 444.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/0.3185, allocations: 294.2 kB / 444.8 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3185, allocations: 3.938 kB / 444.8 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.3186, allocations: 11.78 kB / 444.8 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.3186, allocations: 5.031 kB / 444.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005126/0.3191, allocations: 271.3 kB / 445.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.3203, allocations: 0.8305 MB / 445.9 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008814/0.3212, allocations: 422 kB / 446.4 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002515/0.3215, allocations: 139.9 kB / 446.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.3215, allocations: 7.016 kB / 446.5 MB, free: 34.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.3216, allocations: 30.56 kB / 446.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.164e-06/0.3216, allocations: 4 kB / 446.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.002695/0.3243, allocations: 1.08 MB / 447.6 MB, free: 34.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.3243, allocations: 105.7 kB / 447.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008226/0.3251, allocations: 448.5 kB / 448.2 MB, free: 34.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.3252, allocations: 33.64 kB / 448.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.3253, allocations: 187.8 kB / 448.4 MB, free: 34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.523e-05/0.3253, allocations: 87.09 kB / 448.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.3254, allocations: 30.62 kB / 448.5 MB, free: 33.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.432e-05/0.3255, allocations: 348.8 kB / 448.8 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/0.3257, allocations: 120.8 kB / 448.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/0.326, allocations: 155.8 kB / 449.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.3277, allocations: 0.613 MB / 449.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3277, allocations: 0 / 449.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001307/0.329, allocations: 0.6172 MB / 450.3 MB, free: 33.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.826e-05/0.3291, allocations: 95.91 kB / 450.4 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3291, allocations: 2.812 kB / 450.4 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000444/0.3295, allocations: 149.2 kB / 450.6 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.3297, allocations: 31.36 kB / 450.6 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003521/0.3332, allocations: 3.523 MB / 454.1 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/0.3337, allocations: 85.53 kB / 454.2 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.3337, allocations: 9.328 kB / 454.2 MB, free: 30 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/0.3337, allocations: 2.625 kB / 454.2 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006099/0.3343, allocations: 341.1 kB / 454.6 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-06/0.3344, allocations: 6.625 kB / 454.6 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002641/0.3346, allocations: 111.3 kB / 454.7 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.3348, allocations: 25.22 kB / 454.7 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00214/0.3369, allocations: 3.289 MB / 458 MB, free: 26.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004102/0.3373, allocations: 67.34 kB / 458 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.3374, allocations: 10.53 kB / 458.1 MB, free: 26.76 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.0002109/0.3376, allocations: 242.5 kB / 458.3 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3377, allocations: 31.25 kB / 458.3 MB, free: 26.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.3378, allocations: 48.14 kB / 458.4 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3378, allocations: 7.469 kB / 458.4 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3378, allocations: 3.984 kB / 458.4 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.3378, allocations: 0 / 458.4 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.3383, allocations: 400.8 kB / 458.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3383, allocations: 0 / 458.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.3385, allocations: 16.16 kB / 458.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005183/0.339, allocations: 182 kB / 459 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.339, allocations: 11 kB / 459 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00353/0.3426, allocations: 3.505 MB / 462.5 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3426, allocations: 1.031 kB / 462.5 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.3442, allocations: 0.7781 MB / 463.3 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.991e-05/0.3443, allocations: 112.5 kB / 463.4 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.543e-05/0.3444, allocations: 10.75 kB / 463.4 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004698/0.3448, allocations: 67.23 kB / 463.5 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.091e-05/0.3449, allocations: 24.48 kB / 463.5 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.345, allocations: 4.156 kB / 463.5 MB, free: 22.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008029/0.3458, allocations: 347.3 kB / 463.8 MB, free: 22.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3458, allocations: 3.938 kB / 463.8 MB, free: 22.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007632/0.3465, allocations: 132.5 kB / 464 MB, free: 22.59 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.0001787/0.3467, allocations: 108.2 kB / 464.1 MB, free: 22.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.3486, allocations: 0.9406 MB / 465 MB, free: 21.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3486, allocations: 0 / 465 MB, free: 21.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006084/0.3492, allocations: 422 kB / 465.4 MB, free: 21.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005699/0.3498, allocations: 68.59 kB / 465.5 MB, free: 21.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.3513, allocations: 0.8753 MB / 466.4 MB, free: 21.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3516, allocations: 0.8179 MB / 467.2 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002071/0.3518, allocations: 69.55 kB / 467.2 MB, free: 20.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.727e-05/0.3519, allocations: 19.75 kB / 467.3 MB, free: 20.32 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3519, allocations: 0 / 467.3 MB, free: 20.32 MB / 350.1 MB Notification: Performance of Templates: time 0.01431/0.3662, allocations: 6.063 MB / 473.3 MB, free: 19.93 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)