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.001025/0.001025, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009804/0.0009804, allocations: 189.7 kB / 16.25 MB, free: 6.633 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.19/1.19, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.178/0.178, allocations: 22.36 MB / 312.4 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.91 kB / 380.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2175, allocations: 54.93 MB / 435.4 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.002235/0.2198, allocations: 1.979 MB / 437.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004534/0.2203, allocations: 246 kB / 437.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.727e-05/0.2203, allocations: 2.625 kB / 437.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.2205, allocations: 20.58 kB / 437.6 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.2208, allocations: 102.9 kB / 437.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.838e-05/0.2209, allocations: 38.56 kB / 437.7 MB, free: 38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.2211, allocations: 270 kB / 438 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.2213, allocations: 56.16 kB / 438.1 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.058e-05/0.2213, allocations: 95.88 kB / 438.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.2215, allocations: 136.7 kB / 438.3 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.2215, allocations: 17.44 kB / 438.3 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.2216, allocations: 72.56 kB / 438.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.115e-05/0.2217, allocations: 78.2 kB / 438.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.06e-05/0.2218, allocations: 106.6 kB / 438.5 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.222, allocations: 272.6 kB / 438.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.222, allocations: 0 / 438.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.222, allocations: 0 / 438.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.222, allocations: 0 / 438.8 MB, free: 37.58 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.0008502/0.2229, allocations: 0.5477 MB / 439.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2229, allocations: 8.531 kB / 439.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.282e-05/0.223, allocations: 43.84 kB / 439.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.519e-05/0.223, allocations: 21.09 kB / 439.4 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.2233, allocations: 322.5 kB / 439.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-06/0.2233, allocations: 3.281 kB / 439.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.2233, allocations: 12.88 kB / 439.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.2235, allocations: 140.6 kB / 439.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2236, allocations: 3.938 kB / 439.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.2236, allocations: 4 kB / 439.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2236, allocations: 2.875 kB / 439.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.2237, allocations: 109.1 kB / 440 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007178/0.2245, allocations: 0.6612 MB / 440.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007464/0.2252, allocations: 259.7 kB / 440.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.2253, allocations: 82.72 kB / 441 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.2254, allocations: 10.81 kB / 441 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.391e-05/0.2254, allocations: 34.56 kB / 441.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.953e-06/0.2254, allocations: 3.984 kB / 441.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008891/0.2263, allocations: 0.4985 MB / 441.6 MB, free: 35.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.379e-05/0.2263, allocations: 54.69 kB / 441.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.2266, allocations: 314.8 kB / 441.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.2266, allocations: 32.98 kB / 442 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.2267, allocations: 121.9 kB / 442.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.74e-05/0.2267, allocations: 55.34 kB / 442.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.2268, allocations: 43.31 kB / 442.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.459e-05/0.2268, allocations: 329.4 kB / 442.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.938e-05/0.2269, allocations: 67.48 kB / 442.6 MB, free: 34.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.688e-05/0.227, allocations: 90.59 kB / 442.6 MB, free: 34.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.2283, allocations: 478.9 kB / 443.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2283, allocations: 0 / 443.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004491/0.2288, allocations: 310 kB / 443.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.2288, allocations: 5.719 kB / 443.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2288, allocations: 0 / 443.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/0.229, allocations: 48.05 kB / 443.5 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.2292, allocations: 60.7 kB / 443.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.2305, allocations: 2.815 MB / 446.3 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.2307, allocations: 17.28 kB / 446.4 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.2307, allocations: 9.562 kB / 446.4 MB, free: 31.68 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.0001731/0.2309, allocations: 169.6 kB / 446.5 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.331e-05/0.2309, allocations: 16.62 kB / 446.5 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.237e-05/0.231, allocations: 35.75 kB / 446.6 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.231, allocations: 3.281 kB / 446.6 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.231, allocations: 3.188 kB / 446.6 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.231, allocations: 0 / 446.6 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002294/0.2313, allocations: 290.6 kB / 446.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2313, allocations: 2.875 kB / 446.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.2316, allocations: 52.58 kB / 446.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001458/0.2317, allocations: 51.88 kB / 447 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.2317, allocations: 6.75 kB / 447 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.2329, allocations: 2.818 MB / 449.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2329, allocations: 3.938 kB / 449.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004626/0.2334, allocations: 419.3 kB / 450.2 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.2334, allocations: 98.25 kB / 450.3 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.2335, allocations: 10.62 kB / 450.3 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.2336, allocations: 6.25 kB / 450.3 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.2337, allocations: 17.11 kB / 450.3 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.2337, allocations: 2.656 kB / 450.3 MB, free: 28.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000151/0.2338, allocations: 245.6 kB / 450.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2339, allocations: 0 / 450.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003233/0.2342, allocations: 89.12 kB / 450.7 MB, free: 27.88 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.0006519/0.2348, allocations: 0.9533 MB / 451.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004595/0.2353, allocations: 437 kB / 452.1 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2353, allocations: 0 / 452.1 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.2356, allocations: 319.3 kB / 452.4 MB, free: 26.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.2359, allocations: 53.95 kB / 452.4 MB, free: 26.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.2387, allocations: 3.15 MB / 455.6 MB, free: 24.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.2388, allocations: 0.7436 MB / 456.3 MB, free: 23.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.239, allocations: 41.69 kB / 456.4 MB, free: 23.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.109e-05/0.239, allocations: 56.28 kB / 456.4 MB, free: 23.69 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.239, allocations: 3.938 kB / 456.4 MB, free: 23.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04013/0.2792, allocations: 6.238 MB / 462.7 MB, free: 23.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/0.2794, allocations: 226.9 kB / 462.9 MB, free: 22.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/2.001, allocations: 1.062 kB / 462.9 MB, free: 22.95 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)