Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Containment_elements.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_component_models.Containment_elements,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Containment_elements",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Containment_elements,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Containment_elements",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.007573/0.007573, allocations: 101 kB / 15.73 MB, free: 6.059 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.00176/0.00176, allocations: 196.8 kB / 16.68 MB, free: 5.969 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09496/0.09496, allocations: 22.32 MB / 312.9 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 59.91 kB / 436.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1051, allocations: 54.96 MB / 491.5 MB, free: 5.375 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.003134/0.1083, allocations: 1.92 MB / 493.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006472/0.109, allocations: 247.2 kB / 493.7 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.844e-05/0.1091, allocations: 0 / 493.7 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.1093, allocations: 23.78 kB / 493.7 MB, free: 3.176 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004202/0.1097, allocations: 119.4 kB / 493.8 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001297/0.1099, allocations: 43.94 kB / 493.9 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003239/0.1102, allocations: 271.1 kB / 494.1 MB, free: 2.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.1103, allocations: 49.11 kB / 494.2 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.1105, allocations: 95.67 kB / 494.3 MB, free: 2.609 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002316/0.1107, allocations: 123.6 kB / 494.4 MB, free: 2.488 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.533e-05/0.1108, allocations: 20 kB / 494.4 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.1109, allocations: 71.88 kB / 494.5 MB, free: 2.398 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.1111, allocations: 71.84 kB / 494.5 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.1112, allocations: 107.5 kB / 494.6 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.1116, allocations: 274.9 kB / 494.9 MB, free: 1.953 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1116, allocations: 0 / 494.9 MB, free: 1.953 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1116, allocations: 0 / 494.9 MB, free: 1.953 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.1116, allocations: 4 kB / 494.9 MB, free: 1.949 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.00114/0.1127, allocations: 0.5531 MB / 495.5 MB, free: 1.344 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.1128, allocations: 8.031 kB / 495.5 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.666e-05/0.1128, allocations: 46.69 kB / 495.5 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.298e-05/0.1129, allocations: 24.8 kB / 495.5 MB, free: 1.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.1133, allocations: 327.8 kB / 495.9 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.1133, allocations: 8.375 kB / 495.9 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.1134, allocations: 12.38 kB / 495.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.1136, allocations: 142.2 kB / 496 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1137, allocations: 7.938 kB / 496 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.1137, allocations: 0 / 496 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1137, allocations: 4 kB / 496 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.1139, allocations: 95.94 kB / 496.1 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009971/0.1149, allocations: 0.6593 MB / 496.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008014/0.1157, allocations: 270.4 kB / 497.1 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.1158, allocations: 81.08 kB / 497.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.1159, allocations: 7.938 kB / 497.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.1159, allocations: 34.56 kB / 497.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.422e-06/0.1159, allocations: 0 / 497.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001078/0.117, allocations: 497.2 kB / 497.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.117, allocations: 59.41 kB / 497.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.1173, allocations: 315.7 kB / 498 MB, free: 14.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.1174, allocations: 33.7 kB / 498.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.538e-05/0.1175, allocations: 124 kB / 498.2 MB, free: 14.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.596e-05/0.1175, allocations: 59.42 kB / 498.2 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.1176, allocations: 37.7 kB / 498.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1177, allocations: 330.8 kB / 498.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.1178, allocations: 63.97 kB / 498.7 MB, free: 13.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.1179, allocations: 85.67 kB / 498.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.1193, allocations: 487.3 kB / 499.2 MB, free: 13.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1194, allocations: 0 / 499.2 MB, free: 13.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005324/0.1199, allocations: 304.4 kB / 499.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1199, allocations: 4 kB / 499.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1199, allocations: 4.031 kB / 499.5 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002306/0.1202, allocations: 53.62 kB / 499.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.1204, allocations: 55.84 kB / 499.6 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.1225, allocations: 2.817 MB / 0.4907 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.1227, allocations: 15.92 kB / 0.4907 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.1228, allocations: 8.156 kB / 0.4907 GB, free: 9.777 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: homogeneous.T[1]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[2]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[3]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[4]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] nonhomogeneous.T[1]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[2]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[3]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (20): * Single equations (assignments): 18 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002323/0.123, allocations: 174.9 kB / 0.4909 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.595e-05/0.1231, allocations: 23.86 kB / 0.4909 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.482e-05/0.1231, allocations: 33.45 kB / 0.4909 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1231, allocations: 0 / 0.4909 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.1232, allocations: 4 kB / 0.4909 GB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1232, allocations: 4 kB / 0.4909 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003318/0.1235, allocations: 285.5 kB / 0.4912 GB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1235, allocations: 3.984 kB / 0.4912 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003008/0.1238, allocations: 47.97 kB / 0.4912 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.124, allocations: 49.62 kB / 0.4913 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.679e-05/0.1241, allocations: 15.92 kB / 0.4913 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001988/0.1261, allocations: 2.817 MB / 0.4941 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1261, allocations: 0 / 0.4941 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005934/0.1267, allocations: 416.9 kB / 0.4945 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.689e-05/0.1268, allocations: 101 kB / 0.4946 GB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.307e-05/0.1268, allocations: 4 kB / 0.4946 GB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.127, allocations: 16.05 kB / 0.4946 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.127, allocations: 11.98 kB / 0.4946 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.127, allocations: 4 kB / 0.4946 GB, free: 5.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.1273, allocations: 245.4 kB / 0.4948 GB, free: 5.172 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1273, allocations: 3.938 kB / 0.4948 GB, free: 5.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003682/0.1277, allocations: 68 kB / 0.4949 GB, free: 5.102 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (homogeneous.T[1],homogeneous.T[2],homogeneous.T[3],homogeneous.T[4],nonhomogeneous.T[1],nonhomogeneous.T[2],nonhomogeneous.T[3]) * 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 (12): * Single equations (assignments): 10 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001042/0.1287, allocations: 0.9832 MB / 0.4959 GB, free: 4.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006586/0.1294, allocations: 432.6 kB / 0.4963 GB, free: 3.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1294, allocations: 0 / 0.4963 GB, free: 3.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.1297, allocations: 313.3 kB / 0.4966 GB, free: 3.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.1301, allocations: 52.17 kB / 0.4966 GB, free: 3.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003707/0.1338, allocations: 3.112 MB / 0.4997 GB, free: 52 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2105/0.3443, allocations: 0.7437 MB / 0.5004 GB, free: 21.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002032/0.3445, allocations: 39.02 kB / 0.5004 GB, free: 21.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.3447, allocations: 56.31 kB / 0.5005 GB, free: 21.38 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3447, allocations: 2.688 kB / 0.5005 GB, free: 21.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03743/0.3821, allocations: 6.418 MB / 0.5067 GB, free: 20.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.328/9.71, allocations: 7.984 kB / 0.5067 GB, free: 20.92 MB / 382.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Containment_elements.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Containment_elements_res.csv --start-time 0 --stop-time 100000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 10 AES_AES_Coursework_ThermSys_component_models_Containment_elements.fmu > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1)