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.004876/0.004876, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001263/0.001263, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0963/0.0963, allocations: 22.33 MB / 312.9 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001868, allocations: 72.11 kB / 436.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09797, allocations: 54.95 MB / 491.5 MB, free: 5.246 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.002957/0.101, allocations: 1.921 MB / 493.4 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005551/0.1015, allocations: 247.3 kB / 493.7 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.132e-05/0.1016, allocations: 4 kB / 493.7 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.1018, allocations: 27.78 kB / 493.7 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003622/0.1022, allocations: 99.48 kB / 493.8 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001139/0.1023, allocations: 47.91 kB / 493.8 MB, free: 2.891 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.1026, allocations: 279 kB / 494.1 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.1027, allocations: 45.09 kB / 494.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.1029, allocations: 95.69 kB / 494.3 MB, free: 2.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002025/0.1031, allocations: 123.6 kB / 494.4 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.011e-05/0.1031, allocations: 16 kB / 494.4 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.1033, allocations: 71.94 kB / 494.5 MB, free: 2.273 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.1034, allocations: 79.78 kB / 494.5 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.1035, allocations: 107.5 kB / 494.6 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003247/0.1038, allocations: 267 kB / 494.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1038, allocations: 4 kB / 494.9 MB, free: 1.824 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1039, allocations: 0 / 494.9 MB, free: 1.824 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1039, allocations: 0 / 494.9 MB, free: 1.824 MB / 366.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.001059/0.1049, allocations: 0.5492 MB / 495.5 MB, free: 1.223 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.105, allocations: 8.031 kB / 495.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.764e-05/0.105, allocations: 50.67 kB / 495.5 MB, free: 1.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.105e-05/0.1051, allocations: 24.8 kB / 495.5 MB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.1055, allocations: 331.8 kB / 495.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.1055, allocations: 12.38 kB / 495.9 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.374e-05/0.1055, allocations: 12.38 kB / 495.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.1058, allocations: 148.1 kB / 496 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1058, allocations: 3.938 kB / 496 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.1058, allocations: 4 kB / 496 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.1058, allocations: 0 / 496 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.106, allocations: 99.89 kB / 496.1 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009662/0.107, allocations: 0.6671 MB / 496.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007904/0.1078, allocations: 258.4 kB / 497.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.1079, allocations: 85.06 kB / 497.1 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.108, allocations: 8 kB / 497.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.108, allocations: 30.56 kB / 497.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.108, allocations: 0 / 497.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001083/0.1091, allocations: 0.4934 MB / 497.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.1091, allocations: 55.41 kB / 497.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.1095, allocations: 311.8 kB / 498 MB, free: 14.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.1095, allocations: 25.7 kB / 498.1 MB, free: 14.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.032e-05/0.1096, allocations: 128 kB / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.679e-05/0.1097, allocations: 63.47 kB / 498.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-05/0.1098, allocations: 33.7 kB / 498.3 MB, free: 14.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1099, allocations: 334.8 kB / 498.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.11, allocations: 71.89 kB / 498.7 MB, free: 13.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.1102, allocations: 89.67 kB / 498.8 MB, free: 13.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.1116, allocations: 472.1 kB / 499.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1116, allocations: 4 kB / 499.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005738/0.1122, allocations: 303.1 kB / 499.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.1122, allocations: 7.984 kB / 499.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1122, allocations: 0 / 499.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002193/0.1125, allocations: 57.56 kB / 499.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.1127, allocations: 52 kB / 499.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002246/0.115, allocations: 2.809 MB / 0.4907 GB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.1151, allocations: 23.84 kB / 0.4907 GB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.1152, allocations: 8 kB / 0.4907 GB, free: 9.645 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.0002344/0.1154, allocations: 184.7 kB / 0.4909 GB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.361e-05/0.1155, allocations: 19.86 kB / 0.4909 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.47e-05/0.1155, allocations: 33.47 kB / 0.4909 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.1156, allocations: 0 / 0.4909 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1156, allocations: 0 / 0.4909 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1156, allocations: 7.922 kB / 0.4909 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003252/0.1159, allocations: 289.4 kB / 0.4912 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1159, allocations: 0 / 0.4912 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.1162, allocations: 51.95 kB / 0.4913 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001807/0.1164, allocations: 49.69 kB / 0.4913 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.1165, allocations: 11.94 kB / 0.4913 GB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002137/0.1186, allocations: 2.821 MB / 0.4941 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1186, allocations: 0 / 0.4941 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006434/0.1193, allocations: 421 kB / 0.4945 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.879e-05/0.1194, allocations: 104.9 kB / 0.4946 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.1194, allocations: 4 kB / 0.4946 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.1196, allocations: 11.98 kB / 0.4946 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.488e-05/0.1196, allocations: 7.984 kB / 0.4946 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.1196, allocations: 8 kB / 0.4946 GB, free: 5.266 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002407/0.1199, allocations: 241.4 kB / 0.4948 GB, free: 5.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1199, allocations: 8 kB / 0.4948 GB, free: 5.023 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003732/0.1203, allocations: 64 kB / 0.4949 GB, free: 4.961 MB / 382.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.001013/0.1213, allocations: 0.9679 MB / 0.4958 GB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006485/0.122, allocations: 431.2 kB / 0.4963 GB, free: 3.516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.122, allocations: 0 / 0.4963 GB, free: 3.516 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003664/0.1223, allocations: 317.3 kB / 0.4966 GB, free: 3.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.1227, allocations: 52.11 kB / 0.4966 GB, free: 3.129 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1708/0.2936, allocations: 3.122 MB / 0.4997 GB, free: 21.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/0.2938, allocations: 0.7449 MB / 0.5004 GB, free: 20.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.2939, allocations: 35.48 kB / 0.5004 GB, free: 20.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.038e-05/0.294, allocations: 59.31 kB / 0.5005 GB, free: 20.89 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.294, allocations: 0 / 0.5005 GB, free: 20.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5516/0.8456, allocations: 6.402 MB / 0.5067 GB, free: 20.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.951/10.8, allocations: 17.02 kB / 0.5067 GB, free: 20.43 MB / 382.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)