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.1599/0.1599, allocations: 21.46 MB / 36.42 MB, free: 1.199 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.001379/0.001379, allocations: 186.6 kB / 42.65 MB, free: 3.988 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.523/1.523, allocations: 205.4 MB / 254.1 MB, free: 15.23 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.0007898/0.0007901, allocations: 92.73 kB / 307.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.000322, allocations: 9.281 kB / 373.3 MB, free: 59.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09141/0.09176, allocations: 52.96 MB / 426.2 MB, free: 13.01 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_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/flowOnePort_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.002378/0.09419, allocations: 2.48 MB / 428.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008824/0.09508, allocations: 406.6 kB / 429.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002141/0.09532, allocations: 4 kB / 429.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.828e-05/0.09542, allocations: 35.69 kB / 429.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002683/0.0957, allocations: 107.1 kB / 429.2 MB, free: 9.973 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.096, allocations: 67.92 kB / 429.3 MB, free: 9.906 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003003/0.09631, allocations: 362.3 kB / 429.7 MB, free: 9.551 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.09664, allocations: 205.1 kB / 429.9 MB, free: 9.352 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.09683, allocations: 131.5 kB / 430 MB, free: 9.223 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.09703, allocations: 179.3 kB / 430.2 MB, free: 9.047 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.09709, allocations: 24 kB / 430.2 MB, free: 9.023 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.09723, allocations: 51.97 kB / 430.2 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.548e-05/0.09728, allocations: 71.73 kB / 430.3 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.121e-05/0.09736, allocations: 85.45 kB / 430.4 MB, free: 8.812 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.0976, allocations: 303.2 kB / 430.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.09762, allocations: 0 / 430.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09762, allocations: 0 / 430.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.09764, allocations: 0 / 430.7 MB, free: 8.516 MB / 298.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.001006/0.09865, allocations: 0.6078 MB / 431.3 MB, free: 7.859 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.0987, allocations: 8.031 kB / 431.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.852e-05/0.0988, allocations: 43.53 kB / 431.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.09913, allocations: 278 kB / 431.6 MB, free: 7.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.09916, allocations: 24.52 kB / 431.6 MB, free: 7.477 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.09921, allocations: 28 kB / 431.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000523/0.09974, allocations: 280.8 kB / 431.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.09976, allocations: 4 kB / 431.9 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.09979, allocations: 8 kB / 432 MB, free: 7.156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.09981, allocations: 8 kB / 432 MB, free: 7.148 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005421/0.1004, allocations: 262.1 kB / 432.2 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.1017, allocations: 0.8072 MB / 433 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006817/0.1024, allocations: 271 kB / 433.3 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003082/0.1027, allocations: 145.2 kB / 433.4 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.1027, allocations: 4.172 kB / 433.4 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.1028, allocations: 42.75 kB / 433.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002098/0.103, allocations: 39.73 kB / 433.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.974e-06/0.103, allocations: 0 / 433.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.003147/0.1061, allocations: 0.9773 MB / 434.5 MB, free: 4.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/0.1062, allocations: 55.41 kB / 434.5 MB, free: 4.398 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.1064, allocations: 266.7 kB / 434.8 MB, free: 4.129 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.1064, allocations: 29.7 kB / 434.8 MB, free: 4.094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.252e-05/0.1065, allocations: 176.5 kB / 435 MB, free: 3.918 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.1066, allocations: 78.84 kB / 435.1 MB, free: 3.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.476e-05/0.1066, allocations: 7.938 kB / 435.1 MB, free: 3.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.327e-05/0.1067, allocations: 338.8 kB / 435.4 MB, free: 3.492 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.1069, allocations: 112.4 kB / 435.5 MB, free: 3.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.1072, allocations: 105.8 kB / 435.6 MB, free: 3.281 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000257/0.1074, allocations: 125.6 kB / 435.8 MB, free: 3.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1075, allocations: 0 / 435.8 MB, free: 3.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001547/0.109, allocations: 0.5033 MB / 436.3 MB, free: 2.641 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.109, allocations: 8 kB / 436.3 MB, free: 2.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.1091, allocations: 0 / 436.3 MB, free: 2.633 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.1102, allocations: 202.4 kB / 436.5 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006119/0.1108, allocations: 99.84 kB / 436.6 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00388/0.1147, allocations: 4.384 MB / 440.9 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.115, allocations: 24.11 kB / 441 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.115, allocations: 15.98 kB / 441 MB, free: 13.58 MB / 314.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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.1152, allocations: 137.8 kB / 441.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.851e-05/0.1153, allocations: 23.72 kB / 441.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.1167, allocations: 0.5172 MB / 441.7 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1167, allocations: 4 kB / 441.7 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1167, allocations: 7.953 kB / 441.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1167, allocations: 3.984 kB / 441.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.1185, allocations: 0.9222 MB / 442.6 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1185, allocations: 0 / 442.6 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005443/0.1191, allocations: 99.81 kB / 442.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007193/0.1198, allocations: 154.4 kB / 442.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.1199, allocations: 4 kB / 442.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003022/0.1229, allocations: 4.077 MB / 446.9 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.1229, allocations: 4.062 kB / 446.9 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.1242, allocations: 0.5564 MB / 447.5 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.1243, allocations: 104.7 kB / 447.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.1243, allocations: 7.938 kB / 447.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.1246, allocations: 27.97 kB / 447.6 MB, free: 6.469 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.092e-05/0.1247, allocations: 23.97 kB / 447.7 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.1247, allocations: 8 kB / 447.7 MB, free: 6.438 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001835/0.1249, allocations: 198 kB / 447.9 MB, free: 6.246 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1249, allocations: 0 / 447.9 MB, free: 6.246 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005215/0.1254, allocations: 95.84 kB / 447.9 MB, free: 6.152 MB / 314.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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001714/0.1256, allocations: 115 kB / 448.1 MB, free: 6.031 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.1277, allocations: 0.6532 MB / 448.7 MB, free: 5.352 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1277, allocations: 0 / 448.7 MB, free: 5.352 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009186/0.1287, allocations: 457.1 kB / 449.2 MB, free: 4.879 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.1291, allocations: 51.56 kB / 449.2 MB, free: 4.832 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.1302, allocations: 0.7146 MB / 449.9 MB, free: 4.086 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.1306, allocations: 0.7844 MB / 450.7 MB, free: 3.273 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.1307, allocations: 35 kB / 450.7 MB, free: 3.242 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.1308, allocations: 19.44 kB / 450.8 MB, free: 3.223 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1308, allocations: 0 / 450.8 MB, free: 3.223 MB / 314.7 MB Notification: Performance of Templates: time 0.008237/0.139, allocations: 4.224 MB / 455 MB, free: 14.99 MB / 330.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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)