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.001011/0.001011, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001206/0.001206, allocations: 168.7 kB / 15.95 MB, free: 204 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.434/1.434, allocations: 223.2 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2379/0.2379, allocations: 22.35 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000328/0.0003281, allocations: 8 kB / 382 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3736, allocations: 55.98 MB / 438 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.002039/0.3757, allocations: 1.598 MB / 439.6 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005489/0.3763, allocations: 232.9 kB / 439.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.51e-05/0.3763, allocations: 7.062 kB / 439.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.3765, allocations: 13.25 kB / 439.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003396/0.3769, allocations: 105.1 kB / 440 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.818e-05/0.377, allocations: 38.25 kB / 440 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.3772, allocations: 308.4 kB / 440.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.3774, allocations: 37.41 kB / 440.3 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.14e-05/0.3775, allocations: 85.91 kB / 440.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.3776, allocations: 125 kB / 440.6 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.3777, allocations: 8.656 kB / 440.6 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.3778, allocations: 59.12 kB / 440.6 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.166e-05/0.3779, allocations: 68.86 kB / 440.7 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.89e-05/0.3779, allocations: 58.27 kB / 440.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001886/0.3781, allocations: 201.3 kB / 440.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3781, allocations: 0 / 440.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3782, allocations: 0 / 440.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3782, allocations: 0 / 440.9 MB, free: 37.42 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.0008191/0.379, allocations: 0.5247 MB / 441.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.379, allocations: 9.031 kB / 441.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.3791, allocations: 40.69 kB / 441.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.119e-05/0.3791, allocations: 20.56 kB / 441.5 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.3795, allocations: 321.9 kB / 441.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.3795, allocations: 5.75 kB / 441.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.3795, allocations: 10 kB / 441.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.3798, allocations: 142.2 kB / 442 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3798, allocations: 3.953 kB / 442 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.3798, allocations: 10.94 kB / 442 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3798, allocations: 6.984 kB / 442 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.38, allocations: 104.5 kB / 442.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008589/0.3809, allocations: 0.6631 MB / 442.8 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007164/0.3816, allocations: 256.1 kB / 443 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.3817, allocations: 82.86 kB / 443.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.3818, allocations: 0 / 443.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.3818, allocations: 41.25 kB / 443.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.3818, allocations: 0 / 443.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000926/0.3827, allocations: 0.4969 MB / 443.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/0.3828, allocations: 58.16 kB / 443.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/0.383, allocations: 319.9 kB / 444 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.3831, allocations: 29.7 kB / 444.1 MB, free: 35.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.063e-05/0.3831, allocations: 119.6 kB / 444.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.407e-05/0.3832, allocations: 58.62 kB / 444.2 MB, free: 35.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.346e-05/0.3832, allocations: 7.938 kB / 444.2 MB, free: 35.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.823e-05/0.3833, allocations: 330.8 kB / 444.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.608e-05/0.3834, allocations: 64.27 kB / 444.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.3835, allocations: 97.58 kB / 444.7 MB, free: 34.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.3836, allocations: 87.48 kB / 444.8 MB, free: 34.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3836, allocations: 0 / 444.8 MB, free: 34.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004546/0.3841, allocations: 306.9 kB / 445.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3841, allocations: 5.125 kB / 445.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3841, allocations: 0 / 445.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.3844, allocations: 55.39 kB / 445.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.3846, allocations: 53.38 kB / 445.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.3861, allocations: 2.623 MB / 447.8 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.3863, allocations: 20.73 kB / 447.9 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.3863, allocations: 6.094 kB / 447.9 MB, free: 31.87 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.0002304/0.3866, allocations: 179 kB / 448 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/0.3866, allocations: 16.47 kB / 448.1 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.642e-05/0.3867, allocations: 30.16 kB / 448.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3867, allocations: 0 / 448.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3867, allocations: 3 kB / 448.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3867, allocations: 0 / 448.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.387, allocations: 296.2 kB / 448.4 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.387, allocations: 0 / 448.4 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.3873, allocations: 56.16 kB / 448.4 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001531/0.3875, allocations: 49.16 kB / 448.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.3875, allocations: 5.984 kB / 448.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.3889, allocations: 2.615 MB / 451.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3889, allocations: 0 / 451.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005482/0.3894, allocations: 416.5 kB / 451.5 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.081e-05/0.3895, allocations: 98.48 kB / 451.6 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.3896, allocations: 14.5 kB / 451.6 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.3897, allocations: 6.281 kB / 451.6 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.047e-05/0.3898, allocations: 26.38 kB / 451.6 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.3898, allocations: 3 kB / 451.7 MB, free: 28.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.39, allocations: 240.5 kB / 451.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.39, allocations: 0 / 451.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004066/0.3904, allocations: 71.91 kB / 452 MB, free: 28.27 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.0008504/0.3913, allocations: 0.9661 MB / 452.9 MB, free: 27.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006062/0.3919, allocations: 421.2 kB / 453.3 MB, free: 27.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3919, allocations: 0 / 453.3 MB, free: 27.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.3922, allocations: 325.2 kB / 453.7 MB, free: 26.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/0.3926, allocations: 53.8 kB / 453.7 MB, free: 26.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002849/0.3955, allocations: 2.169 MB / 455.9 MB, free: 25.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.3957, allocations: 0.7459 MB / 456.6 MB, free: 25.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.3958, allocations: 39.09 kB / 456.7 MB, free: 25.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.233e-05/0.3959, allocations: 51.59 kB / 456.7 MB, free: 24.98 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3959, allocations: 0 / 456.7 MB, free: 24.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.4242, allocations: 5.886 MB / 462.6 MB, free: 24.61 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/0.4245, allocations: 210.2 kB / 462.8 MB, free: 24.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.292, allocations: 0 / 462.8 MB, free: 24.37 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: