Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007911/0.0007911, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008937/0.0008938, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.352/1.352, allocations: 223.3 MB / 241 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2021/0.2021, allocations: 22.35 MB / 314.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003404, allocations: 8 kB / 383.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2772, allocations: 55.97 MB / 439.2 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.002107/0.2794, allocations: 2.503 MB / 441.7 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007125/0.2801, allocations: 402.4 kB / 442.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.2802, allocations: 14.25 kB / 442.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.086e-05/0.2803, allocations: 24.61 kB / 442.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002463/0.2806, allocations: 107.7 kB / 442.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001675/0.2807, allocations: 58.89 kB / 442.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.281, allocations: 347.5 kB / 442.7 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.2812, allocations: 141.5 kB / 442.8 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.2813, allocations: 141.2 kB / 442.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.2815, allocations: 114 kB / 443.1 MB, free: 37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.2815, allocations: 12.34 kB / 443.1 MB, free: 37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.475e-05/0.2816, allocations: 49.3 kB / 443.1 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.844e-05/0.2816, allocations: 39.77 kB / 443.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.495e-05/0.2817, allocations: 155.1 kB / 443.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.2819, allocations: 212.9 kB / 443.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.2819, allocations: 0 / 443.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2819, allocations: 0 / 443.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.282, allocations: 6.75 kB / 443.5 MB, free: 36.8 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0005851/0.2825, allocations: 0.5249 MB / 444 MB, free: 36.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2826, allocations: 12.78 kB / 444.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.02e-05/0.2826, allocations: 31 kB / 444.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.2829, allocations: 290 kB / 444.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.2829, allocations: 21.66 kB / 444.4 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.582e-05/0.283, allocations: 19.72 kB / 444.4 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.2832, allocations: 204.7 kB / 444.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.2833, allocations: 192 / 444.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.2833, allocations: 14.88 kB / 444.6 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.2833, allocations: 2.906 kB / 444.6 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.2835, allocations: 126.6 kB / 444.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00082/0.2843, allocations: 0.8265 MB / 445.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.2846, allocations: 100.4 kB / 445.7 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.93e-05/0.2847, allocations: 40.5 kB / 445.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.2847, allocations: 0 / 445.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.461e-05/0.2847, allocations: 41.47 kB / 445.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.22e-07/0.2847, allocations: 0 / 445.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002827/0.285, allocations: 147.7 kB / 445.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.667e-05/0.285, allocations: 61.59 kB / 446 MB, free: 34.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.2853, allocations: 288.2 kB / 446.2 MB, free: 34.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.2853, allocations: 25.7 kB / 446.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.711e-05/0.2854, allocations: 175.5 kB / 446.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.2854, allocations: 37.58 kB / 446.5 MB, free: 34.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.732e-05/0.2854, allocations: 16.34 kB / 446.5 MB, free: 34.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.2855, allocations: 344.6 kB / 446.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.515e-05/0.2856, allocations: 33.34 kB / 446.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.096e-05/0.2856, allocations: 64.5 kB / 446.9 MB, free: 34.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.2867, allocations: 257.5 kB / 447.2 MB, free: 34.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2867, allocations: 0 / 447.2 MB, free: 34.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002258/0.287, allocations: 164.1 kB / 447.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.287, allocations: 3.25 kB / 447.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.287, allocations: 3.531 kB / 447.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.287, allocations: 3.938 kB / 447.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001912/0.2872, allocations: 35.52 kB / 447.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.2872, allocations: 6.969 kB / 447.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.2874, allocations: 22.44 kB / 447.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.2874, allocations: 13.02 kB / 447.4 MB, free: 33.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.0001627/0.2875, allocations: 129.7 kB / 447.5 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.925e-05/0.2876, allocations: 23.03 kB / 447.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000279/0.2879, allocations: 164.4 kB / 447.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2879, allocations: 6.594 kB / 447.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2879, allocations: 0 / 447.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2879, allocations: 7.172 kB / 447.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002265/0.2881, allocations: 280.7 kB / 448 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2881, allocations: 0 / 448 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.2883, allocations: 34.83 kB / 448.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2883, allocations: 7.078 kB / 448.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.2883, allocations: 3.031 kB / 448.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2884, allocations: 3.938 kB / 448.1 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2884, allocations: 0 / 448.1 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.2886, allocations: 273.8 kB / 448.3 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.808e-05/0.2887, allocations: 101.9 kB / 448.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.2887, allocations: 2.969 kB / 448.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.2889, allocations: 12 kB / 448.4 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.2889, allocations: 6.062 kB / 448.5 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.2889, allocations: 2.844 kB / 448.5 MB, free: 33.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001498/0.2891, allocations: 213.7 kB / 448.7 MB, free: 33.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2891, allocations: 0 / 448.7 MB, free: 33.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002863/0.2894, allocations: 62.44 kB / 448.7 MB, free: 33 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 (13): * Single equations (assignments): 13 * 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 0.0001168/0.2895, allocations: 98.41 kB / 448.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001947/0.2897, allocations: 104 kB / 448.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2897, allocations: 0 / 448.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.738e-05/0.2898, allocations: 46.41 kB / 449 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.2902, allocations: 68.97 kB / 449 MB, free: 32.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008853/0.2911, allocations: 0.7545 MB / 449.8 MB, free: 32.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.2912, allocations: 0.753 MB / 450.5 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.792e-05/0.2913, allocations: 24.03 kB / 450.6 MB, free: 31.62 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2913, allocations: 0 / 450.6 MB, free: 31.62 MB / 350.1 MB Notification: Performance of Templates: time 0.004236/0.2955, allocations: 3.05 MB / 453.6 MB, free: 31.42 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)