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.001203/0.001203, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001232/0.001232, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.182/1.182, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1658/0.1658, allocations: 22.36 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 55.91 kB / 380.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2141, allocations: 54.94 MB / 435.2 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.002196/0.2164, allocations: 1.99 MB / 437.1 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004378/0.2168, allocations: 243.9 kB / 437.4 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.898e-05/0.2169, allocations: 2.781 kB / 437.4 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.217, allocations: 24.41 kB / 437.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.2173, allocations: 98.33 kB / 437.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.19e-05/0.2174, allocations: 47.25 kB / 437.6 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.2176, allocations: 367.6 kB / 437.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.2177, allocations: 37.34 kB / 437.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.264e-05/0.2178, allocations: 93.23 kB / 438 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.2179, allocations: 127.6 kB / 438.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.2179, allocations: 10.56 kB / 438.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.2181, allocations: 61.09 kB / 438.2 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.738e-05/0.2181, allocations: 77.92 kB / 438.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.056e-05/0.2182, allocations: 93.91 kB / 438.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.2184, allocations: 264.1 kB / 438.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2184, allocations: 0 / 438.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.2184, allocations: 0 / 438.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.2184, allocations: 0 / 438.7 MB, free: 37.44 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007937/0.2192, allocations: 0.5485 MB / 439.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.2193, allocations: 15.91 kB / 439.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.063e-05/0.2193, allocations: 40.95 kB / 439.3 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.182e-05/0.2193, allocations: 16.81 kB / 439.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002279/0.2196, allocations: 329.1 kB / 439.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.2196, allocations: 7.188 kB / 439.6 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.2196, allocations: 12.31 kB / 439.6 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.2198, allocations: 139.5 kB / 439.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.2198, allocations: 3.938 kB / 439.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.2199, allocations: 10.52 kB / 439.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2199, allocations: 2.5 kB / 439.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.22, allocations: 107.8 kB / 439.9 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006888/0.2207, allocations: 0.6664 MB / 440.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006917/0.2214, allocations: 264.2 kB / 440.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.2215, allocations: 81.72 kB / 440.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.2216, allocations: 6.844 kB / 440.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.05e-05/0.2216, allocations: 34.5 kB / 440.9 MB, free: 35.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.2216, allocations: 0 / 440.9 MB, free: 35.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008287/0.2224, allocations: 0.4935 MB / 441.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.827e-05/0.2224, allocations: 51.41 kB / 441.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.2227, allocations: 317 kB / 441.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.2227, allocations: 25.7 kB / 441.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.2227, allocations: 123.6 kB / 441.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.255e-05/0.2228, allocations: 57.94 kB / 442 MB, free: 35.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/0.2228, allocations: 40.14 kB / 442 MB, free: 35.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.982e-05/0.2229, allocations: 328.5 kB / 442.3 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-05/0.223, allocations: 68.75 kB / 442.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.493e-05/0.2231, allocations: 93.14 kB / 442.5 MB, free: 34.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.2243, allocations: 475.6 kB / 443 MB, free: 34.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2243, allocations: 8 kB / 443 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004426/0.2248, allocations: 300.3 kB / 443.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.2248, allocations: 7.094 kB / 443.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.2248, allocations: 3.281 kB / 443.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001832/0.225, allocations: 56.28 kB / 443.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.2252, allocations: 56.8 kB / 443.4 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.2264, allocations: 2.62 MB / 446 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.2265, allocations: 21 kB / 446 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.2266, allocations: 9.281 kB / 446 MB, free: 31.73 MB / 350.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.0001506/0.2267, allocations: 169.4 kB / 446.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.327e-05/0.2268, allocations: 16.47 kB / 446.2 MB, free: 31.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.726e-05/0.2268, allocations: 30.52 kB / 446.2 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2268, allocations: 4 kB / 446.2 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2268, allocations: 2.844 kB / 446.2 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2268, allocations: 0 / 446.2 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.2271, allocations: 298.6 kB / 446.5 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2271, allocations: 0 / 446.5 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.2274, allocations: 49.62 kB / 446.6 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001467/0.2275, allocations: 52.89 kB / 446.6 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.2275, allocations: 13.92 kB / 446.7 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.2287, allocations: 2.605 MB / 449.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2287, allocations: 0 / 449.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/0.2291, allocations: 426.2 kB / 449.7 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.2292, allocations: 101.8 kB / 449.8 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.363e-05/0.2292, allocations: 5.406 kB / 449.8 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.2294, allocations: 10.2 kB / 449.8 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.2294, allocations: 13.16 kB / 449.8 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.2295, allocations: 10.02 kB / 449.8 MB, free: 28.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000152/0.2296, allocations: 243.8 kB / 450.1 MB, free: 28.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2296, allocations: 0 / 450.1 MB, free: 28.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003113/0.2299, allocations: 81.69 kB / 450.1 MB, free: 28.12 MB / 350.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.0006435/0.2306, allocations: 0.9601 MB / 451.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004404/0.231, allocations: 415.3 kB / 451.5 MB, free: 27.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.231, allocations: 0 / 451.5 MB, free: 27.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.2313, allocations: 324.1 kB / 451.8 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.2317, allocations: 51.39 kB / 451.9 MB, free: 26.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.2345, allocations: 3.163 MB / 455 MB, free: 24.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.2347, allocations: 0.742 MB / 455.8 MB, free: 23.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.2348, allocations: 41.41 kB / 455.8 MB, free: 23.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.325e-05/0.2349, allocations: 56.7 kB / 455.9 MB, free: 23.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2349, allocations: 0 / 455.9 MB, free: 23.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04227/0.2772, allocations: 6.027 MB / 461.9 MB, free: 23.47 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001387/0.2774, allocations: 220.2 kB / 462.1 MB, free: 23.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.667/1.944, allocations: 3.938 kB / 462.1 MB, free: 23.21 MB / 350.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)