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.00619/0.00619, allocations: 102.2 kB / 15.73 MB, free: 6.062 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.001124/0.001124, allocations: 192 kB / 16.67 MB, free: 5.98 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.322/1.322, 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.08956/0.08956, allocations: 22.33 MB / 312.9 MB, free: 8.852 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 71.88 kB / 436.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1067, allocations: 54.95 MB / 491.5 MB, free: 5.188 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.003136/0.1099, allocations: 1.924 MB / 493.4 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006459/0.1106, allocations: 239.3 kB / 493.7 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.577e-05/0.1107, allocations: 4 kB / 493.7 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001954/0.1109, allocations: 23.78 kB / 493.7 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004865/0.1114, allocations: 115.4 kB / 493.8 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000153/0.1116, allocations: 51.91 kB / 493.8 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003761/0.112, allocations: 267.1 kB / 494.1 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.1121, allocations: 49.31 kB / 494.2 MB, free: 2.516 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.1123, allocations: 99.69 kB / 494.3 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.1126, allocations: 127.6 kB / 494.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.112e-05/0.1126, allocations: 23.88 kB / 494.4 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.1128, allocations: 67.94 kB / 494.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.1129, allocations: 71.84 kB / 494.5 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.1131, allocations: 107.5 kB / 494.6 MB, free: 2.027 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003413/0.1134, allocations: 271.2 kB / 494.9 MB, free: 1.762 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1134, allocations: 0 / 494.9 MB, free: 1.762 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1134, allocations: 4 kB / 494.9 MB, free: 1.758 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.1135, allocations: 0 / 494.9 MB, free: 1.758 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.001253/0.1147, allocations: 0.5493 MB / 495.5 MB, free: 1.156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1148, allocations: 15.97 kB / 495.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.455e-05/0.1148, allocations: 42.73 kB / 495.5 MB, free: 1.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.1149, allocations: 16.75 kB / 495.5 MB, free: 1.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.1153, allocations: 335.7 kB / 495.9 MB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.1153, allocations: 8.375 kB / 495.9 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.439e-05/0.1154, allocations: 12.38 kB / 495.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002377/0.1156, allocations: 142.2 kB / 496 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1156, allocations: 3.938 kB / 496 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.1157, allocations: 8 kB / 496 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1157, allocations: 0 / 496 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.1158, allocations: 99.95 kB / 496.1 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009773/0.1168, allocations: 0.6591 MB / 496.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007741/0.1176, allocations: 258.4 kB / 497 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.1178, allocations: 88.75 kB / 497.1 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.1178, allocations: 4 kB / 497.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.1178, allocations: 30.56 kB / 497.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.1178, allocations: 0 / 497.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001118/0.119, allocations: 0.4974 MB / 497.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.119, allocations: 55.41 kB / 497.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.1194, allocations: 311.8 kB / 498 MB, free: 14.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.1194, allocations: 25.7 kB / 498 MB, free: 14.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.429e-05/0.1195, allocations: 128 kB / 498.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.145e-05/0.1196, allocations: 59.25 kB / 498.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-05/0.1196, allocations: 33.7 kB / 498.3 MB, free: 14.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1198, allocations: 326.8 kB / 498.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.1199, allocations: 75.89 kB / 498.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.12, allocations: 89.67 kB / 498.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.1214, allocations: 476.2 kB / 499.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1215, allocations: 0 / 499.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005434/0.122, allocations: 307 kB / 499.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.122, allocations: 4 kB / 499.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.1221, allocations: 3.938 kB / 499.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002378/0.1223, allocations: 57.59 kB / 499.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.1225, allocations: 55.91 kB / 499.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002075/0.1246, allocations: 2.805 MB / 0.4907 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.1248, allocations: 23.83 kB / 0.4907 GB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.1248, allocations: 4 kB / 0.4907 GB, free: 9.598 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.0002325/0.1251, allocations: 178.5 kB / 0.4909 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.93e-05/0.1251, allocations: 15.81 kB / 0.4909 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.098e-05/0.1252, allocations: 29.47 kB / 0.4909 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1252, allocations: 4 kB / 0.4909 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1252, allocations: 3.984 kB / 0.4909 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.1252, allocations: 0 / 0.4909 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000306/0.1255, allocations: 289.3 kB / 0.4912 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1255, allocations: 11.98 kB / 0.4912 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.1259, allocations: 51.97 kB / 0.4912 GB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/0.126, allocations: 45.62 kB / 0.4913 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.1261, allocations: 11.94 kB / 0.4913 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/0.128, allocations: 2.813 MB / 0.494 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1281, allocations: 0 / 0.494 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005917/0.1287, allocations: 423.2 kB / 0.4944 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.463e-05/0.1287, allocations: 104.8 kB / 0.4945 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.1288, allocations: 8 kB / 0.4946 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.129, allocations: 7.984 kB / 0.4946 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.129, allocations: 11.98 kB / 0.4946 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.129, allocations: 8 kB / 0.4946 GB, free: 5.227 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002245/0.1293, allocations: 241.4 kB / 0.4948 GB, free: 4.992 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1293, allocations: 3.938 kB / 0.4948 GB, free: 4.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003523/0.1296, allocations: 68 kB / 0.4949 GB, free: 4.922 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.000929/0.1306, allocations: 0.9637 MB / 0.4958 GB, free: 3.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006393/0.1312, allocations: 429.1 kB / 0.4962 GB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1312, allocations: 0 / 0.4962 GB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003452/0.1316, allocations: 317.4 kB / 0.4965 GB, free: 3.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.132, allocations: 46.14 kB / 0.4966 GB, free: 3.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2044/0.3364, allocations: 3.12 MB / 0.4996 GB, free: 21.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.3366, allocations: 0.74 MB / 0.5003 GB, free: 20.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.3368, allocations: 37.88 kB / 0.5004 GB, free: 20.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.3369, allocations: 56.58 kB / 0.5004 GB, free: 20.62 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3369, allocations: 0.6562 kB / 0.5004 GB, free: 20.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02961/0.3666, allocations: 6.353 MB / 0.5066 GB, free: 20.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.934/9.3, allocations: 10.36 kB / 0.5067 GB, free: 20.19 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)