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.0009715/0.0009715, allocations: 99 kB / 15.05 MB, free: 1.105 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.0009269/0.0009269, allocations: 177.3 kB / 15.95 MB, free: 216 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.639/1.639, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2543/0.2543, allocations: 22.34 MB / 313.3 MB, free: 13.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 12 kB / 381.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2733, allocations: 55.97 MB / 437.9 MB, free: 39.39 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.001392/0.2747, allocations: 1.36 MB / 439.3 MB, free: 38.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.2765, allocations: 1.715 MB / 441 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.2766, allocations: 6.5 kB / 441 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004213/0.2771, allocations: 177.7 kB / 441.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003883/0.2775, allocations: 240 kB / 441.4 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000488/0.278, allocations: 322.4 kB / 441.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005771/0.2786, allocations: 0.644 MB / 442.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.2787, allocations: 98.64 kB / 442.4 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005303/0.2793, allocations: 0.5299 MB / 443 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004417/0.2797, allocations: 465.6 kB / 443.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.109e-05/0.2798, allocations: 24.28 kB / 443.5 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.102e-05/0.2799, allocations: 29.97 kB / 443.5 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.2801, allocations: 215.3 kB / 443.7 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.917e-05/0.2802, allocations: 103.5 kB / 443.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.2805, allocations: 482.7 kB / 444.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.2805, allocations: 0 / 444.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2805, allocations: 0 / 444.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.2805, allocations: 0 / 444.3 MB, free: 36.02 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.003812/0.2844, allocations: 1.447 MB / 445.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.2844, allocations: 11.25 kB / 445.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000101/0.2845, allocations: 73.36 kB / 445.8 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.2847, allocations: 75.72 kB / 445.9 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/0.2871, allocations: 0.8763 MB / 446.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.2871, allocations: 20.25 kB / 446.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.066e-05/0.2872, allocations: 36.31 kB / 446.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005757/0.2878, allocations: 362.3 kB / 447.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.2878, allocations: 3.953 kB / 447.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.2879, allocations: 10.62 kB / 447.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.2879, allocations: 8.281 kB / 447.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007243/0.2886, allocations: 464.9 kB / 447.6 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.2908, allocations: 1.269 MB / 448.9 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.2924, allocations: 0.805 MB / 449.7 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.2925, allocations: 3.094 kB / 449.7 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.2925, allocations: 41.69 kB / 449.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.475e-06/0.2925, allocations: 0 / 449.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002915/0.2954, allocations: 1.504 MB / 451.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.2955, allocations: 57.09 kB / 451.3 MB, free: 32.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002273/0.2978, allocations: 1.051 MB / 452.4 MB, free: 32.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.2978, allocations: 32.36 kB / 452.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.298, allocations: 295 kB / 452.7 MB, free: 32.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.2981, allocations: 184.3 kB / 452.9 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-05/0.2982, allocations: 4 kB / 452.9 MB, free: 32.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.616e-05/0.2982, allocations: 336.8 kB / 453.2 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002892/0.2985, allocations: 220.9 kB / 453.4 MB, free: 31.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.2988, allocations: 218.4 kB / 453.6 MB, free: 31.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000384/0.2992, allocations: 269.8 kB / 453.9 MB, free: 31.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2992, allocations: 0 / 453.9 MB, free: 31.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001583/0.3008, allocations: 0.8866 MB / 454.8 MB, free: 31.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.3008, allocations: 7.719 kB / 454.8 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3009, allocations: 0 / 454.8 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006724/0.3015, allocations: 220.9 kB / 455 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003464/0.3019, allocations: 72.98 kB / 455.1 MB, free: 31.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003984/0.3059, allocations: 6.046 MB / 461.1 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.3071, allocations: 191.5 kB / 461.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.436e-05/0.3072, allocations: 15.81 kB / 461.3 MB, free: 25.56 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] P1.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] 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003919/0.3076, allocations: 252.5 kB / 461.6 MB, free: 25.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.3078, allocations: 74.22 kB / 461.6 MB, free: 25.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001726/0.3079, allocations: 103.7 kB / 461.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.3079, allocations: 5.578 kB / 461.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-05/0.308, allocations: 6.125 kB / 461.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.308, allocations: 3.797 kB / 461.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007733/0.3088, allocations: 0.6297 MB / 462.4 MB, free: 24.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.3088, allocations: 0.9688 kB / 462.4 MB, free: 24.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.3092, allocations: 55.39 kB / 462.4 MB, free: 24.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005714/0.3098, allocations: 223.4 kB / 462.6 MB, free: 24.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/0.3098, allocations: 19.47 kB / 462.7 MB, free: 24.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003848/0.3137, allocations: 6.03 MB / 468.7 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3137, allocations: 4 kB / 468.7 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.3158, allocations: 1.188 MB / 469.9 MB, free: 18.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.3161, allocations: 178.5 kB / 470.1 MB, free: 18.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.3162, allocations: 16.83 kB / 470.1 MB, free: 18.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.3173, allocations: 164.9 kB / 470.2 MB, free: 18.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.3174, allocations: 39.02 kB / 470.3 MB, free: 18.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.3175, allocations: 16.61 kB / 470.3 MB, free: 18.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002303/0.3198, allocations: 0.8319 MB / 471.1 MB, free: 18.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3198, allocations: 4 kB / 471.1 MB, free: 18.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007132/0.3205, allocations: 146.6 kB / 471.3 MB, free: 18.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002087/0.3226, allocations: 1.749 MB / 473 MB, free: 17.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.3243, allocations: 1.061 MB / 474.1 MB, free: 16.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.3243, allocations: 0 / 474.1 MB, free: 16.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009709/0.3253, allocations: 0.7672 MB / 474.9 MB, free: 16.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007137/0.326, allocations: 115 kB / 475 MB, free: 16.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/0.3393, allocations: 5.95 MB / 480.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.3398, allocations: 0.996 MB / 481.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004239/0.3403, allocations: 151.3 kB / 482.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003078/0.3406, allocations: 241.7 kB / 482.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3406, allocations: 5.156 kB / 482.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0266/0.3672, allocations: 14.5 MB / 496.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002263/0.3675, allocations: 253.8 kB / 497.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/2.456, allocations: 4 kB / 497.1 MB, free: 0.6484 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 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) Environment - environmentSimulation: