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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09227/0.09227, allocations: 21.61 MB / 37.41 MB, free: 0.7578 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 180.5 kB / 43.63 MB, free: 3.574 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.263/1.263, allocations: 205.1 MB / 254.8 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009121/0.0009121, allocations: 108.1 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 49.81 kB / 372.3 MB, free: 59.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.08541, allocations: 51.97 MB / 424.3 MB, free: 14.5 MB / 298.7 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.02326/0.1087, allocations: 19.66 MB / 444 MB, free: 10.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.1098, allocations: 406.6 kB / 444.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.11, allocations: 0 / 444.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 8.653e-05/0.1101, allocations: 35.7 kB / 444.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.1103, allocations: 79.31 kB / 444.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.1105, allocations: 95.89 kB / 444.6 MB, free: 10.16 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.1108, allocations: 382.2 kB / 444.9 MB, free: 9.789 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000269/0.1111, allocations: 214.3 kB / 445.1 MB, free: 9.578 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.1113, allocations: 143.4 kB / 445.3 MB, free: 9.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.1115, allocations: 203.1 kB / 445.5 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.175e-05/0.1115, allocations: 24 kB / 445.5 MB, free: 9.215 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.1116, allocations: 55.97 kB / 445.6 MB, free: 9.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.435e-05/0.1117, allocations: 71.75 kB / 445.6 MB, free: 9.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.1118, allocations: 175 kB / 445.8 MB, free: 8.918 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003401/0.1122, allocations: 414.5 kB / 446.2 MB, free: 8.512 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.1122, allocations: 0 / 446.2 MB, free: 8.512 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1122, allocations: 0 / 446.2 MB, free: 8.512 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1122, allocations: 4 kB / 446.2 MB, free: 8.508 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0009992/0.1132, allocations: 0.643 MB / 446.9 MB, free: 7.812 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1133, allocations: 8.031 kB / 446.9 MB, free: 7.805 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.267e-05/0.1134, allocations: 48.45 kB / 446.9 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.1137, allocations: 287.2 kB / 447.2 MB, free: 7.441 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.1137, allocations: 20.94 kB / 447.2 MB, free: 7.422 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.1138, allocations: 24.38 kB / 447.2 MB, free: 7.398 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005445/0.1143, allocations: 273.4 kB / 447.5 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.1144, allocations: 192 / 447.5 MB, free: 7.125 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.1144, allocations: 15.94 kB / 447.5 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1144, allocations: 8 kB / 447.5 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005387/0.115, allocations: 246 kB / 447.8 MB, free: 6.859 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.1162, allocations: 0.8031 MB / 448.6 MB, free: 6.004 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.1169, allocations: 266.4 kB / 448.8 MB, free: 5.734 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/0.1172, allocations: 144.8 kB / 449 MB, free: 5.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.1172, allocations: 0 / 449 MB, free: 5.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.1173, allocations: 34.56 kB / 449 MB, free: 5.547 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001805/0.1175, allocations: 47.73 kB / 449 MB, free: 5.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 1.162e-06/0.1175, allocations: 0 / 449 MB, free: 5.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0031/0.1206, allocations: 0.932 MB / 450 MB, free: 4.496 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.1206, allocations: 59.34 kB / 450 MB, free: 4.426 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.1209, allocations: 262.7 kB / 450.3 MB, free: 4.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.1209, allocations: 29.7 kB / 450.3 MB, free: 4.125 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.978e-05/0.121, allocations: 184.4 kB / 450.5 MB, free: 3.941 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.9e-05/0.121, allocations: 70.91 kB / 450.6 MB, free: 3.871 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.48e-05/0.1211, allocations: 53.92 kB / 450.6 MB, free: 3.812 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1212, allocations: 338.8 kB / 451 MB, free: 3.473 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.1215, allocations: 96.41 kB / 451.1 MB, free: 3.379 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.1217, allocations: 101.8 kB / 451.2 MB, free: 3.281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004888/0.1222, allocations: 226.1 kB / 451.4 MB, free: 3.059 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1223, allocations: 4 kB / 451.4 MB, free: 3.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001532/0.1238, allocations: 491.3 kB / 451.9 MB, free: 2.559 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1238, allocations: 15.88 kB / 451.9 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.1238, allocations: 0 / 451.9 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.1249, allocations: 198.3 kB / 452.1 MB, free: 2.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005357/0.1254, allocations: 95.84 kB / 452.2 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003675/0.1291, allocations: 4.4 MB / 456.6 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.1294, allocations: 16.02 kB / 456.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.1294, allocations: 7.984 kB / 456.6 MB, free: 13.49 MB / 330.7 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.0001459/0.1295, allocations: 133.8 kB / 456.7 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.279e-05/0.1296, allocations: 31.56 kB / 456.7 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.1309, allocations: 0.4978 MB / 457.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.1309, allocations: 4 kB / 457.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1309, allocations: 0 / 457.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.1309, allocations: 3.984 kB / 457.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.1326, allocations: 0.8947 MB / 458.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.1326, allocations: 0 / 458.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004781/0.1331, allocations: 91.86 kB / 458.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006305/0.1337, allocations: 142.5 kB / 458.4 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.1338, allocations: 11.98 kB / 458.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002896/0.1367, allocations: 4.081 MB / 462.5 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.1367, allocations: 11.91 kB / 462.5 MB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.1384, allocations: 1.261 MB / 463.7 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.314e-05/0.1385, allocations: 108.7 kB / 463.8 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.1385, allocations: 8 kB / 463.9 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.1387, allocations: 15.98 kB / 463.9 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.112e-05/0.1388, allocations: 23.97 kB / 463.9 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.1388, allocations: 15.98 kB / 463.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001624/0.139, allocations: 190 kB / 464.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.139, allocations: 0 / 464.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006419/0.1397, allocations: 95.84 kB / 464.2 MB, free: 5.379 MB / 330.7 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 (24): * Single equations (assignments): 20 * 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.0001697/0.1398, allocations: 115.1 kB / 464.3 MB, free: 5.258 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.1417, allocations: 0.6414 MB / 464.9 MB, free: 4.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1417, allocations: 0 / 464.9 MB, free: 4.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008111/0.1425, allocations: 441.2 kB / 465.4 MB, free: 4.133 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003783/0.1429, allocations: 48.8 kB / 465.4 MB, free: 4.086 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.1441, allocations: 0.9279 MB / 466.3 MB, free: 3.117 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.1444, allocations: 0.7922 MB / 467.1 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.1445, allocations: 26.97 kB / 467.2 MB, free: 2.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.711e-05/0.1446, allocations: 27.44 kB / 467.2 MB, free: 2.242 MB / 330.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1446, allocations: 0 / 467.2 MB, free: 2.242 MB / 330.7 MB Notification: Performance of Templates: time 0.008534/0.1531, allocations: 4.634 MB / 471.8 MB, free: 13.61 MB / 346.7 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)