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.0007732/0.0007733, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008038/0.0008038, allocations: 172.7 kB / 15.95 MB, free: 208 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.241/1.241, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1908/0.1908, allocations: 22.35 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002732/0.0002732, allocations: 8 kB / 382 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2266, allocations: 55.97 MB / 437.9 MB, free: 39.48 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.001491/0.2281, allocations: 1.812 MB / 439.7 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008999/0.229, allocations: 0.7651 MB / 440.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.2291, allocations: 5.594 kB / 440.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.2294, allocations: 65.98 kB / 440.6 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.2296, allocations: 82.45 kB / 440.7 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.23, allocations: 208 kB / 440.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003697/0.2304, allocations: 472.8 kB / 441.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.2305, allocations: 91.77 kB / 441.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.2307, allocations: 199.9 kB / 441.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.2309, allocations: 195.6 kB / 441.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.2309, allocations: 16.38 kB / 441.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.103e-05/0.231, allocations: 8.406 kB / 441.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.778e-05/0.231, allocations: 83.64 kB / 441.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.15e-05/0.2311, allocations: 71.08 kB / 442 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.2313, allocations: 278 kB / 442.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2313, allocations: 0 / 442.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2313, allocations: 0 / 442.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.2313, allocations: 0 / 442.2 MB, free: 36.95 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.0014/0.2327, allocations: 0.7701 MB / 443 MB, free: 36.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.636e-05/0.2327, allocations: 8.656 kB / 443 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.002e-05/0.2328, allocations: 41.56 kB / 443.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007454/0.2336, allocations: 452.7 kB / 443.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.2336, allocations: 13.38 kB / 443.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.2336, allocations: 21.72 kB / 443.5 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004336/0.2341, allocations: 298.9 kB / 443.8 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.2341, allocations: 0 / 443.8 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.2341, allocations: 11.95 kB / 443.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.2341, allocations: 6.906 kB / 443.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000471/0.2346, allocations: 263.6 kB / 444.1 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.2357, allocations: 0.8327 MB / 444.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007821/0.2365, allocations: 419.6 kB / 445.3 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.2367, allocations: 138.4 kB / 445.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.2367, allocations: 2.875 kB / 445.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.423e-05/0.2368, allocations: 41.94 kB / 445.5 MB, free: 35.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.362e-06/0.2368, allocations: 0 / 445.5 MB, free: 35.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.002264/0.239, allocations: 1.072 MB / 446.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.709e-05/0.2391, allocations: 109 kB / 446.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006724/0.2398, allocations: 437.5 kB / 447.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.2398, allocations: 32.42 kB / 447.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.639e-05/0.2399, allocations: 190.4 kB / 447.4 MB, free: 34.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.058e-05/0.2399, allocations: 84.67 kB / 447.4 MB, free: 34.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.2399, allocations: 0 / 447.4 MB, free: 34.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.981e-05/0.24, allocations: 348.3 kB / 447.8 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.2402, allocations: 119.7 kB / 447.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.2405, allocations: 154.8 kB / 448 MB, free: 33.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.2407, allocations: 145.6 kB / 448.2 MB, free: 33.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2407, allocations: 3.953 kB / 448.2 MB, free: 33.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001153/0.2419, allocations: 0.6038 MB / 448.8 MB, free: 33.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.2419, allocations: 93.09 kB / 448.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.2419, allocations: 2.188 kB / 448.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004746/0.2424, allocations: 195.2 kB / 449.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.2425, allocations: 25.98 kB / 449.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00289/0.2454, allocations: 3.519 MB / 452.6 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003632/0.2458, allocations: 86.3 kB / 452.7 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.2458, allocations: 5.781 kB / 452.7 MB, free: 30.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.209e-06/0.2458, allocations: 5.188 kB / 452.7 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005408/0.2464, allocations: 354.6 kB / 453.1 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-06/0.2464, allocations: 0 / 453.1 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002333/0.2466, allocations: 109.2 kB / 453.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.2467, allocations: 27.97 kB / 453.2 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.2486, allocations: 3.295 MB / 456.5 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003263/0.2489, allocations: 61.91 kB / 456.6 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.2489, allocations: 10.28 kB / 456.6 MB, free: 27.18 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.0001489/0.2491, allocations: 235 kB / 456.8 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.43e-05/0.2491, allocations: 31.16 kB / 456.8 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.938e-05/0.2492, allocations: 55.73 kB / 456.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2492, allocations: 3.312 kB / 456.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2492, allocations: 4 kB / 456.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2493, allocations: 3.984 kB / 456.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003194/0.2496, allocations: 389.5 kB / 457.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2496, allocations: 3.281 kB / 457.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.2497, allocations: 14.84 kB / 457.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004301/0.2502, allocations: 183.5 kB / 457.5 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.2502, allocations: 10.62 kB / 457.5 MB, free: 26.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00275/0.253, allocations: 3.51 MB / 461 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.253, allocations: 0 / 461 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.2542, allocations: 0.7632 MB / 461.7 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.888e-05/0.2543, allocations: 116 kB / 461.9 MB, free: 23.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.2544, allocations: 17.95 kB / 461.9 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003966/0.2548, allocations: 65.5 kB / 461.9 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.193e-05/0.2548, allocations: 19.03 kB / 462 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.2549, allocations: 12.28 kB / 462 MB, free: 23.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006207/0.2555, allocations: 338.4 kB / 462.3 MB, free: 23.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2555, allocations: 4 kB / 462.3 MB, free: 23.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005464/0.256, allocations: 136.5 kB / 462.4 MB, free: 23 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 9.201e-05/0.2561, allocations: 107.7 kB / 462.5 MB, free: 22.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.2572, allocations: 0.9378 MB / 463.5 MB, free: 22.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2573, allocations: 1.219 kB / 463.5 MB, free: 22.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004506/0.2577, allocations: 421.1 kB / 463.9 MB, free: 22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.2581, allocations: 69.86 kB / 464 MB, free: 21.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.2592, allocations: 0.8372 MB / 464.8 MB, free: 21.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/0.2594, allocations: 0.82 MB / 465.6 MB, free: 20.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000164/0.2596, allocations: 67.44 kB / 465.7 MB, free: 20.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.2597, allocations: 24.66 kB / 465.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2597, allocations: 0 / 465.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of Templates: time 0.009894/0.2696, allocations: 5.886 MB / 471.6 MB, free: 20.38 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)