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.001432/0.001432, allocations: 115.2 kB / 16.42 MB, free: 6.457 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.001655/0.001655, allocations: 183.9 kB / 17.35 MB, free: 5.734 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.333/1.333, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08911/0.08911, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002465/0.002465, allocations: 67.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1144, allocations: 54.95 MB / 492.7 MB, free: 4.77 MB / 366.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.3876/0.502, allocations: 22.36 MB / 0.503 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008942/0.503, allocations: 389.8 kB / 0.5033 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.5031, allocations: 3.25 kB / 0.5033 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.62e-05/0.5032, allocations: 51.25 kB / 0.5034 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.5034, allocations: 109.3 kB / 0.5035 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002888/0.5037, allocations: 108.4 kB / 0.5036 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002924/0.504, allocations: 409.3 kB / 0.504 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000287/0.5043, allocations: 252.2 kB / 0.5042 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.5044, allocations: 173.6 kB / 0.5044 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.5046, allocations: 208.6 kB / 0.5046 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.178e-05/0.5047, allocations: 40.03 kB / 0.5046 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.5048, allocations: 67.17 kB / 0.5047 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.883e-05/0.5049, allocations: 84.42 kB / 0.5048 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.505, allocations: 196.7 kB / 0.505 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004211/0.5054, allocations: 442.1 kB / 0.5054 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.5055, allocations: 3.25 kB / 0.5054 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.5055, allocations: 0 / 0.5054 GB, free: 5.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.5055, allocations: 0 / 0.5054 GB, free: 5.43 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.001004/0.5065, allocations: 0.6905 MB / 0.5061 GB, free: 4.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.5065, allocations: 7.531 kB / 0.5061 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.757e-05/0.5066, allocations: 43.42 kB / 0.5061 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.5069, allocations: 309.3 kB / 0.5064 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.5069, allocations: 19 kB / 0.5064 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.507, allocations: 26.84 kB / 0.5065 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004978/0.5075, allocations: 279.2 kB / 0.5067 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.5075, allocations: 192 / 0.5067 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.5075, allocations: 16.94 kB / 0.5067 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.5075, allocations: 7.594 kB / 0.5067 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005672/0.5081, allocations: 251.6 kB / 0.507 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.5094, allocations: 0.8099 MB / 0.5078 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.5099, allocations: 246.1 kB / 0.508 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003184/0.5102, allocations: 137.5 kB / 0.5081 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.5102, allocations: 10.17 kB / 0.5081 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.5103, allocations: 36.09 kB / 0.5082 GB, free: 4.223 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001968/0.5105, allocations: 48.11 kB / 0.5082 GB, free: 4.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.5105, allocations: 2.656 kB / 0.5082 GB, free: 4.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003425/0.5139, allocations: 0.9673 MB / 0.5092 GB, free: 3.844 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.488e-05/0.5139, allocations: 55.66 kB / 0.5092 GB, free: 3.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.5142, allocations: 286 kB / 0.5095 GB, free: 3.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.5142, allocations: 33.11 kB / 0.5095 GB, free: 3.645 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.035e-05/0.5143, allocations: 188.8 kB / 0.5097 GB, free: 3.531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.702e-05/0.5144, allocations: 77.73 kB / 0.5098 GB, free: 3.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.031e-05/0.5145, allocations: 52.47 kB / 0.5098 GB, free: 3.465 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.006e-05/0.5145, allocations: 336.8 kB / 0.5102 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/0.5148, allocations: 103.3 kB / 0.5103 GB, free: 3.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.5151, allocations: 105.9 kB / 0.5104 GB, free: 3.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005048/0.5156, allocations: 236.4 kB / 0.5106 GB, free: 3.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5156, allocations: 0 / 0.5106 GB, free: 3.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001714/0.5173, allocations: 0.4979 MB / 0.5111 GB, free: 3.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.5173, allocations: 5.531 kB / 0.5111 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.5173, allocations: 0 / 0.5111 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.5185, allocations: 206.5 kB / 0.5113 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005736/0.5191, allocations: 88.03 kB / 0.5114 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003499/0.5226, allocations: 4.771 MB / 0.516 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.5228, allocations: 15.05 kB / 0.516 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.5229, allocations: 18.86 kB / 0.516 GB, free: 14.84 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.000149/0.523, allocations: 138 kB / 0.5162 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.787e-05/0.5231, allocations: 30.27 kB / 0.5162 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001346/0.5245, allocations: 0.5173 MB / 0.5167 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.5245, allocations: 3.766 kB / 0.5167 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.5245, allocations: 0 / 0.5167 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.588e-05/0.5246, allocations: 111.4 kB / 0.5168 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.046e-05/0.5246, allocations: 7.094 kB / 0.5168 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.5248, allocations: 19.78 kB / 0.5168 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.127e-05/0.5249, allocations: 34.91 kB / 0.5169 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001449/0.5264, allocations: 0.5668 MB / 0.5174 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001038/0.5274, allocations: 0.663 MB / 0.5181 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002764/0.5277, allocations: 143.4 kB / 0.5182 GB, free: 14.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001818/0.5279, allocations: 207.5 kB / 0.5184 GB, free: 14 MB / 398.1 MB Notification: Performance of Backend: time 5.51e-07/0.5279, allocations: 0 / 0.5184 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001994/0.5299, allocations: 0.6237 MB / 0.519 GB, free: 13.7 MB / 398.1 MB Notification: Performance of SimCode: time 0.001147/0.5311, allocations: 1.135 MB / 0.5201 GB, free: 12.88 MB / 398.1 MB Notification: Performance of Templates: time 0.009537/0.5406, allocations: 5.178 MB / 0.5252 GB, free: 11.73 MB / 398.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)