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.008281/0.008281, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.00192/0.00192, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08876/0.08876, allocations: 22.33 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 67.88 kB / 436.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1036, allocations: 54.96 MB / 491.5 MB, free: 5.277 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.002925/0.1066, allocations: 1.914 MB / 493.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005745/0.1072, allocations: 255.3 kB / 493.7 MB, free: 3.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.992e-05/0.1073, allocations: 0 / 493.7 MB, free: 3.098 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.1075, allocations: 19.8 kB / 493.7 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000395/0.1079, allocations: 107.5 kB / 493.8 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001293/0.108, allocations: 55.86 kB / 493.9 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002887/0.1083, allocations: 267.1 kB / 494.1 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.1084, allocations: 49.11 kB / 494.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.1086, allocations: 99.69 kB / 494.3 MB, free: 2.512 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.1088, allocations: 123.6 kB / 494.4 MB, free: 2.391 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.1088, allocations: 16 kB / 494.4 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.109, allocations: 67.94 kB / 494.5 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.437e-05/0.1091, allocations: 83.77 kB / 494.5 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.1092, allocations: 107.5 kB / 494.6 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.1096, allocations: 271 kB / 494.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.155e-06/0.1096, allocations: 0 / 494.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1096, allocations: 0 / 494.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1096, allocations: 0 / 494.9 MB, free: 1.855 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.001048/0.1106, allocations: 0.5492 MB / 495.5 MB, free: 1.254 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1107, allocations: 12.03 kB / 495.5 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.613e-05/0.1107, allocations: 50.67 kB / 495.5 MB, free: 1.184 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.1108, allocations: 20.8 kB / 495.5 MB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00036/0.1112, allocations: 331.8 kB / 495.9 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.1112, allocations: 8.375 kB / 495.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.817e-05/0.1112, allocations: 8.375 kB / 495.9 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.1115, allocations: 143.7 kB / 496 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1115, allocations: 7.875 kB / 496 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.1115, allocations: 7.984 kB / 496 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1116, allocations: 7.984 kB / 496 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.1117, allocations: 95.95 kB / 496.1 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009561/0.1127, allocations: 0.6631 MB / 496.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007953/0.1135, allocations: 254.4 kB / 497.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.1137, allocations: 89.06 kB / 497.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.1137, allocations: 4 kB / 497.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.1137, allocations: 42.56 kB / 497.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.1137, allocations: 0 / 497.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001023/0.1147, allocations: 0.4895 MB / 497.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.1148, allocations: 51.41 kB / 497.7 MB, free: 14.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.1151, allocations: 315.8 kB / 498 MB, free: 14.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.1151, allocations: 29.7 kB / 498.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.619e-05/0.1152, allocations: 124 kB / 498.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.011e-05/0.1153, allocations: 59.48 kB / 498.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.651e-05/0.1154, allocations: 37.7 kB / 498.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1155, allocations: 330.8 kB / 498.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.1156, allocations: 75.89 kB / 498.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.1157, allocations: 81.67 kB / 498.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.1171, allocations: 474.8 kB / 499.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1172, allocations: 0 / 499.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005407/0.1177, allocations: 308.8 kB / 499.5 MB, free: 12.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.1177, allocations: 8 kB / 499.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1177, allocations: 0 / 499.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002159/0.118, allocations: 57.55 kB / 499.6 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.1182, allocations: 56 kB / 499.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002006/0.1202, allocations: 2.802 MB / 0.4907 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.1204, allocations: 27.84 kB / 0.4907 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.1204, allocations: 4 kB / 0.4907 GB, free: 9.684 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.0002247/0.1207, allocations: 182.9 kB / 0.4909 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/0.1207, allocations: 23.86 kB / 0.4909 GB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.338e-05/0.1208, allocations: 29.47 kB / 0.4909 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.1208, allocations: 7.938 kB / 0.4909 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1208, allocations: 3.938 kB / 0.4909 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1208, allocations: 3.984 kB / 0.4909 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003068/0.1211, allocations: 285.5 kB / 0.4912 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1212, allocations: 0 / 0.4912 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/0.1215, allocations: 47.97 kB / 0.4913 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001828/0.1217, allocations: 57.67 kB / 0.4913 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.1217, allocations: 7.938 kB / 0.4913 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.1236, allocations: 2.817 MB / 0.4941 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1236, allocations: 0 / 0.4941 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005984/0.1242, allocations: 413 kB / 0.4945 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.72e-05/0.1243, allocations: 108.9 kB / 0.4946 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.297e-05/0.1243, allocations: 11.98 kB / 0.4946 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.1245, allocations: 8 kB / 0.4946 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/0.1246, allocations: 7.984 kB / 0.4946 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.1246, allocations: 11.98 kB / 0.4946 GB, free: 5.301 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.1248, allocations: 241.4 kB / 0.4948 GB, free: 5.066 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1248, allocations: 0 / 0.4948 GB, free: 5.066 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003729/0.1252, allocations: 76 kB / 0.4949 GB, free: 4.992 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.0009181/0.1261, allocations: 0.9694 MB / 0.4959 GB, free: 3.988 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000603/0.1267, allocations: 433 kB / 0.4963 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1267, allocations: 0 / 0.4963 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.1271, allocations: 313.3 kB / 0.4966 GB, free: 3.211 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.1275, allocations: 54.2 kB / 0.4966 GB, free: 3.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2058/0.3333, allocations: 3.112 MB / 0.4997 GB, free: 22.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.3336, allocations: 0.7489 MB / 0.5004 GB, free: 21.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002165/0.3338, allocations: 39.78 kB / 0.5004 GB, free: 21.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.334, allocations: 57.11 kB / 0.5005 GB, free: 21.85 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.334, allocations: 0 / 0.5005 GB, free: 21.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02944/0.3634, allocations: 6.41 MB / 0.5067 GB, free: 21.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.625/9.988, allocations: 6.641 kB / 0.5067 GB, free: 21.4 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)