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.0009869/0.0009868, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 181.3 kB / 16.92 MB, free: 6.918 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.352/1.352, allocations: 223.3 MB / 241 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.2155/0.2155, allocations: 22.36 MB / 314.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002995, allocations: 8 kB / 383.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2452, allocations: 55.98 MB / 439.2 MB, free: 39.27 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.001725/0.247, allocations: 1.871 MB / 441.1 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009977/0.248, allocations: 0.7898 MB / 441.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2481, allocations: 6.469 kB / 441.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002805/0.2484, allocations: 60.5 kB / 442 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000212/0.2486, allocations: 94.94 kB / 442.1 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.249, allocations: 236.8 kB / 442.3 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003796/0.2494, allocations: 0.5252 MB / 442.8 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.2496, allocations: 105.5 kB / 442.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.2498, allocations: 166.8 kB / 443.1 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.25, allocations: 201.7 kB / 443.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.687e-05/0.25, allocations: 11.97 kB / 443.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.135e-05/0.25, allocations: 11.69 kB / 443.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.34e-05/0.2501, allocations: 83.17 kB / 443.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.239e-05/0.2502, allocations: 161.3 kB / 443.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.2504, allocations: 274.2 kB / 443.8 MB, free: 36.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2504, allocations: 0 / 443.8 MB, free: 36.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2504, allocations: 4 kB / 443.8 MB, free: 36.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.2504, allocations: 0 / 443.8 MB, free: 36.53 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.001566/0.252, allocations: 0.7723 MB / 444.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2521, allocations: 13.78 kB / 444.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.891e-05/0.2521, allocations: 40.09 kB / 444.6 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008234/0.253, allocations: 457.4 kB / 445.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.253, allocations: 20.28 kB / 445.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/0.253, allocations: 25.28 kB / 445.1 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004703/0.2535, allocations: 288.2 kB / 445.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.2535, allocations: 0 / 445.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.2536, allocations: 10.72 kB / 445.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.2536, allocations: 13.7 kB / 445.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005107/0.2541, allocations: 265 kB / 445.7 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.2553, allocations: 0.838 MB / 446.5 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008511/0.2561, allocations: 423.1 kB / 447 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.2564, allocations: 142.8 kB / 447.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.2564, allocations: 2.875 kB / 447.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/0.2565, allocations: 37.28 kB / 447.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.302e-06/0.2565, allocations: 0 / 447.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.002632/0.2591, allocations: 1.075 MB / 448.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.2591, allocations: 105.9 kB / 448.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000774/0.2599, allocations: 447.8 kB / 448.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.26, allocations: 32.14 kB / 448.8 MB, free: 34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.878e-05/0.2601, allocations: 195.5 kB / 449 MB, free: 33.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.063e-05/0.2601, allocations: 85.84 kB / 449.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.041e-05/0.2602, allocations: 28.95 kB / 449.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.236e-05/0.2602, allocations: 354 kB / 449.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.2605, allocations: 115.5 kB / 449.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.2607, allocations: 156.9 kB / 449.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.2624, allocations: 0.6077 MB / 450.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2624, allocations: 0 / 450.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00128/0.2637, allocations: 0.6223 MB / 450.9 MB, free: 32.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/0.2637, allocations: 103.7 kB / 451 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2638, allocations: 0 / 451 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004096/0.2642, allocations: 153.5 kB / 451.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.2643, allocations: 23.97 kB / 451.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003255/0.2676, allocations: 3.523 MB / 454.7 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.268, allocations: 79.31 kB / 454.8 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.268, allocations: 13.31 kB / 454.8 MB, free: 29.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.801e-06/0.268, allocations: 5.25 kB / 454.8 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005728/0.2686, allocations: 342.6 kB / 455.1 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-06/0.2686, allocations: 0 / 455.1 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002514/0.2689, allocations: 114.5 kB / 455.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.269, allocations: 20.47 kB / 455.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.271, allocations: 3.299 MB / 458.6 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003713/0.2713, allocations: 69.94 kB / 458.6 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.2714, allocations: 6.5 kB / 458.7 MB, free: 26.59 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.0001751/0.2715, allocations: 249.8 kB / 458.9 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.606e-05/0.2716, allocations: 29.25 kB / 458.9 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.159e-05/0.2717, allocations: 44.09 kB / 459 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.2717, allocations: 3.25 kB / 459 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.2717, allocations: 3.938 kB / 459 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2717, allocations: 3.422 kB / 459 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.2721, allocations: 398.1 kB / 459.4 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2721, allocations: 4 kB / 459.4 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.2722, allocations: 21.34 kB / 459.4 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004746/0.2727, allocations: 184 kB / 459.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.2727, allocations: 6.438 kB / 459.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003181/0.2759, allocations: 3.495 MB / 463.1 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2759, allocations: 4.875 kB / 463.1 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.2773, allocations: 0.7698 MB / 463.8 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.274e-05/0.2774, allocations: 112.1 kB / 464 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/0.2775, allocations: 6.531 kB / 464 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004532/0.2779, allocations: 71.84 kB / 464 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.57e-05/0.278, allocations: 23.7 kB / 464.1 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.278, allocations: 5.406 kB / 464.1 MB, free: 22.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007145/0.2787, allocations: 348.7 kB / 464.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2788, allocations: 0 / 464.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005987/0.2794, allocations: 131.6 kB / 464.5 MB, free: 22.43 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.0001091/0.2795, allocations: 117 kB / 464.6 MB, free: 22.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.2807, allocations: 0.9374 MB / 465.6 MB, free: 21.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2807, allocations: 0.9688 kB / 465.6 MB, free: 21.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005019/0.2812, allocations: 421.9 kB / 466 MB, free: 21.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004854/0.2817, allocations: 72.08 kB / 466.1 MB, free: 21.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.2829, allocations: 0.9159 MB / 467 MB, free: 20.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.2832, allocations: 0.813 MB / 467.8 MB, free: 20.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.259e-05/0.2832, allocations: 23.83 kB / 467.8 MB, free: 20.12 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2832, allocations: 0 / 467.8 MB, free: 20.12 MB / 350.1 MB Notification: Performance of Templates: time 0.01015/0.2934, allocations: 7.019 MB / 474.8 MB, free: 19.57 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)