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.005446/0.005446, allocations: 101.5 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.00111/0.00111, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09279/0.09279, allocations: 22.32 MB / 312.9 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 67.89 kB / 436.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1017, allocations: 54.96 MB / 491.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.002915/0.1046, allocations: 1.921 MB / 493.4 MB, free: 3.285 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005891/0.1052, allocations: 247.3 kB / 493.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.906e-05/0.1053, allocations: 4 kB / 493.7 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.1055, allocations: 23.78 kB / 493.7 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003737/0.1059, allocations: 115.4 kB / 493.8 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001224/0.106, allocations: 51.92 kB / 493.8 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003023/0.1064, allocations: 263.1 kB / 494.1 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.1065, allocations: 49.31 kB / 494.2 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.1067, allocations: 99.69 kB / 494.3 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.1069, allocations: 127.6 kB / 494.4 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.507e-05/0.107, allocations: 19.98 kB / 494.4 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.1071, allocations: 63.95 kB / 494.5 MB, free: 2.242 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.82e-05/0.1072, allocations: 75.78 kB / 494.5 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.1074, allocations: 111.5 kB / 494.6 MB, free: 2.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.1077, allocations: 275.2 kB / 494.9 MB, free: 1.789 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1077, allocations: 0 / 494.9 MB, free: 1.789 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1077, allocations: 0 / 494.9 MB, free: 1.789 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1077, allocations: 0 / 494.9 MB, free: 1.789 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.001174/0.1089, allocations: 0.5493 MB / 495.5 MB, free: 1.188 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.109, allocations: 12.03 kB / 495.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.409e-05/0.109, allocations: 42.75 kB / 495.5 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.173e-05/0.1091, allocations: 20.75 kB / 495.5 MB, free: 1.105 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.1094, allocations: 331.6 kB / 495.9 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.1095, allocations: 4.375 kB / 495.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.192e-05/0.1095, allocations: 8.375 kB / 495.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.1097, allocations: 144.2 kB / 496 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1098, allocations: 11.86 kB / 496 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.1098, allocations: 8 kB / 496 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1098, allocations: 0 / 496 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.11, allocations: 103.9 kB / 496.1 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009369/0.1109, allocations: 0.6592 MB / 496.8 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008087/0.1117, allocations: 254.4 kB / 497 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.1119, allocations: 92.75 kB / 497.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.1119, allocations: 0 / 497.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.1119, allocations: 34.56 kB / 497.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.1119, allocations: 0 / 497.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001076/0.113, allocations: 0.4935 MB / 497.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.1131, allocations: 55.41 kB / 497.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003373/0.1134, allocations: 315.7 kB / 498 MB, free: 14.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.1135, allocations: 29.7 kB / 498 MB, free: 14.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.909e-05/0.1136, allocations: 120 kB / 498.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.301e-05/0.1136, allocations: 55.17 kB / 498.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.351e-05/0.1137, allocations: 41.7 kB / 498.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1139, allocations: 334.8 kB / 498.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.114, allocations: 67.91 kB / 498.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1141, allocations: 88.86 kB / 498.7 MB, free: 13.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.1156, allocations: 473.3 kB / 499.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1156, allocations: 4 kB / 499.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005675/0.1162, allocations: 308.3 kB / 499.5 MB, free: 12.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1162, allocations: 4 kB / 499.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1162, allocations: 0 / 499.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002415/0.1165, allocations: 53.66 kB / 499.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.1167, allocations: 55.91 kB / 499.6 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002029/0.1188, allocations: 2.809 MB / 0.4907 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.1189, allocations: 23.81 kB / 0.4907 GB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.119, allocations: 4 kB / 0.4907 GB, free: 9.633 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.0002469/0.1192, allocations: 174.6 kB / 0.4908 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.498e-05/0.1193, allocations: 15.81 kB / 0.4909 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.046e-05/0.1194, allocations: 37.45 kB / 0.4909 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.1194, allocations: 3.938 kB / 0.4909 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1194, allocations: 0 / 0.4909 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1194, allocations: 0 / 0.4909 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003265/0.1197, allocations: 301.3 kB / 0.4912 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1197, allocations: 0 / 0.4912 GB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.12, allocations: 51.97 kB / 0.4912 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001763/0.1202, allocations: 49.62 kB / 0.4913 GB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.1203, allocations: 15.92 kB / 0.4913 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001829/0.1221, allocations: 2.801 MB / 0.494 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.1221, allocations: 8.016 kB / 0.494 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005989/0.1227, allocations: 420.9 kB / 0.4944 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/0.1228, allocations: 100.8 kB / 0.4945 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.1228, allocations: 8 kB / 0.4945 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.123, allocations: 11.98 kB / 0.4946 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.327e-05/0.123, allocations: 7.984 kB / 0.4946 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.1231, allocations: 4 kB / 0.4946 GB, free: 5.266 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002404/0.1233, allocations: 249.4 kB / 0.4948 GB, free: 5.023 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1233, allocations: 3.938 kB / 0.4948 GB, free: 5.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003701/0.1237, allocations: 72 kB / 0.4949 GB, free: 4.949 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.0009075/0.1246, allocations: 0.9644 MB / 0.4958 GB, free: 3.953 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005946/0.1252, allocations: 429.1 kB / 0.4962 GB, free: 3.508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1252, allocations: 0 / 0.4962 GB, free: 3.508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003311/0.1256, allocations: 321.4 kB / 0.4965 GB, free: 3.168 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.1259, allocations: 59.16 kB / 0.4966 GB, free: 3.113 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2117/0.3376, allocations: 3.104 MB / 0.4996 GB, free: 21.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.338, allocations: 0.7395 MB / 0.5003 GB, free: 20.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002034/0.3382, allocations: 40.2 kB / 0.5004 GB, free: 20.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.3383, allocations: 55.73 kB / 0.5004 GB, free: 20.92 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3383, allocations: 0 / 0.5004 GB, free: 20.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.3715, allocations: 6.403 MB / 0.5067 GB, free: 20.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.017/9.389, allocations: 10.72 kB / 0.5067 GB, free: 20.45 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Containment_elements_fmu --startTime=0 --stopTime=100000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Containment_elements.fmu > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1)