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.006844/0.006844, allocations: 105.9 kB / 15.73 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.001414/0.001414, allocations: 189 kB / 16.67 MB, free: 5.926 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09093/0.09093, allocations: 22.33 MB / 312.8 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 59.91 kB / 437 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1553, allocations: 54.96 MB / 492 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.003225/0.1586, allocations: 1.925 MB / 493.9 MB, free: 2.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000574/0.1592, allocations: 243.3 kB / 494.1 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.394e-05/0.1593, allocations: 4 kB / 494.2 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.1594, allocations: 23.78 kB / 494.2 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004246/0.1599, allocations: 111.5 kB / 494.3 MB, free: 2.445 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001189/0.16, allocations: 51.92 kB / 494.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.1603, allocations: 267 kB / 494.6 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.1605, allocations: 53.08 kB / 494.6 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.1606, allocations: 103.7 kB / 494.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.1608, allocations: 119.7 kB / 494.9 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.649e-05/0.1609, allocations: 20 kB / 494.9 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.161, allocations: 71.88 kB / 495 MB, free: 1.773 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.1611, allocations: 67.8 kB / 495 MB, free: 1.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.1612, allocations: 107.5 kB / 495.1 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.1616, allocations: 275.2 kB / 495.4 MB, free: 1.332 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.1616, allocations: 3.984 kB / 495.4 MB, free: 1.328 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1616, allocations: 0 / 495.4 MB, free: 1.328 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1616, allocations: 0 / 495.4 MB, free: 1.328 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.001131/0.1627, allocations: 0.5531 MB / 496 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1628, allocations: 8.031 kB / 496 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.292e-05/0.1628, allocations: 20.75 kB / 496 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.1632, allocations: 327.7 kB / 496.3 MB, free: 344 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.1632, allocations: 12.31 kB / 496.3 MB, free: 332 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.542e-05/0.1633, allocations: 12.38 kB / 496.3 MB, free: 320 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000248/0.1635, allocations: 139.8 kB / 496.5 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.1636, allocations: 192 / 496.5 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.1636, allocations: 3.938 kB / 496.5 MB, free: 172 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1636, allocations: 11.92 kB / 496.5 MB, free: 160 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.1638, allocations: 103.9 kB / 496.6 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009683/0.1648, allocations: 0.6592 MB / 497.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007823/0.1656, allocations: 258.3 kB / 497.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.1657, allocations: 88.81 kB / 497.6 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.1657, allocations: 0 / 497.6 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.1658, allocations: 34.56 kB / 497.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.1658, allocations: 0 / 497.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.001079/0.1669, allocations: 0.4974 MB / 498.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.1669, allocations: 51.41 kB / 498.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.1673, allocations: 311.8 kB / 498.5 MB, free: 14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.1673, allocations: 29.7 kB / 498.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.973e-05/0.1674, allocations: 128 kB / 498.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/0.1674, allocations: 51.25 kB / 498.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.115e-05/0.1675, allocations: 41.7 kB / 498.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1677, allocations: 326.8 kB / 499 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.1678, allocations: 67.95 kB / 499.1 MB, free: 13.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.1679, allocations: 97.55 kB / 499.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/0.1694, allocations: 476.2 kB / 499.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1694, allocations: 0 / 499.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005384/0.17, allocations: 300.3 kB / 499.9 MB, free: 12.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.17, allocations: 4 kB / 500 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.17, allocations: 4 kB / 500 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002417/0.1703, allocations: 57.64 kB / 0.4883 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.1705, allocations: 51.91 kB / 0.4883 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00213/0.1726, allocations: 2.813 MB / 0.4911 GB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.1728, allocations: 19.86 kB / 0.4911 GB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.1729, allocations: 8 kB / 0.4911 GB, free: 9.223 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.0002853/0.1732, allocations: 173.4 kB / 0.4913 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.1732, allocations: 23.75 kB / 0.4913 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.22e-05/0.1733, allocations: 25.53 kB / 0.4913 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1733, allocations: 3.938 kB / 0.4913 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1733, allocations: 4 kB / 0.4913 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1733, allocations: 7.922 kB / 0.4913 GB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.1737, allocations: 289.3 kB / 0.4916 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.1737, allocations: 0 / 0.4916 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.1741, allocations: 55.91 kB / 0.4917 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.1743, allocations: 49.67 kB / 0.4917 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.1743, allocations: 12 kB / 0.4917 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002116/0.1764, allocations: 2.817 MB / 0.4945 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1764, allocations: 0 / 0.4945 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000674/0.1771, allocations: 420.9 kB / 0.4949 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.885e-05/0.1772, allocations: 104.8 kB / 0.495 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.1773, allocations: 3.984 kB / 0.495 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.1775, allocations: 8 kB / 0.495 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.1775, allocations: 11.98 kB / 0.495 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.1775, allocations: 7.984 kB / 0.495 GB, free: 4.848 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002369/0.1778, allocations: 249.4 kB / 0.4953 GB, free: 4.605 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1778, allocations: 0 / 0.4953 GB, free: 4.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003886/0.1782, allocations: 68 kB / 0.4953 GB, free: 4.539 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.0002013/0.1784, allocations: 107.2 kB / 0.4954 GB, free: 4.422 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006851/0.1791, allocations: 438.8 kB / 0.4958 GB, free: 3.969 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1791, allocations: 0 / 0.4958 GB, free: 3.969 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004443/0.1795, allocations: 316.7 kB / 0.4961 GB, free: 3.637 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.18, allocations: 60.89 kB / 0.4962 GB, free: 3.582 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.1815, allocations: 0.8394 MB / 0.497 GB, free: 2.719 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.1819, allocations: 0.744 MB / 0.4977 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.182, allocations: 37.53 kB / 0.4978 GB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.427e-05/0.1821, allocations: 23.42 kB / 0.4978 GB, free: 1.891 MB / 382.1 MB Notification: Performance of SimCode: time 2.034e-06/0.1821, allocations: 0 / 0.4978 GB, free: 1.891 MB / 382.1 MB Notification: Performance of Templates: time 0.2451/0.4272, allocations: 4.006 MB / 0.5017 GB, free: 21.58 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)