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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 104.4 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001838/0.001838, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 252.8 MB, free: 9.125 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.108/0.108, allocations: 24.11 MB / 333 MB, free: 12.63 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002079/0.002079, allocations: 67.91 kB / 467.9 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3582, allocations: 59.57 MB / 0.5151 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.002732/0.3609, allocations: 1.946 MB / 0.517 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005089/0.3614, allocations: 236.6 kB / 0.5172 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.847e-05/0.3615, allocations: 6.344 kB / 0.5172 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.3617, allocations: 22.22 kB / 0.5172 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.362, allocations: 111.6 kB / 0.5173 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001103/0.3622, allocations: 49.62 kB / 0.5174 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002819/0.3624, allocations: 275.1 kB / 0.5176 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.3626, allocations: 37.88 kB / 0.5177 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.3627, allocations: 99.98 kB / 0.5178 GB, free: 7.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002102/0.3629, allocations: 131.2 kB / 0.5179 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.3629, allocations: 16.91 kB / 0.5179 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.3631, allocations: 68.36 kB / 0.518 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.977e-05/0.3632, allocations: 77.91 kB / 0.518 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.3633, allocations: 112.5 kB / 0.5182 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003598/0.3637, allocations: 268.1 kB / 0.5184 GB, free: 7.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3637, allocations: 0.8125 kB / 0.5184 GB, free: 7.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3637, allocations: 4.891 kB / 0.5184 GB, free: 7.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.3637, allocations: 1.406 kB / 0.5184 GB, free: 7.715 MB / 382.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.001003/0.3647, allocations: 0.5524 MB / 0.519 GB, free: 7.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.3647, allocations: 11.03 kB / 0.519 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.043e-05/0.3648, allocations: 47.61 kB / 0.519 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.342e-05/0.3648, allocations: 23.5 kB / 0.519 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003153/0.3651, allocations: 327 kB / 0.5193 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.3651, allocations: 7.812 kB / 0.5194 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.72e-05/0.3652, allocations: 16.14 kB / 0.5194 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.3654, allocations: 141.4 kB / 0.5195 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.3654, allocations: 3.938 kB / 0.5195 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.3655, allocations: 5.125 kB / 0.5195 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.3655, allocations: 3.125 kB / 0.5195 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.3656, allocations: 101.1 kB / 0.5196 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009074/0.3665, allocations: 0.6669 MB / 0.5203 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009382/0.3675, allocations: 252.8 kB / 0.5205 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.3676, allocations: 85.56 kB / 0.5206 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.3677, allocations: 2.656 kB / 0.5206 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.3677, allocations: 32.22 kB / 0.5206 GB, free: 6.148 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.154e-06/0.3677, allocations: 0 / 0.5206 GB, free: 6.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001215/0.3689, allocations: 0.5011 MB / 0.5211 GB, free: 5.809 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.3689, allocations: 54.06 kB / 0.5212 GB, free: 5.746 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004358/0.3694, allocations: 317.1 kB / 0.5215 GB, free: 5.586 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.3694, allocations: 26.89 kB / 0.5215 GB, free: 5.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.3695, allocations: 128 kB / 0.5216 GB, free: 5.438 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.131e-05/0.3695, allocations: 56.12 kB / 0.5217 GB, free: 5.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.703e-05/0.3696, allocations: 37.69 kB / 0.5217 GB, free: 5.367 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.885e-05/0.3697, allocations: 332.3 kB / 0.522 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.3698, allocations: 67.91 kB / 0.5221 GB, free: 5.023 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.37, allocations: 92.77 kB / 0.5222 GB, free: 4.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/0.3716, allocations: 475.8 kB / 0.5226 GB, free: 4.832 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3716, allocations: 3.938 kB / 0.5226 GB, free: 4.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006539/0.3723, allocations: 306.5 kB / 0.5229 GB, free: 4.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3723, allocations: 9.719 kB / 0.5229 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3723, allocations: 0 / 0.5229 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002368/0.3726, allocations: 53.38 kB / 0.523 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.3728, allocations: 50.83 kB / 0.523 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/0.3743, allocations: 2.818 MB / 0.5258 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.3745, allocations: 12.91 kB / 0.5258 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.3746, allocations: 11.5 kB / 0.5258 GB, free: 1.797 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.0002873/0.3748, allocations: 181.6 kB / 0.526 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.061e-05/0.3749, allocations: 17.03 kB / 0.526 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.932e-05/0.375, allocations: 32.42 kB / 0.526 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.375, allocations: 2.156 kB / 0.526 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.375, allocations: 5.094 kB / 0.526 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.375, allocations: 0 / 0.526 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003325/0.3753, allocations: 288 kB / 0.5263 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3753, allocations: 4.797 kB / 0.5263 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/0.3757, allocations: 50.62 kB / 0.5264 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002163/0.3759, allocations: 46.8 kB / 0.5264 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.3759, allocations: 12.98 kB / 0.5264 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.3781, allocations: 2.814 MB / 0.5292 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3781, allocations: 1.219 kB / 0.5292 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007603/0.3788, allocations: 417.9 kB / 0.5296 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.3789, allocations: 101.1 kB / 0.5297 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.636e-05/0.379, allocations: 8.969 kB / 0.5297 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.3792, allocations: 10.03 kB / 0.5297 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.649e-05/0.3792, allocations: 8.828 kB / 0.5297 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.3792, allocations: 8.578 kB / 0.5297 GB, free: 14.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002954/0.3795, allocations: 246 kB / 0.5299 GB, free: 14 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3795, allocations: 0 / 0.5299 GB, free: 14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004545/0.38, allocations: 75.8 kB / 0.53 GB, free: 13.99 MB / 398.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.001136/0.3811, allocations: 0.966 MB / 0.5309 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000802/0.3819, allocations: 421.3 kB / 0.5313 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3819, allocations: 3.938 kB / 0.5313 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004308/0.3824, allocations: 313.6 kB / 0.5316 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004394/0.3828, allocations: 55.33 kB / 0.5317 GB, free: 12.63 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004826/0.3876, allocations: 3.121 MB / 0.5347 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.3881, allocations: 0.7413 MB / 0.5355 GB, free: 9.891 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001645/0.3883, allocations: 39.14 kB / 0.5355 GB, free: 9.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.3884, allocations: 55.14 kB / 0.5356 GB, free: 9.852 MB / 398.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3884, allocations: 0 / 0.5356 GB, free: 9.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05299/0.4414, allocations: 6.466 MB / 0.5419 GB, free: 8.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.979/10.42, allocations: 1.469 kB / 0.5419 GB, free: 8.32 MB / 398.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Containment_elements_res.csv --start-time 0 --stop-time 100000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 10 AES_AES_Coursework_ThermSys_component_models_Containment_elements.fmu > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.326760863885283] Failed to read output from testmodel.py, exit status != 0: 10.504900989122689 10.518806374 10.151977805 Calling exit ...