Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001101/0.001101, allocations: 190 kB / 16.25 MB, free: 6.625 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.382/1.382, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2126/0.2126, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001308, allocations: 64.14 kB / 380.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2502, allocations: 54.95 MB / 435.2 MB, free: 39.54 MB / 350.1 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.HeatExchanger_1vol_case_001): time 0.02784/0.278, allocations: 22.09 MB / 457.3 MB, free: 31.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006325/0.2787, allocations: 256.6 kB / 457.6 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.2788, allocations: 13.06 kB / 457.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.349e-05/0.2789, allocations: 20.08 kB / 457.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.2791, allocations: 89.66 kB / 457.7 MB, free: 31.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001327/0.2793, allocations: 38.92 kB / 457.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002153/0.2795, allocations: 285.8 kB / 458 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.2797, allocations: 145.2 kB / 458.2 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.2799, allocations: 124.4 kB / 458.3 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.28, allocations: 102 kB / 458.4 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.28, allocations: 15.25 kB / 458.4 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.754e-05/0.2801, allocations: 18.28 kB / 458.4 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.97e-05/0.2801, allocations: 36.33 kB / 458.5 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.745e-05/0.2802, allocations: 110 kB / 458.6 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.2804, allocations: 229.9 kB / 458.8 MB, free: 30.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2804, allocations: 0 / 458.8 MB, free: 30.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2804, allocations: 0 / 458.8 MB, free: 30.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.2804, allocations: 1.062 kB / 458.8 MB, free: 30.79 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006075/0.281, allocations: 0.5135 MB / 459.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.2811, allocations: 9.469 kB / 459.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.888e-05/0.2811, allocations: 25.44 kB / 459.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.2814, allocations: 270.2 kB / 459.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.2814, allocations: 11.7 kB / 459.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.338e-05/0.2814, allocations: 15.5 kB / 459.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.2817, allocations: 200.5 kB / 459.8 MB, free: 29.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2818, allocations: 192 / 459.8 MB, free: 29.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.2818, allocations: 10.5 kB / 459.8 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2818, allocations: 4.312 kB / 459.8 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002795/0.2821, allocations: 115.3 kB / 459.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007005/0.2828, allocations: 0.8541 MB / 460.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.283, allocations: 76.61 kB / 460.9 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.2831, allocations: 58.67 kB / 460.9 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.2831, allocations: 2.25 kB / 460.9 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.32e-05/0.2831, allocations: 38.91 kB / 461 MB, free: 29.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.2832, allocations: 0 / 461 MB, free: 29.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004574/0.2836, allocations: 188.1 kB / 461.2 MB, free: 28.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.2837, allocations: 53.56 kB / 461.2 MB, free: 28.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.2838, allocations: 228.4 kB / 461.4 MB, free: 28.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.2838, allocations: 30.77 kB / 461.5 MB, free: 28.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.957e-05/0.2839, allocations: 143.8 kB / 461.6 MB, free: 28.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.2839, allocations: 53.33 kB / 461.7 MB, free: 28.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.284, allocations: 30.3 kB / 461.7 MB, free: 28.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.25e-05/0.2841, allocations: 334.7 kB / 462 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.2842, allocations: 35.08 kB / 462 MB, free: 28.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.2843, allocations: 66.17 kB / 462.1 MB, free: 28.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007277/0.285, allocations: 222.6 kB / 462.3 MB, free: 28.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.285, allocations: 1.125 kB / 462.3 MB, free: 28.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003041/0.2853, allocations: 165.4 kB / 462.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2854, allocations: 6.031 kB / 462.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2854, allocations: 0 / 462.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.2854, allocations: 6.281 kB / 462.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.2856, allocations: 38.02 kB / 462.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.2856, allocations: 9.5 kB / 462.5 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.2857, allocations: 13.44 kB / 462.6 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.2858, allocations: 7.281 kB / 462.6 MB, free: 27.93 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.2859, allocations: 136 kB / 462.7 MB, free: 27.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.286, allocations: 25.62 kB / 462.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.625e-05/0.286, allocations: 29.59 kB / 462.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.286, allocations: 2.188 kB / 462.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.286, allocations: 3.938 kB / 462.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.286, allocations: 1.094 kB / 462.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.2862, allocations: 264.5 kB / 463 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2863, allocations: 0 / 463 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/0.2865, allocations: 32.62 kB / 463.1 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2865, allocations: 0 / 463.1 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.2865, allocations: 5.688 kB / 463.1 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2865, allocations: 0 / 463.1 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2865, allocations: 5.562 kB / 463.1 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000424/0.2869, allocations: 297.6 kB / 463.4 MB, free: 27.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.1e-05/0.287, allocations: 97.02 kB / 463.4 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.287, allocations: 1.344 kB / 463.4 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.2872, allocations: 6.875 kB / 463.5 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.514e-05/0.2872, allocations: 20.3 kB / 463.5 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.2872, allocations: 2.75 kB / 463.5 MB, free: 27.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001068/0.2873, allocations: 166.7 kB / 463.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2874, allocations: 0 / 463.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.2876, allocations: 44.78 kB / 463.7 MB, free: 27.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.475e-05/0.2877, allocations: 98.78 kB / 463.8 MB, free: 26.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.288, allocations: 129 kB / 463.9 MB, free: 26.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.288, allocations: 1.062 kB / 463.9 MB, free: 26.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.2882, allocations: 59 kB / 464 MB, free: 26.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.2885, allocations: 51.89 kB / 464 MB, free: 26.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008824/0.2894, allocations: 0.6267 MB / 464.6 MB, free: 26.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.2896, allocations: 0.7321 MB / 465.4 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001474/0.2897, allocations: 30.42 kB / 465.4 MB, free: 25.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.736e-05/0.2898, allocations: 19.75 kB / 465.4 MB, free: 25.76 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2898, allocations: 3.938 kB / 465.4 MB, free: 25.75 MB / 350.1 MB Notification: Performance of Templates: time 0.004959/0.2947, allocations: 2.274 MB / 467.7 MB, free: 25.34 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)