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_01_gen.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_01_gen,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen",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.001517/0.001517, allocations: 108 kB / 15.6 MB, free: 132 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.001843/0.001843, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.462/1.462, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2254/0.2254, allocations: 22.34 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 71.89 kB / 381 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2855, allocations: 54.94 MB / 435.9 MB, free: 39.92 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen): time 0.002391/0.2879, allocations: 1.758 MB / 437.6 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.2898, allocations: 1.74 MB / 439.4 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.2899, allocations: 5.75 kB / 439.4 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004533/0.2904, allocations: 213.7 kB / 439.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003996/0.2908, allocations: 254.9 kB / 439.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/0.2914, allocations: 403.7 kB / 440.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007652/0.2922, allocations: 1.193 MB / 441.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.2924, allocations: 115.6 kB / 441.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003806/0.2927, allocations: 488.9 kB / 442 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004526/0.2932, allocations: 0.522 MB / 442.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.2933, allocations: 60.5 kB / 442.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.756e-05/0.2934, allocations: 56.47 kB / 442.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.2937, allocations: 265.3 kB / 442.9 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.2939, allocations: 303.1 kB / 443.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.2942, allocations: 0.6281 MB / 443.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2943, allocations: 3.422 kB / 443.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2943, allocations: 0 / 443.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2943, allocations: 0 / 443.9 MB, free: 35.65 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.004143/0.2984, allocations: 1.522 MB / 445.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.2985, allocations: 9.875 kB / 445.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.066e-05/0.2986, allocations: 61.22 kB / 445.4 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.2987, allocations: 75.72 kB / 445.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002233/0.3009, allocations: 0.8983 MB / 446.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.301, allocations: 20.5 kB / 446.4 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.144e-05/0.301, allocations: 46.98 kB / 446.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005394/0.3016, allocations: 372.7 kB / 446.8 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3016, allocations: 7.688 kB / 446.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.59e-05/0.3017, allocations: 12 kB / 446.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.3017, allocations: 8.438 kB / 446.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000647/0.3023, allocations: 461.1 kB / 447.3 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001866/0.3042, allocations: 1.267 MB / 448.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.3058, allocations: 0.7984 MB / 449.4 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.3061, allocations: 257.8 kB / 449.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.3062, allocations: 6.188 kB / 449.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.3062, allocations: 41.75 kB / 449.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.953e-06/0.3062, allocations: 0 / 449.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002899/0.3091, allocations: 1.507 MB / 451.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/0.3091, allocations: 58.22 kB / 451.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002442/0.3116, allocations: 1.037 MB / 452.3 MB, free: 32.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.445e-05/0.3117, allocations: 34.89 kB / 452.3 MB, free: 31.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.3118, allocations: 293.5 kB / 452.6 MB, free: 31.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.312, allocations: 179.4 kB / 452.8 MB, free: 31.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.3121, allocations: 83.7 kB / 452.9 MB, free: 31.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.042e-05/0.3122, allocations: 324.6 kB / 453.2 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003724/0.3126, allocations: 223.4 kB / 453.4 MB, free: 31.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003185/0.3129, allocations: 224.9 kB / 453.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004026/0.3169, allocations: 1.417 MB / 455 MB, free: 30.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.317, allocations: 0 / 455 MB, free: 30.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001574/0.3185, allocations: 0.8992 MB / 455.9 MB, free: 30.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3186, allocations: 5.375 kB / 455.9 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3186, allocations: 1.062 kB / 455.9 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006175/0.3192, allocations: 216.3 kB / 456.2 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.3195, allocations: 79.03 kB / 456.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/0.3236, allocations: 6.416 MB / 462.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.3248, allocations: 189.5 kB / 462.8 MB, free: 24.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.3249, allocations: 14.08 kB / 462.8 MB, free: 24.3 MB / 350.1 MB Warning: Assuming fixed start value for the following 15 variables: Sf4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C4.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C3.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P1.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 (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003392/0.3252, allocations: 260.2 kB / 463.1 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.3254, allocations: 71.2 kB / 463.2 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001723/0.3255, allocations: 99.75 kB / 463.3 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3255, allocations: 5.531 kB / 463.3 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.3256, allocations: 2.062 kB / 463.3 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3256, allocations: 12.03 kB / 463.3 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007044/0.3263, allocations: 0.6301 MB / 463.9 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3263, allocations: 0 / 463.9 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003601/0.3267, allocations: 58.17 kB / 464 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005597/0.3272, allocations: 228.3 kB / 464.2 MB, free: 23.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/0.3273, allocations: 21.69 kB / 464.2 MB, free: 23.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003789/0.3311, allocations: 6.407 MB / 470.6 MB, free: 17.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3311, allocations: 8.703 kB / 470.6 MB, free: 17.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.3331, allocations: 1.186 MB / 471.8 MB, free: 17.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.3333, allocations: 170.7 kB / 472 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.253e-05/0.3334, allocations: 16.03 kB / 472 MB, free: 16.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.3345, allocations: 154.3 kB / 472.1 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.3347, allocations: 42.39 kB / 472.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.3347, allocations: 9.203 kB / 472.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002336/0.337, allocations: 0.8273 MB / 473 MB, free: 16.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3371, allocations: 0 / 473 MB, free: 16.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006654/0.3377, allocations: 146.1 kB / 473.2 MB, free: 16.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 15 (P1.x_scaled[1],S1.x_scaled[1],C1.x_scaled[1],S2.x_scaled[1],C2.x_scaled[1],P2.x_scaled[1],S3.x_scaled[1],P3.x_scaled[1],C3.x_scaled[1],C3.x_scaled[2],C4.x_scaled[1],C4.x_scaled[2],P4.x_scaled[1],S4.x_scaled[1],Sf4.x_scaled[1]) * 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 (36): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00203/0.3398, allocations: 1.753 MB / 474.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.3414, allocations: 1.134 MB / 476.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3414, allocations: 0 / 476.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009446/0.3424, allocations: 0.7719 MB / 476.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007809/0.3432, allocations: 134.3 kB / 477 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/0.3586, allocations: 7.788 MB / 484.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.3591, allocations: 0.9817 MB / 485.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003728/0.3595, allocations: 154.4 kB / 485.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.3598, allocations: 238.9 kB / 486.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3598, allocations: 0 / 486.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04328/0.4031, allocations: 15.06 MB / 0.4894 GB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.409/9.812, allocations: 8 kB / 0.4894 GB, free: 10.99 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen.fmu > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe 2>&1)