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: translateModel(AES.Coursework.ThermSys_component_models.Containment_elements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Containment_elements") translateModel(AES.Coursework.ThermSys_component_models.Containment_elements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Containment_elements") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.00144, allocations: 112.6 kB / 16.37 MB, free: 6 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.001596/0.001596, allocations: 196 kB / 17.31 MB, free: 5.613 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08953/0.08953, allocations: 22.32 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 66.5 kB / 382.2 MB, free: 41.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09729, allocations: 54.96 MB / 437.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.003504/0.1009, allocations: 1.927 MB / 439.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005553/0.1014, allocations: 235.3 kB / 439.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.147e-05/0.1015, allocations: 4 kB / 439.4 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.1017, allocations: 27.8 kB / 439.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003808/0.1021, allocations: 115.4 kB / 439.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001086/0.1023, allocations: 47.86 kB / 439.6 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003278/0.1026, allocations: 279 kB / 439.8 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.1028, allocations: 49.09 kB / 439.9 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.463e-05/0.1029, allocations: 91.75 kB / 440 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.1031, allocations: 127.5 kB / 440.1 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.1031, allocations: 16 kB / 440.1 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.1033, allocations: 67.94 kB / 440.2 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.1034, allocations: 79.83 kB / 440.2 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.1035, allocations: 103.5 kB / 440.3 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003272/0.1038, allocations: 271.2 kB / 440.6 MB, free: 8.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1039, allocations: 8 kB / 440.6 MB, free: 8.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1039, allocations: 0 / 440.6 MB, free: 8.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1039, allocations: 0 / 440.6 MB, free: 8.965 MB / 318.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.00106/0.1049, allocations: 0.5589 MB / 441.2 MB, free: 8.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.105, allocations: 8.031 kB / 441.2 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.024e-05/0.1051, allocations: 16.75 kB / 441.2 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.1054, allocations: 323.9 kB / 441.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.1054, allocations: 4.375 kB / 441.5 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.1055, allocations: 12.38 kB / 441.5 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.1057, allocations: 146.1 kB / 441.7 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1058, allocations: 4.188 kB / 441.7 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.1058, allocations: 11.94 kB / 441.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1058, allocations: 0 / 441.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.106, allocations: 103.8 kB / 441.8 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000967/0.1069, allocations: 0.6591 MB / 442.5 MB, free: 6.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008138/0.1078, allocations: 258.4 kB / 442.7 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.1079, allocations: 84.81 kB / 442.8 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.1079, allocations: 0 / 442.8 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.108, allocations: 34.56 kB / 442.8 MB, free: 6.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.173e-06/0.108, allocations: 0 / 442.8 MB, free: 6.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001062/0.109, allocations: 0.4967 MB / 443.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.1091, allocations: 55.41 kB / 443.4 MB, free: 5.961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/0.1094, allocations: 315.7 kB / 443.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.1094, allocations: 33.7 kB / 443.7 MB, free: 5.602 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.993e-05/0.1096, allocations: 116 kB / 443.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.623e-05/0.1096, allocations: 59.11 kB / 443.9 MB, free: 5.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.676e-05/0.1097, allocations: 37.7 kB / 443.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1098, allocations: 338.8 kB / 444.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.1099, allocations: 59.97 kB / 444.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.1101, allocations: 93.61 kB / 444.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.1115, allocations: 475.4 kB / 444.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1115, allocations: 0 / 444.9 MB, free: 4.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005788/0.1121, allocations: 310.1 kB / 445.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1121, allocations: 4 kB / 445.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1121, allocations: 4.031 kB / 445.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002214/0.1124, allocations: 53.62 kB / 445.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.1126, allocations: 55.91 kB / 445.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/0.1148, allocations: 2.813 MB / 448.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.1149, allocations: 15.88 kB / 448.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.115, allocations: 8.156 kB / 448.1 MB, free: 0.8594 MB / 318.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.0002335/0.1152, allocations: 170.1 kB / 448.3 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.87e-05/0.1153, allocations: 15.81 kB / 448.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.204e-05/0.1153, allocations: 33.52 kB / 448.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1154, allocations: 7.875 kB / 448.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1154, allocations: 0 / 448.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1154, allocations: 4 kB / 448.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000313/0.1157, allocations: 301.3 kB / 448.6 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1157, allocations: 0 / 448.6 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.116, allocations: 47.97 kB / 448.7 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/0.1162, allocations: 45.69 kB / 448.7 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.1162, allocations: 7.984 kB / 448.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/0.1183, allocations: 2.821 MB / 451.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1183, allocations: 0 / 451.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006488/0.119, allocations: 420.8 kB / 452 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.637e-05/0.1191, allocations: 96.91 kB / 452.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/0.1191, allocations: 8 kB / 452.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.1193, allocations: 12.05 kB / 452.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.86e-05/0.1193, allocations: 11.98 kB / 452.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.1194, allocations: 4 kB / 452.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002418/0.1196, allocations: 245.4 kB / 452.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1196, allocations: 0 / 452.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.12, allocations: 75.84 kB / 452.4 MB, free: 12.19 MB / 334.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.000192/0.1202, allocations: 119.3 kB / 452.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006584/0.1209, allocations: 433.1 kB / 453 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1209, allocations: 3.938 kB / 453 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003526/0.1213, allocations: 313.3 kB / 453.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.1217, allocations: 56.17 kB / 453.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.123, allocations: 0.8378 MB / 454.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.1235, allocations: 0.7363 MB / 454.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000202/0.1237, allocations: 45.52 kB / 454.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.636e-05/0.1238, allocations: 19.44 kB / 455 MB, free: 9.531 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1238, allocations: 0 / 455 MB, free: 9.531 MB / 334.1 MB Notification: Performance of Templates: time 0.007429/0.1312, allocations: 3.973 MB / 458.9 MB, free: 5.605 MB / 334.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Containment_elements.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Containment_elements -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1)