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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_02_PI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_02_PI",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008292/0.0008293, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007979/0.000798, allocations: 168.7 kB / 15.95 MB, free: 204 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.325/1.325, allocations: 223.3 MB / 240 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.212/0.212, allocations: 22.36 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.0003231, allocations: 8 kB / 382.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2873, allocations: 55.97 MB / 438 MB, free: 39.22 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.001782/0.2891, allocations: 1.815 MB / 439.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009834/0.2901, allocations: 0.7673 MB / 440.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.2902, allocations: 5.781 kB / 440.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002984/0.2905, allocations: 66.08 kB / 440.7 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.2907, allocations: 83.17 kB / 440.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.2911, allocations: 209.1 kB / 441 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003977/0.2915, allocations: 468.4 kB / 441.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.2917, allocations: 90.72 kB / 441.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.2919, allocations: 205 kB / 441.7 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.2921, allocations: 195.1 kB / 441.9 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.2921, allocations: 11.22 kB / 441.9 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.247e-05/0.2922, allocations: 11.09 kB / 441.9 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.428e-05/0.2923, allocations: 77.3 kB / 442 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.787e-05/0.2923, allocations: 70.98 kB / 442.1 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.2925, allocations: 278.1 kB / 442.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2925, allocations: 2.781 kB / 442.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2925, allocations: 0 / 442.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.2925, allocations: 4 kB / 442.3 MB, free: 36.69 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.001499/0.2941, allocations: 0.7652 MB / 443.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2941, allocations: 10.31 kB / 443.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.713e-05/0.2942, allocations: 56.16 kB / 443.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.265e-05/0.2942, allocations: 43.12 kB / 443.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007683/0.295, allocations: 447.1 kB / 443.7 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.295, allocations: 12.28 kB / 443.7 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.2951, allocations: 26.91 kB / 443.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004609/0.2956, allocations: 291.9 kB / 444 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2956, allocations: 7.953 kB / 444 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.2956, allocations: 10.75 kB / 444 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/0.2956, allocations: 9.594 kB / 444 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000469/0.2961, allocations: 264.2 kB / 444.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.2972, allocations: 0.8317 MB / 445.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008036/0.2981, allocations: 421.2 kB / 445.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002243/0.2983, allocations: 141.5 kB / 445.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.2983, allocations: 2.75 kB / 445.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.2984, allocations: 37.91 kB / 445.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.362e-06/0.2984, allocations: 0 / 445.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.002315/0.3007, allocations: 1.072 MB / 446.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.3007, allocations: 109 kB / 446.9 MB, free: 34.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007375/0.3015, allocations: 440.3 kB / 447.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.3015, allocations: 32.64 kB / 447.3 MB, free: 34.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3016, allocations: 190.6 kB / 447.5 MB, free: 33.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.802e-05/0.3017, allocations: 85.44 kB / 447.6 MB, free: 33.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/0.3017, allocations: 8 kB / 447.6 MB, free: 33.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.712e-05/0.3018, allocations: 343.1 kB / 447.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.3021, allocations: 118.8 kB / 448.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.3023, allocations: 155 kB / 448.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.3026, allocations: 138.3 kB / 448.3 MB, free: 33.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3026, allocations: 32 / 448.3 MB, free: 33.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00117/0.3038, allocations: 0.6136 MB / 449 MB, free: 33.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.21e-05/0.3038, allocations: 94.69 kB / 449 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3038, allocations: 3.938 kB / 449 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004997/0.3043, allocations: 188.6 kB / 449.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3045, allocations: 28.8 kB / 449.3 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003167/0.3076, allocations: 3.522 MB / 452.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.308, allocations: 86.5 kB / 452.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.308, allocations: 13.44 kB / 452.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-06/0.3081, allocations: 2.469 kB / 452.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005322/0.3086, allocations: 349.3 kB / 453.2 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-06/0.3086, allocations: 0 / 453.2 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.3088, allocations: 111.9 kB / 453.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.309, allocations: 32.75 kB / 453.4 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.3109, allocations: 3.278 MB / 456.6 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.3112, allocations: 70.11 kB / 456.7 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.3113, allocations: 3.688 kB / 456.7 MB, free: 26.87 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.0002039/0.3115, allocations: 243.1 kB / 457 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.597e-05/0.3115, allocations: 36.75 kB / 457 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.947e-05/0.3116, allocations: 45.56 kB / 457 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3116, allocations: 2.625 kB / 457 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3116, allocations: 2.812 kB / 457 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3117, allocations: 3.984 kB / 457 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003515/0.312, allocations: 396 kB / 457.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.312, allocations: 0 / 457.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.3122, allocations: 23.91 kB / 457.5 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004055/0.3126, allocations: 182.1 kB / 457.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.3126, allocations: 3.094 kB / 457.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003131/0.3157, allocations: 3.506 MB / 461.1 MB, free: 23.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.3158, allocations: 4.062 kB / 461.1 MB, free: 23.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.3172, allocations: 0.7693 MB / 461.9 MB, free: 22.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.513e-05/0.3173, allocations: 124.5 kB / 462 MB, free: 22.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.329e-05/0.3173, allocations: 10.73 kB / 462 MB, free: 22.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003911/0.3177, allocations: 74.91 kB / 462.1 MB, free: 22.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.094e-05/0.3178, allocations: 20.59 kB / 462.1 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.3178, allocations: 7.5 kB / 462.1 MB, free: 22.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006915/0.3185, allocations: 343.2 kB / 462.5 MB, free: 22.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3185, allocations: 0 / 462.5 MB, free: 22.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006744/0.3192, allocations: 132 kB / 462.6 MB, free: 22.68 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.001624/0.3208, allocations: 1.314 MB / 463.9 MB, free: 21.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.3223, allocations: 0.9355 MB / 464.9 MB, free: 21.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3223, allocations: 0 / 464.9 MB, free: 21.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005209/0.3228, allocations: 422.2 kB / 465.3 MB, free: 20.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004926/0.3233, allocations: 66.61 kB / 465.3 MB, free: 20.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005523/0.3288, allocations: 2.787 MB / 468.1 MB, free: 19.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.3292, allocations: 0.8136 MB / 468.9 MB, free: 19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002173/0.3294, allocations: 64.55 kB / 469 MB, free: 19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.3296, allocations: 106.8 kB / 469.1 MB, free: 18.92 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3296, allocations: 4 kB / 469.1 MB, free: 18.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02531/0.3549, allocations: 9.316 MB / 478.4 MB, free: 17.4 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/0.3551, allocations: 270.5 kB / 478.7 MB, free: 17.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.335, allocations: 1.219 kB / 478.7 MB, free: 17.04 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_02_PI_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_02_PI.fmu > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe 2>&1) Environment - environmentSimulation: