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.008013/0.008013, allocations: 101.9 kB / 15.73 MB, free: 6.496 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.001792/0.001792, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2158/0.2158, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 64.67 kB / 437.1 MB, free: 33.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1507, allocations: 54.98 MB / 492 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.003786/0.1545, allocations: 1.917 MB / 494 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007662/0.1553, allocations: 239.2 kB / 494.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.918e-05/0.1554, allocations: 4 kB / 494.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002/0.1556, allocations: 23.78 kB / 494.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005315/0.1562, allocations: 127.4 kB / 494.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000174/0.1564, allocations: 47.92 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004023/0.1568, allocations: 263.1 kB / 494.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.157, allocations: 45.08 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.1571, allocations: 95.75 kB / 494.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.1574, allocations: 131.5 kB / 494.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.927e-05/0.1575, allocations: 16 kB / 494.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.1577, allocations: 67.94 kB / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.1578, allocations: 79.72 kB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.158, allocations: 103.6 kB / 495.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.1585, allocations: 278.9 kB / 495.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1585, allocations: 0 / 495.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1585, allocations: 0 / 495.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1585, allocations: 0 / 495.4 MB, free: 13.78 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.001407/0.1599, allocations: 0.5492 MB / 496 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.16, allocations: 8.031 kB / 496 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.914e-05/0.1601, allocations: 28.8 kB / 496 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004827/0.1606, allocations: 327.8 kB / 496.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.1606, allocations: 8.375 kB / 496.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.1606, allocations: 8.375 kB / 496.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.161, allocations: 146.1 kB / 496.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.161, allocations: 4.172 kB / 496.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.1611, allocations: 11.94 kB / 496.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.1611, allocations: 0 / 496.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.1614, allocations: 95.95 kB / 496.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.1627, allocations: 0.667 MB / 497.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.1638, allocations: 254.4 kB / 497.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.1641, allocations: 84.81 kB / 497.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.1641, allocations: 7.938 kB / 497.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.1642, allocations: 30.81 kB / 497.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.783e-06/0.1642, allocations: 3.938 kB / 497.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.001539/0.1657, allocations: 0.5031 MB / 498.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.1658, allocations: 55.41 kB / 498.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004781/0.1663, allocations: 311.8 kB / 498.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.1663, allocations: 29.69 kB / 498.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1664, allocations: 120.1 kB / 498.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.224e-05/0.1665, allocations: 63.47 kB / 498.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.831e-05/0.1666, allocations: 37.7 kB / 498.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1668, allocations: 338.8 kB / 499.1 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.167, allocations: 59.97 kB / 499.2 MB, free: 9.777 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.1672, allocations: 90.61 kB / 499.2 MB, free: 9.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002153/0.1694, allocations: 475.7 kB / 499.7 MB, free: 9.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1694, allocations: 4 kB / 499.7 MB, free: 9.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008278/0.1702, allocations: 308.3 kB / 0.4883 GB, free: 8.895 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1702, allocations: 4 kB / 0.4883 GB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1703, allocations: 0 / 0.4883 GB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003134/0.1706, allocations: 53.72 kB / 0.4884 GB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003596/0.171, allocations: 55.84 kB / 0.4884 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002767/0.1737, allocations: 2.813 MB / 0.4912 GB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.174, allocations: 23.91 kB / 0.4912 GB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.174, allocations: 4 kB / 0.4912 GB, free: 5.656 MB / 366.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.0003146/0.1744, allocations: 176 kB / 0.4913 GB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.044e-05/0.1744, allocations: 19.86 kB / 0.4914 GB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.546e-05/0.1745, allocations: 33.47 kB / 0.4914 GB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.1746, allocations: 7.922 kB / 0.4914 GB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1746, allocations: 0 / 0.4914 GB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1746, allocations: 4 kB / 0.4914 GB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004697/0.1751, allocations: 285.5 kB / 0.4917 GB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1751, allocations: 0 / 0.4917 GB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.1756, allocations: 51.97 kB / 0.4917 GB, free: 5.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002448/0.1758, allocations: 49.62 kB / 0.4918 GB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.1759, allocations: 8 kB / 0.4918 GB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002505/0.1784, allocations: 2.825 MB / 0.4945 GB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1784, allocations: 4.031 kB / 0.4945 GB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008685/0.1793, allocations: 417 kB / 0.4949 GB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.382e-05/0.1794, allocations: 100.9 kB / 0.495 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.175e-05/0.1795, allocations: 8 kB / 0.4951 GB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.1797, allocations: 7.984 kB / 0.4951 GB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.1798, allocations: 15.98 kB / 0.4951 GB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.1798, allocations: 0 / 0.4951 GB, free: 1.289 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000329/0.1802, allocations: 245.4 kB / 0.4953 GB, free: 1.051 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1802, allocations: 4 kB / 0.4953 GB, free: 1.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006447/0.1808, allocations: 75.89 kB / 0.4954 GB, free: 0.9727 MB / 366.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.0002124/0.1811, allocations: 115.2 kB / 0.4955 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008494/0.1819, allocations: 432.4 kB / 0.4959 GB, free: 412 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.182, allocations: 0 / 0.4959 GB, free: 412 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004638/0.1824, allocations: 309.3 kB / 0.4962 GB, free: 76 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006014/0.183, allocations: 66.89 kB / 0.4963 GB, free: 12 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.1851, allocations: 0.8563 MB / 0.4971 GB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.1855, allocations: 0.7402 MB / 0.4978 GB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001915/0.1857, allocations: 37.52 kB / 0.4979 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.998e-05/0.1858, allocations: 19.44 kB / 0.4979 GB, free: 14.31 MB / 382.1 MB Notification: Performance of SimCode: time 5.72e-07/0.1858, allocations: 4 kB / 0.4979 GB, free: 14.31 MB / 382.1 MB Notification: Performance of Templates: time 0.0109/0.1968, allocations: 4.003 MB / 0.5018 GB, free: 10.35 MB / 382.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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1)