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.004385/0.004385, allocations: 100.2 kB / 15.73 MB, free: 6.469 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.0009881/0.0009881, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2336/0.2336, allocations: 22.38 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 65.66 kB / 437.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1115, allocations: 54.95 MB / 492 MB, free: 1.215 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.0291/0.1407, allocations: 22.23 MB / 0.5022 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.1419, allocations: 394.8 kB / 0.5026 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.142, allocations: 8 kB / 0.5026 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.1421, allocations: 43.5 kB / 0.5026 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.1424, allocations: 99.11 kB / 0.5027 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.1427, allocations: 107.8 kB / 0.5028 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003701/0.1431, allocations: 414.1 kB / 0.5032 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003521/0.1435, allocations: 255.5 kB / 0.5035 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.1436, allocations: 155.5 kB / 0.5036 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002362/0.1439, allocations: 215.1 kB / 0.5038 GB, free: 9.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.793e-05/0.1439, allocations: 36 kB / 0.5039 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.1441, allocations: 79.94 kB / 0.5039 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.1442, allocations: 83.69 kB / 0.504 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.1443, allocations: 191 kB / 0.5042 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004451/0.1448, allocations: 446.4 kB / 0.5046 GB, free: 8.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1448, allocations: 3.938 kB / 0.5046 GB, free: 8.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1448, allocations: 0 / 0.5046 GB, free: 8.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.1448, allocations: 0 / 0.5046 GB, free: 8.625 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.001155/0.146, allocations: 0.6779 MB / 0.5053 GB, free: 7.895 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.146, allocations: 12.03 kB / 0.5053 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.821e-05/0.1461, allocations: 44.47 kB / 0.5053 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.1465, allocations: 296 kB / 0.5056 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.1466, allocations: 24.94 kB / 0.5056 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.1466, allocations: 24.38 kB / 0.5057 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/0.1471, allocations: 281.3 kB / 0.5059 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1472, allocations: 192 / 0.5059 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.1472, allocations: 15.94 kB / 0.506 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.1472, allocations: 4 kB / 0.506 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000575/0.1478, allocations: 254.1 kB / 0.5062 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.1492, allocations: 0.807 MB / 0.507 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004984/0.1497, allocations: 238.7 kB / 0.5072 GB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000324/0.15, allocations: 146 kB / 0.5074 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.1501, allocations: 7.938 kB / 0.5074 GB, free: 5.656 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.1501, allocations: 38.5 kB / 0.5074 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001877/0.1503, allocations: 51.66 kB / 0.5074 GB, free: 5.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.393e-06/0.1503, allocations: 3.938 kB / 0.5074 GB, free: 5.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003274/0.1536, allocations: 0.9681 MB / 0.5084 GB, free: 4.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.1536, allocations: 59.34 kB / 0.5085 GB, free: 4.445 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.1539, allocations: 287.4 kB / 0.5087 GB, free: 4.156 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.154, allocations: 25.7 kB / 0.5087 GB, free: 4.125 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1541, allocations: 188.4 kB / 0.5089 GB, free: 3.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.662e-05/0.1541, allocations: 74.91 kB / 0.509 GB, free: 3.863 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.118e-05/0.1542, allocations: 49.92 kB / 0.509 GB, free: 3.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1544, allocations: 338.8 kB / 0.5094 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.1546, allocations: 104.4 kB / 0.5095 GB, free: 3.367 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.1549, allocations: 100.9 kB / 0.5096 GB, free: 3.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005229/0.1554, allocations: 228.2 kB / 0.5098 GB, free: 3.047 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1554, allocations: 7.938 kB / 0.5098 GB, free: 3.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001607/0.157, allocations: 0.4959 MB / 0.5103 GB, free: 2.527 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.1571, allocations: 4 kB / 0.5103 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1571, allocations: 0 / 0.5103 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.1582, allocations: 210.3 kB / 0.5105 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005494/0.1587, allocations: 87.86 kB / 0.5106 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003944/0.1627, allocations: 4.763 MB / 0.5152 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.1629, allocations: 16.02 kB / 0.5152 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.163, allocations: 11.98 kB / 0.5152 GB, free: 13.09 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.0001704/0.1631, allocations: 145.7 kB / 0.5154 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.477e-05/0.1632, allocations: 23.72 kB / 0.5154 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.1645, allocations: 0.5217 MB / 0.5159 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.1645, allocations: 4 kB / 0.5159 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1645, allocations: 0 / 0.5159 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1645, allocations: 0 / 0.5159 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.1662, allocations: 0.9233 MB / 0.5168 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1662, allocations: 3.938 kB / 0.5168 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004755/0.1667, allocations: 87.92 kB / 0.5169 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006023/0.1673, allocations: 154.4 kB / 0.5171 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.1673, allocations: 4 kB / 0.5171 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002893/0.1702, allocations: 4.439 MB / 0.5214 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1702, allocations: 0 / 0.5214 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.1714, allocations: 0.557 MB / 0.5219 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.826e-05/0.1715, allocations: 100.7 kB / 0.522 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/0.1716, allocations: 8 kB / 0.522 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.1718, allocations: 19.97 kB / 0.5221 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-05/0.1719, allocations: 27.91 kB / 0.5221 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.1719, allocations: 12 kB / 0.5221 GB, free: 5.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.1721, allocations: 209.9 kB / 0.5223 GB, free: 5.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1721, allocations: 0 / 0.5223 GB, free: 5.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005511/0.1727, allocations: 111.7 kB / 0.5224 GB, free: 5.277 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.0001659/0.1728, allocations: 106.5 kB / 0.5225 GB, free: 5.168 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001832/0.1747, allocations: 0.6493 MB / 0.5231 GB, free: 4.492 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1747, allocations: 0 / 0.5231 GB, free: 4.492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008086/0.1755, allocations: 457 kB / 0.5236 GB, free: 4.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003801/0.1759, allocations: 52.64 kB / 0.5236 GB, free: 3.969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.1769, allocations: 0.6226 MB / 0.5242 GB, free: 3.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.1773, allocations: 0.7883 MB / 0.525 GB, free: 2.508 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.1774, allocations: 30.97 kB / 0.525 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.207e-05/0.1774, allocations: 23.44 kB / 0.5251 GB, free: 2.453 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1774, allocations: 3.938 kB / 0.5251 GB, free: 2.449 MB / 398.1 MB Notification: Performance of Templates: time 0.009945/0.1874, allocations: 5.299 MB / 0.5302 GB, free: 13.16 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)