Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Pumps_valve.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.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005416/0.005416, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001392/0.001392, allocations: 193.5 kB / 16.67 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2112/0.2112, allocations: 22.35 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 64.48 kB / 437.1 MB, free: 33.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.12, allocations: 54.96 MB / 492 MB, free: 1.227 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Pumps_valve): time 0.03422/0.1542, allocations: 22.3 MB / 0.5023 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.1556, allocations: 390.9 kB / 0.5026 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003409/0.156, allocations: 4 kB / 0.5026 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.1562, allocations: 43.5 kB / 0.5027 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005165/0.1567, allocations: 107.1 kB / 0.5028 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005803/0.1573, allocations: 107.8 kB / 0.5029 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000678/0.158, allocations: 418.1 kB / 0.5033 GB, free: 10 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005181/0.1585, allocations: 255.4 kB / 0.5035 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.1588, allocations: 159.5 kB / 0.5037 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003268/0.1591, allocations: 219 kB / 0.5039 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.892e-05/0.1592, allocations: 40 kB / 0.5039 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001805/0.1594, allocations: 63.95 kB / 0.504 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.691e-05/0.1595, allocations: 87.69 kB / 0.5041 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.1597, allocations: 191 kB / 0.5042 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000455/0.1601, allocations: 442.5 kB / 0.5047 GB, free: 8.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1602, allocations: 7.938 kB / 0.5047 GB, free: 8.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1602, allocations: 0 / 0.5047 GB, free: 8.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1602, allocations: 0 / 0.5047 GB, free: 8.566 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001239/0.1614, allocations: 0.6818 MB / 0.5053 GB, free: 7.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1615, allocations: 8.031 kB / 0.5053 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.576e-05/0.1616, allocations: 40.47 kB / 0.5054 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.162, allocations: 300 kB / 0.5057 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.162, allocations: 24.94 kB / 0.5057 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/0.1621, allocations: 24.38 kB / 0.5057 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.1627, allocations: 289.3 kB / 0.506 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1627, allocations: 192 / 0.506 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.1627, allocations: 15.94 kB / 0.506 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.1627, allocations: 8 kB / 0.506 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006022/0.1633, allocations: 250.1 kB / 0.5063 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.1648, allocations: 0.8032 MB / 0.507 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005403/0.1653, allocations: 234.7 kB / 0.5073 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003636/0.1657, allocations: 140.7 kB / 0.5074 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.841e-05/0.1658, allocations: 11.98 kB / 0.5074 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.1658, allocations: 34.5 kB / 0.5074 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002024/0.166, allocations: 55.66 kB / 0.5075 GB, free: 5.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.166, allocations: 7.938 kB / 0.5075 GB, free: 5.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003663/0.1697, allocations: 0.9637 MB / 0.5084 GB, free: 4.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.1697, allocations: 59.34 kB / 0.5085 GB, free: 4.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/0.1701, allocations: 287.3 kB / 0.5088 GB, free: 4.102 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.1701, allocations: 33.7 kB / 0.5088 GB, free: 4.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.1703, allocations: 180.5 kB / 0.509 GB, free: 3.883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.979e-05/0.1703, allocations: 82.84 kB / 0.5091 GB, free: 3.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.1705, allocations: 45.92 kB / 0.5091 GB, free: 3.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1706, allocations: 338.8 kB / 0.5094 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/0.1709, allocations: 104.4 kB / 0.5095 GB, free: 3.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.1712, allocations: 100.9 kB / 0.5096 GB, free: 3.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005524/0.1717, allocations: 236.2 kB / 0.5098 GB, free: 2.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1717, allocations: 3.938 kB / 0.5099 GB, free: 2.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001835/0.1736, allocations: 0.4958 MB / 0.5103 GB, free: 2.465 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.1736, allocations: 4 kB / 0.5103 GB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1736, allocations: 0 / 0.5103 GB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.1749, allocations: 206.3 kB / 0.5105 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006423/0.1756, allocations: 87.86 kB / 0.5106 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00459/0.1802, allocations: 4.763 MB / 0.5153 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.1804, allocations: 16.02 kB / 0.5153 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.1805, allocations: 11.92 kB / 0.5153 GB, free: 13.03 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002011/0.1807, allocations: 141.8 kB / 0.5154 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.018e-05/0.1808, allocations: 27.72 kB / 0.5155 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.1823, allocations: 0.5217 MB / 0.516 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.1823, allocations: 4 kB / 0.516 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1823, allocations: 0 / 0.516 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1823, allocations: 4 kB / 0.516 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001961/0.1843, allocations: 0.9194 MB / 0.5169 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.1843, allocations: 4 kB / 0.5169 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005527/0.1849, allocations: 99.78 kB / 0.517 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007059/0.1856, allocations: 146.5 kB / 0.5171 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.546e-05/0.1856, allocations: 4 kB / 0.5171 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003481/0.1891, allocations: 4.431 MB / 0.5214 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1891, allocations: 0 / 0.5214 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.1906, allocations: 0.5571 MB / 0.522 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.1907, allocations: 104.7 kB / 0.5221 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.1908, allocations: 7.938 kB / 0.5221 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.191, allocations: 27.97 kB / 0.5221 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.1911, allocations: 27.97 kB / 0.5222 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.1912, allocations: 4 kB / 0.5222 GB, free: 5.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002629/0.1914, allocations: 213.9 kB / 0.5224 GB, free: 5.324 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1914, allocations: 3.938 kB / 0.5224 GB, free: 5.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006489/0.1921, allocations: 103.7 kB / 0.5225 GB, free: 5.219 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002395/0.1923, allocations: 111.2 kB / 0.5226 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.1944, allocations: 0.6454 MB / 0.5232 GB, free: 4.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1944, allocations: 0 / 0.5232 GB, free: 4.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008997/0.1953, allocations: 461 kB / 0.5236 GB, free: 3.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004486/0.1958, allocations: 56.64 kB / 0.5237 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.197, allocations: 0.6109 MB / 0.5243 GB, free: 3.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.1974, allocations: 0.7883 MB / 0.5251 GB, free: 2.449 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.1975, allocations: 34.91 kB / 0.5251 GB, free: 2.414 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/0.1976, allocations: 27.44 kB / 0.5251 GB, free: 2.387 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1976, allocations: 0 / 0.5251 GB, free: 2.387 MB / 398.1 MB Notification: Performance of Templates: time 0.009967/0.2076, allocations: 5.132 MB / 0.5301 GB, free: 13.27 MB / 414.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Pumps_valve.sim & ./AES_AES.Coursework.ThermSys_component_models.Pumps_valve -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)