/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 133 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 73157
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0449.1+1121_monthly_bin136
RA = 72.2823, Dec = 11.3569
tmin = 589507201, tmax = 592099201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='90261', job_status='RUN', time_executed='2021-10-13 13:47:39.098228', time_epoch_executed='1634158059.1' WHERE source_name='4FGL J0449.1+1121' and cadence='monthly' and bin_id='136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90261

Creating custom pfile directory:
/scratch/kocevski/90261/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=589507201.0 && nMetStart<592099201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=589507201.0 && nMetStart<592099201.0' /Data/Flight/Level1/LPA

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90261/ft1_4FGL_J0449.1+1121_monthly_bin136.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=589507201.0 && nMetStart<592099201.0' /Data/Flight/Level1/LPA

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90261/ft1_4FGL_J0449.1+1121_monthly_bin136.fits outfile=/scratch/kocevski/90261/ft1_filteredMKT_4FGL_J0449.1+1121_monthly_bin136.fits ra=72.2823 dec=11.3569 rad=12.0 tmin=589507201.0 tmax=592099201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 35.49
user 34.56
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/90261/ft1_filteredMKT_4FGL_J0449.1+1121_monthly_bin136.fits evtable="EVENTS" outfile="/scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.87
user 0.67
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits" evtable="EVENTS" scfile=/scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits sctable="SC_DATA" outfile=/scratch/kocevski/90261/ltcube_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits
.....................!
real 114.04
user 113.43
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits sctable="SC_DATA" expcube=/scratch/kocevski/90261/ltcube_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits outfile=/scratch/kocevski/90261/expmap_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/90261/ltcube_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits
.....................!
real 192.96
user 186.87
sys 5.70

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 156 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0449.1+1121 @ 72.2823 11.3569

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits scfile=/scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits outfile=/scratch/kocevski/90261/cmap_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=72.2823 yref=11.3569 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.79
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits scfile=/scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits outfile=/scratch/kocevski/90261/cmap_HighResolution_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=72.2823 yref=11.3569 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.82
user 0.61
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90261/Model_4FGL_J0449.1+1121_monthly_bin136.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
adding source S 147
Working on...
/scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits.....................!
real 2972.34
user 2965.79
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits', '/scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits', expMap='/scratch/kocevski/90261/expmap_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits', expCube='/scratch/kocevski/90261/ltcube_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90261/Model_4FGL_J0449.1+1121_monthly_bin136.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0449.1+1121'

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  2.534e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  2.382e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.389e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/90261/ft1_filtered_4FGL_J0449.1+1121_monthly_bin136.fits
Spacecraft file(s): /scratch/kocevski/90261/ft2_4FGL_J0449.1+1121_monthly_bin136.fits
Exposure map: /scratch/kocevski/90261/expmap_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits
Exposure cube: /scratch/kocevski/90261/ltcube_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90261/Model_4FGL_J0449.1+1121_monthly_bin136.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 150586.11623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 150585.420632

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11494E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3944       1.0000         .10000E-03   10000.    
     4 'norm      '    4.0172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.211       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0999       1.0000         .10000E-03   10000.    
     7 'norm      '    .49560E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.622       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2389       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99919       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5741       1.0000         .10000E-03   10000.    
    15 'norm      '    .16359       1.0000         .10000E-03   10000.    
    16 'norm      '    10.091       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3495       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6855       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3567       1.0000         .10000E-03   10000.    
    22 'norm      '    .78596       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11849E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .49452E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1387       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99612       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   150585.4     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     2776 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .67875         .0000    ** at limit **
   2  Prefactor     .10000E-03    3.7655         .0000    ** at limit **
   3  Prefactor     2.3942        3.4934         .0000        .58933E-03
   4  norm          4.0165        6.2809         .0000        .83202E-03
   5  Prefactor     21.208        6.7338         .0000        .24699E-02
   6  Prefactor     3.1002        2.7960         .0000        .49409E-01
   7  norm          .50548E-01    .14048         .0000        .67648E-02
   8  Prefactor     10.622        6.6856         .0000       -.43205E-04
   9  norm          1.2389        .62393         .0000        .12814E-01
  10  Prefactor     .99953        1.4945         .0000        .62530    
  11  norm          1.9852        .57900         .0000        .11794E-01
  12  Prefactor     .10000E-03    3.6530         .0000    ** at limit **
  13  Prefactor     12.137        8.5066         .0000       -.21831E-02
  14  Prefactor     2.5743        1.7192         .0000        .40367E-02
  15  norm          .16346        .12973         .0000        .41533E-01
  16  norm          10.092        1.3659         .0000        .46585E-02
  17  Prefactor     1.3495        .80282         .0000        .18267E-01
  18  norm          .10000E-03    .15810         .0000    ** at limit **
  19  Prefactor     1.6856        1.0426         .0000        .14944E-02
  20  Prefactor     .10000E-03    5.3360         .0000    ** at limit **
  21  norm          3.3564        1.4301         .0000        .15245    
  22  norm          .78588        .32797         .0000        .21560E-01
  23  Prefactor     .10009E-03    1.4079         .0000    ** at limit **
  24  Prefactor     .10030E-03    2.4195         .0000    ** at limit **
  25  Normalizat    1.1388        .84083E-01     .0000        .12455E-02
  26  Prefactor     .99611        .17793E-01     .0000        .21483E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.39422
  norm       = 4.01648
  Prefactor  = 21.2075
  Prefactor  = 3.10016
  norm       = 0.0505475
  Prefactor  = 10.6217
  norm       = 1.2389
  Prefactor  = 0.999528
  norm       = 1.98525
  Prefactor  = 0.000100001
  Prefactor  = 12.1369
  Prefactor  = 2.57426
  norm       = 0.163462
  norm       = 10.092
  Prefactor  = 1.34951
  norm       = 0.0001
  Prefactor  = 1.68559
  Prefactor  = 0.0001
  norm       = 3.35641
  norm       = 0.785879
  Prefactor  = 0.000100093
  Prefactor  = 0.000100296
  Normalizat = 1.13877
  Prefactor  = 0.996108
 **********
 **   18 **HESSE 
 **********

 FCN=   150585.4     FROM HESSE     STATUS=OK           504 CALLS     3280 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .75454        .10922       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3942        3.4788        .26465E-03   -1.5398    
   4  norm          4.0165        6.2675        .20120E-03   -1.5307    
   5  Prefactor     21.208        6.9290        .86969E-04   -1.4787    
   6  Prefactor     3.1002        2.7888        .11516E-02   -1.5356    
   7  norm          .50548E-01    2.0073        .21289E-02   -1.5663    
   8  Prefactor     10.622        6.6824        .12294E-03   -1.5056    
   9  norm          1.2389        .61464        .20925E-03   -1.5485    
  10  Prefactor     .99953        1.4677        .26326E-02   -1.5508    
  11  norm          1.9852        .57422        .15114E-03   -1.5426    
  12  Prefactor     .10000E-03    3.6871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.137        8.2501        .11504E-03   -1.5011    
  14  Prefactor     2.5743        1.7137        .25439E-03   -1.5387    
  15  norm          .16346        .14929        .99546E-03   -1.5627    
  16  norm          10.092        1.3433        .12614E-03   -1.5073    
  17  Prefactor     1.3495        .79267        .25519E-03   -1.5476    
  18  norm          .10000E-03    .16055        .15065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6856        1.0429        .32436E-04   -1.5448    
  20  Prefactor     .10000E-03    5.3657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3564        1.4288        .11044E-02   -1.5342    
  22  norm          .78588        .27358        .13412E-02   -1.5531    
  23  Prefactor     .10009E-03    1.4717        .12712       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10030E-03    2.3275        .15589       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1388        .88411E-01    .55939E-03   -.88517    
  26  Prefactor     .99611        .19209E-01    .13950E-03   -.92859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69348e-07
Minuit parameter uncertainties:
  1  3.33619e-06
  2  6.17596e-05
  3  3.47908
  4  6.26849
  5  6.92925
  6  2.78892
  7  0.63646
  8  6.68284
  9  0.614645
  10  1.4678
  11  0.574223
  12  0.000106028
  13  8.25085
  14  1.71375
  15  0.149286
  16  1.34329
  17  0.792674
  18  8.32803e-07
  19  1.04296
  20  4.65374e-06
  21  1.42886
  22  0.273583
  23  0.000741784
  24  0.00165936
  25  0.0884228
  26  0.0192096
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 150585.420528

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.985e+00  5.742e-01  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  2.382e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.389e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.961e-01  1.921e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.139e+00  8.842e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.43
Ra Dec: 72.282 11.357
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 4.47e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 150585.351325
delta logL = 0.0692035988613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 150585.34933
delta logL = 0.0711983056681

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9689       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5036       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   150585.3     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      265 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9690        .58349        .14702E-03    .56667E-03
   2  alpha         2.5035        .33608        .36640E-01    .72998E-03
   3  Normalizat    1.1324        .80533E-01    .56076E-03    .20631E-04
   4  Prefactor     .99690        .18657E-01    .13945E-03   -.26088E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96897
  alpha      = 2.50347
  Normalizat = 1.13239
  Prefactor  = 0.996896
 **********
 **   18 **HESSE 
 **********

 FCN=   150585.3     FROM HESSE     STATUS=OK            27 CALLS      292 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9690        .56933        .29403E-04   -1.5427    
   2  alpha         2.5035        .32787        .73281E-02    .13873E-02
   3  Normalizat    1.1324        .80516E-01    .11215E-03   -.88719    
   4  Prefactor     .99690        .18647E-01    .55780E-05   -.92833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41791e-11
Minuit parameter uncertainties:
  1  0.56933
  2  0.328816
  3  0.0805243
  4  0.0186467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90261': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 150585.34933
delta logL = 0.0711983942892

Extracting fit parameters...

4FGL J0449.1+1121
   Spectrum: LogParabola
207         norm:  1.969e+00  5.693e-01  1.000e-04  1.000e+04 ( 1.000e-11)
208        alpha:  2.503e+00  3.288e-01  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.389e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  4.823e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.969e-01  1.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.132e+00  8.052e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.61
Ra Dec: 72.282 11.357
Photon Index (Free Index): 2.50 +/- 0.33
Photon Flux (Free Index): 5.69e-08 +/- 2.05e-08
Energy Flux (Free Index): 1.55e-05 +/- 4.37e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/90261/cmap_HighResolution_589507201_592099201_4FGL_J0449.1+1121_monthly_bin136.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/90261

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='1.55e-05', photon_flux_error='1.50e-08', dlogl='7.12e-02', energy_flux='1.55e-05', photon_flux2='5.69e-08', job_status='DONE', time_completed='2021-10-13 16:33:26.764307', photon_index_error2='0.33', photon_index2='2.50', ts='17.43', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='4.37e-06', EG='1.14', time_epoch_completed='1634168006.76', return_code='0', job_id='90261', GAL2='1.00', EG2='1.13', return_code2='0', energy_flux_error='4.47e-06', photon_flux_error2='2.05e-08', ts2='17.61', photon_index='2.38' WHERE bin_id='136' AND source_name='4FGL J0449.1+1121' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 13 16:33:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 90261: <4FGL_J0449.1+1121_monthly_bin136> in cluster <slac> Done

Job <4FGL_J0449.1+1121_monthly_bin136> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Oct 13 13:45:14 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 13 13:45:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 13 13:45:16 2021
Terminated at Wed Oct 13 16:33:28 2021
Results reported at Wed Oct 13 16:33:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0449.1+1121_monthly_bin136 72.2823 11.3569 589507201 592099201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0449.1+1121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9851.00 sec.
    Max Memory :                                 640 MB
    Average Memory :                             502.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10091 sec.
    Turnaround time :                            10094 sec.

The output (if any) is above this job summary.

