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.0009209/0.0009208, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.0008982/0.0008981, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.223/0.223, allocations: 22.33 MB / 313.3 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.0003059, allocations: 8 kB / 381.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3136, allocations: 55.98 MB / 437.9 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.001503/0.3152, allocations: 1.525 MB / 439.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004193/0.3156, allocations: 245 kB / 439.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.009e-05/0.3157, allocations: 7.031 kB / 439.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.3159, allocations: 22.27 kB / 439.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002552/0.3161, allocations: 79.56 kB / 439.8 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.509e-05/0.3162, allocations: 30.94 kB / 439.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001774/0.3164, allocations: 162.1 kB / 439.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.3165, allocations: 43.7 kB / 440 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.477e-05/0.3166, allocations: 67.88 kB / 440.1 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.3167, allocations: 94.28 kB / 440.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.3168, allocations: 7.938 kB / 440.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.3169, allocations: 54.78 kB / 440.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.845e-05/0.3169, allocations: 64.02 kB / 440.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.829e-05/0.317, allocations: 54.83 kB / 440.3 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.3172, allocations: 201.9 kB / 440.5 MB, free: 37.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.3172, allocations: 0 / 440.5 MB, free: 37.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3172, allocations: 4 kB / 440.5 MB, free: 37.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.3172, allocations: 0 / 440.5 MB, free: 37.56 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.0008309/0.318, allocations: 0.5205 MB / 441 MB, free: 37.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3181, allocations: 7.594 kB / 441.1 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.15e-05/0.3181, allocations: 51.75 kB / 441.1 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.292e-05/0.3182, allocations: 20.16 kB / 441.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002885/0.3185, allocations: 309.3 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.3185, allocations: 10.44 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.3185, allocations: 9.375 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.3187, allocations: 151.7 kB / 441.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3187, allocations: 3.953 kB / 441.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.3188, allocations: 4 kB / 441.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.3188, allocations: 2.625 kB / 441.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.3189, allocations: 102.8 kB / 441.7 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007722/0.3197, allocations: 0.67 MB / 442.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00067/0.3204, allocations: 261.3 kB / 442.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.3204, allocations: 0 / 442.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/0.3204, allocations: 37.06 kB / 442.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 9.92e-07/0.3204, allocations: 0 / 442.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001168/0.3216, allocations: 0.4956 MB / 443.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.3217, allocations: 58.22 kB / 443.2 MB, free: 35.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.3219, allocations: 317.7 kB / 443.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.3219, allocations: 29.7 kB / 443.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.322, allocations: 122.9 kB / 443.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.424e-05/0.322, allocations: 53.08 kB / 443.7 MB, free: 35.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/0.3221, allocations: 4 kB / 443.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.701e-05/0.3221, allocations: 331.2 kB / 444.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.191e-05/0.3222, allocations: 70.47 kB / 444.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.3223, allocations: 98.91 kB / 444.2 MB, free: 34.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.3225, allocations: 86.7 kB / 444.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3225, allocations: 0 / 444.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006155/0.3231, allocations: 308.8 kB / 444.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3231, allocations: 5.938 kB / 444.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3231, allocations: 0 / 444.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002889/0.3234, allocations: 49.58 kB / 444.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.3237, allocations: 56.17 kB / 444.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.3251, allocations: 2.62 MB / 447.3 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.3252, allocations: 23.28 kB / 447.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.3253, allocations: 3.188 kB / 447.4 MB, free: 32.04 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: nonhomogeneous.T[3]: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[1]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] homogeneous.T[4]: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[2]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[1]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002386/0.3255, allocations: 183.9 kB / 447.5 MB, free: 31.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.3256, allocations: 17.59 kB / 447.6 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.316e-05/0.3256, allocations: 30.14 kB / 447.6 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3256, allocations: 2.688 kB / 447.6 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3257, allocations: 0 / 447.6 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3257, allocations: 0 / 447.6 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/0.3259, allocations: 301.7 kB / 447.9 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3259, allocations: 0 / 447.9 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.3262, allocations: 52.5 kB / 447.9 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.3264, allocations: 53.3 kB / 448 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.3264, allocations: 3 kB / 448 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.3277, allocations: 2.627 MB / 450.6 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.3278, allocations: 3.938 kB / 450.6 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005236/0.3283, allocations: 420.8 kB / 451 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.682e-05/0.3284, allocations: 102.8 kB / 451.1 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.852e-05/0.3284, allocations: 14.34 kB / 451.1 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.3286, allocations: 9.781 kB / 451.2 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.3286, allocations: 13.47 kB / 451.2 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.3286, allocations: 7.203 kB / 451.2 MB, free: 28.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001732/0.3288, allocations: 241.2 kB / 451.4 MB, free: 28.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3288, allocations: 0 / 451.4 MB, free: 28.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.3293, allocations: 72.11 kB / 451.5 MB, free: 28.43 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007462/0.33, allocations: 0.9621 MB / 452.4 MB, free: 27.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005279/0.3306, allocations: 425.5 kB / 452.9 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3306, allocations: 0 / 452.9 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.3309, allocations: 321.9 kB / 453.2 MB, free: 27.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3312, allocations: 50.89 kB / 453.2 MB, free: 27.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.3341, allocations: 2.301 MB / 455.5 MB, free: 25.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.3343, allocations: 0.7541 MB / 456.3 MB, free: 25.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.3344, allocations: 39.17 kB / 456.3 MB, free: 25.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.679e-05/0.3345, allocations: 54.95 kB / 456.4 MB, free: 25 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3345, allocations: 0 / 456.4 MB, free: 25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.3519, allocations: 5.874 MB / 462.2 MB, free: 24.62 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/0.3521, allocations: 201.4 kB / 462.4 MB, free: 24.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/2.015, allocations: 0 / 462.4 MB, free: 24.38 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/linux/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) Environment - environmentSimulation: