/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 98 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 = 7329
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin816
RA = 186.228, Dec = 21.3814
tmin = 450835201, tmax = 451094401
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='601369', job_status='RUN', time_executed='2021-09-05 13:33:09.418662', time_epoch_executed='1630873989.42' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601369

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601369/ft1_4FGL_J1224.9+2122_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601369/ft1_4FGL_J1224.9+2122_daily_bin816.fits outfile=/scratch/kocevski/601369/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin816.fits ra=186.228 dec=21.3814 rad=12.0 tmin=450835201.0 tmax=451094401.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 3.43
user 3.16
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.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/601369/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin816.fits evtable="EVENTS" outfile="/scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/601369/ltcube_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.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/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits
.....................!
real 15.11
user 14.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/601369/ltcube_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.fits outfile=/scratch/kocevski/601369/expmap_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.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/601369/ltcube_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.fits
.....................!
real 190.33
user 185.05
sys 4.85

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
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.fits scfile=/scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits outfile=/scratch/kocevski/601369/cmap_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.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=186.228 yref=21.3814 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.66
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.fits scfile=/scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits outfile=/scratch/kocevski/601369/cmap_HighResolution_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.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=186.228 yref=21.3814 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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601369/Model_4FGL_J1224.9+2122_daily_bin816.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
Working on...
/scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.fits.....................!
real 55.83
user 53.90
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.fits', '/scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits', expMap='/scratch/kocevski/601369/expmap_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.fits', expCube='/scratch/kocevski/601369/ltcube_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601369/Model_4FGL_J1224.9+2122_daily_bin816.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/601369/ft1_filtered_4FGL_J1224.9+2122_daily_bin816.fits
Spacecraft file(s): /scratch/kocevski/601369/ft2_4FGL_J1224.9+2122_daily_bin816.fits
Exposure map: /scratch/kocevski/601369/expmap_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.fits
Exposure cube: /scratch/kocevski/601369/ltcube_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601369/Model_4FGL_J1224.9+2122_daily_bin816.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) = 5872.79403919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3089       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2481       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6775       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10697       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7487       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2814       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3679       1.0000         .10000E-03   10000.    
    14 'norm      '    .73185       1.0000         .10000E-03   10000.    
    15 'norm      '    10.739       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8921       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17865E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8334       1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4251       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .60737       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5872.717     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2960 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.413        21.661        .26522E-05    .26184E-04
   2  Prefactor     .10000E-03    16.659       -.14849E-06** at limit **
   3  Prefactor     4.3088        2.3596       -.86170E-07   -.49390E-04
   4  norm          2.2479        1.0688       -.14400E-07   -.69476E-04
   5  Prefactor     .10000E-03    5.9592       -.51444E-06** at limit **
   6  Prefactor     .10000E-03    2.2908       -.10325E-07** at limit **
   7  Prefactor     6.5514        234.70        .36255E-04   -.32910E-05
   8  Prefactor     .11410        1.2922        .81334E-07   -.83158E-04
   9  Prefactor     .10000E-03    .88932       -.13713E-07** at limit **
  10  norm          3.7488        2.4171        .20396E-07    .10598E-05
  11  Prefactor     .10000E-03    .65830        .35462E-08** at limit **
  12  Prefactor     3.2816        2.2003        .54270E-07   -.92785E-05
  13  Prefactor     1.3686        4.6233        .37704E-06    .46258E-05
  14  norm          .73175        .26610        .13789E-07   -.20273E-03
  15  norm          10.738        5.2829        .35631E-07   -.14752E-04
  16  Prefactor     1.8946        9.3971        .64657E-05    .24713E-04
  17  Prefactor     .10000E-03    3.9014       -.79864E-08** at limit **
  18  Prefactor     .10000E-03    8.8433        .16496E-05** at limit **
  19  Prefactor     29.598        46.548        .13214E-05    .53058E-05
  20  Prefactor     .10004E-03    5.0361        .10449E-05** at limit **
  21  Prefactor     7.8265        17.351        .10113E-05   -.28239E-05
  22  norm          .10000E-03    1.6251        .22524E-07** at limit **
  23  norm          .10000E-03    8.1604       -.99497E-06** at limit **
  24  Normalizat    1.4253        .18547        .68999E-06   -.13957E-03
  25  Prefactor     .60705        .18511       -.31041E-05   -.62680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4129
  Prefactor  = 0.0001
  Prefactor  = 4.30878
  norm       = 2.24791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.55143
  Prefactor  = 0.114105
  Prefactor  = 0.0001
  norm       = 3.74877
  Prefactor  = 0.0001
  Prefactor  = 3.28156
  Prefactor  = 1.36857
  norm       = 0.731754
  norm       = 10.7385
  Prefactor  = 1.89458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.5975
  Prefactor  = 0.000100039
  Prefactor  = 7.82649
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.42525
  Prefactor  = 0.60705
 **********
 **   18 **HESSE 
 **********

 FCN=   5872.717     FROM HESSE     STATUS=OK           435 CALLS     3395 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.413        21.715        .11357E-03   -1.5003    
   2  Prefactor     .10000E-03    16.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3088        2.3520        .80199E-04   -1.5293    
   4  norm          2.2479        1.0692        .52675E-04   -1.5408    
   5  Prefactor     .10000E-03    5.9717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3270        .11316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5514        234.87        .15528E-03   -1.5196    
   8  Prefactor     .11410        9.9519        .16504E-02   -1.5640    
   9  Prefactor     .10000E-03    .89487        .70513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7488        2.4152        .91847E-04   -1.5321    
  11  Prefactor     .10000E-03    .66054        .60661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2816        2.1942        .88363E-04   -1.5346    
  13  Prefactor     1.3686        4.5517        .27853E-03   -1.5474    
  14  norm          .73175        .26494        .22675E-04   -1.5537    
  15  norm          10.738        5.2457        .11328E-03   -1.5052    
  16  Prefactor     1.8946        9.4198        .15124E-02   -1.5433    
  17  Prefactor     .10000E-03    3.9082        .14781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.598        46.588        .73632E-04   -1.4619    
  20  Prefactor     .10004E-03    35.911        .32686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8265        17.355        .14327E-03   -1.5148    
  22  norm          .10000E-03    1.6469        .95372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.1654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4253        .21401        .21914E-03   -.79901    
  25  Prefactor     .60705        .21022        .32336E-03   -1.0729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64244e-08
Minuit parameter uncertainties:
  1  21.7292
  2  1.9721e-05
  3  2.35201
  4  1.06924
  5  4.8769e-05
  6  1.98534e-06
  7  78.7892
  8  2.13068
  9  8.56475e-07
  10  2.41523
  11  1.75507e-07
  12  2.19425
  13  4.55286
  14  0.264937
  15  5.2459
  16  8.45094
  17  6.19265e-07
  18  1.45809e-05
  19  46.6453
  20  0.00236366
  21  17.3659
  22  9.30961e-07
  23  8.40015e-06
  24  0.214143
  25  0.210489
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.318e-01  2.649e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.070e-01  2.105e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.425e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.49
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.47e-08
Energy Flux (Fixed Index): 4.30e-05 +/- 1.56e-05

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) = 5872.23941809
delta logL = 0.477704874964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5872.22870575
delta logL = 0.48841721568

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5872.229     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      236 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70126        3.9938        .46936E-02   -.42769E-03
   2  alpha         2.6631        3.7336        .25096        .22115E-04
   3  Normalizat    1.3880        .13891        .50073E-01    .35637E-04
   4  Prefactor     .63291        .16750        .71666E-01   -.16013E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.701257
  alpha      = 2.6631
  Normalizat = 1.38799
  Prefactor  = 0.632911
 **********
 **   18 **HESSE 
 **********

 FCN=   5872.229     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70126        .25914        .20845E-04   -1.5540    
   2  alpha         2.6631        .41197        .10627E-01    .65287E-01
   3  Normalizat    1.3880        .20980        .22137E-03   -.80977    
   4  Prefactor     .63291        .20844        .31722E-03   -1.0622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00421e-11
Minuit parameter uncertainties:
  1  0.259143
  2  0.413863
  3  0.209931
  4  0.208692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601369': 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) = 5872.22870574
delta logL = 0.488417227597

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.013e-01  2.591e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.663e+00  4.139e-01  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.329e-01  2.087e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.388e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.42
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.66 +/- 0.41
Photon Flux (Free Index): 1.54e-07 +/- 5.85e-08
Energy Flux (Free Index): 3.72e-05 +/- 1.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/601369/cmap_HighResolution_450835201_451094401_4FGL_J1224.9+2122_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.72e-05', photon_flux_error='4.47e-08', dlogl='4.88e-01', energy_flux='4.30e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-05 13:43:58.498437', photon_index_error2='0.41', photon_index2='2.66', ts='16.49', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.43', time_epoch_completed='1630874638.5', return_code='0', job_id='601369', GAL2='0.63', EG2='1.39', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='5.85e-08', ts2='17.42', photon_index='2.28' WHERE bin_id='816' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:43:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 601369: <4FGL_J1224.9+2122_daily_bin816> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin816> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:30:37 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:30:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:30:39 2021
Terminated at Sun Sep  5 13:43:59 2021
Results reported at Sun Sep  5 13:43:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin816 186.228 21.3814 450835201 451094401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   643.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

