/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 60 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 = 7520
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1401
RA = 186.228, Dec = 21.3814
tmin = 602467201, tmax = 602726401
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='603379', job_status='RUN', time_executed='2021-09-05 13:37:30.475982', time_epoch_executed='1630874250.48' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603379

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603379/ft1_4FGL_J1224.9+2122_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603379/ft2_4FGL_J1224.9+2122_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603379/ft1_4FGL_J1224.9+2122_daily_bin1401.fits outfile=/scratch/kocevski/603379/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1401.fits ra=186.228 dec=21.3814 rad=12.0 tmin=602467201.0 tmax=602726401.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.31
user 3.00
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603379/ft2_4FGL_J1224.9+2122_daily_bin1401.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/603379/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1401.fits evtable="EVENTS" outfile="/scratch/kocevski/603379/ft1_filtered_4FGL_J1224.9+2122_daily_bin1401.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.51
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603379/ft1_filtered_4FGL_J1224.9+2122_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/603379/ft2_4FGL_J1224.9+2122_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/603379/ltcube_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.fits outfile=/scratch/kocevski/603379/expmap_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.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/603379/ltcube_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.fits
.....................!
real 190.88
user 186.10
sys 4.37

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/603379/ft1_filtered_4FGL_J1224.9+2122_daily_bin1401.fits scfile=/scratch/kocevski/603379/ft2_4FGL_J1224.9+2122_daily_bin1401.fits outfile=/scratch/kocevski/603379/cmap_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603379/ft1_filtered_4FGL_J1224.9+2122_daily_bin1401.fits scfile=/scratch/kocevski/603379/ft2_4FGL_J1224.9+2122_daily_bin1401.fits outfile=/scratch/kocevski/603379/cmap_HighResolution_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.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.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603379/ft1_filtered_4FGL_J1224.9+2122_daily_bin1401.fits', '/scratch/kocevski/603379/ft2_4FGL_J1224.9+2122_daily_bin1401.fits', expMap='/scratch/kocevski/603379/expmap_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.fits', expCube='/scratch/kocevski/603379/ltcube_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603379/Model_4FGL_J1224.9+2122_daily_bin1401.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/603379/ft1_filtered_4FGL_J1224.9+2122_daily_bin1401.fits
Spacecraft file(s): /scratch/kocevski/603379/ft2_4FGL_J1224.9+2122_daily_bin1401.fits
Exposure map: /scratch/kocevski/603379/expmap_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.fits
Exposure cube: /scratch/kocevski/603379/ltcube_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603379/Model_4FGL_J1224.9+2122_daily_bin1401.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) = 2033.872081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.888       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.727       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8039       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.913       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .38222       1.0000         .10000E-03   10000.    
    15 'norm      '    .27443E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    137.13       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0367       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.046       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3009       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .51970       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2679       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=   2033.864     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2864 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.668        .17923E-05** at limit **
   2  Prefactor     22.890        32.738        .16100E-05   -.16186E-05
   3  Prefactor     .10000E-03    3.4673       -.10937E-06** at limit **
   4  norm          .10000E-03    3.2682        .13204E-07** at limit **
   5  Prefactor     10.556        46.356       -.27280E-04   -.43632E-05
   6  Prefactor     18.725        15.186       -.12370E-06   -.27138E-04
   7  Prefactor     .10000E-03    110.11       -.26057E-05** at limit **
   8  Prefactor     .10000E-03    2.5993       -.45193E-07** at limit **
   9  Prefactor     .10000E-03    2.3164        .49640E-07** at limit **
  10  norm          .10001E-03    15.425        .44458E-06** at limit **
  11  Prefactor     9.8023        7.7472       -.32329E-05   -.13228E-03
  12  Prefactor     20.910        7.8492       -.25281E-05   -.28465E-03
  13  Prefactor     .10000E-03    5.4911       -.19560E-08** at limit **
  14  norm          .38211        .55200       -.20647E-06   -.13353E-02
  15  norm          .10004E-03    8.9234        .32410E-05** at limit **
  16  Prefactor     .10000E-03    11.530        .13905E-05** at limit **
  17  Prefactor     .10000E-03    6.7819        .52814E-06** at limit **
  18  Prefactor     47.295        42.209        .60105E-06   -.66320E-06
  19  Prefactor     137.13        169.62       -.34089E-05   -.29821E-05
  20  Prefactor     7.0366        6.8899       -.26635E-06    .37136E-04
  21  Prefactor     12.046        17.507       -.51688E-06   -.15202E-04
  22  norm          5.3011        4.5548       -.19548E-05   -.26569E-04
  23  norm          .10000E-03    11.530       -.61808E-06** at limit **
  24  Normalizat    .51972        .31543        .78418E-05   -.78622E-04
  25  Prefactor     1.2678        .30703        .34219E-06   -.80099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.8897
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5559
  Prefactor  = 18.7251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 9.8023
  Prefactor  = 20.9103
  Prefactor  = 0.0001
  norm       = 0.382113
  norm       = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.2952
  Prefactor  = 137.13
  Prefactor  = 7.03658
  Prefactor  = 12.0463
  norm       = 5.30111
  norm       = 0.0001
  Normalizat = 0.519717
  Prefactor  = 1.26775
 **********
 **   18 **HESSE 
 **********

 FCN=   2033.864     FROM HESSE     STATUS=OK           423 CALLS     3287 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.890        32.766        .83726E-04   -1.4751    
   3  Prefactor     .10000E-03    3.4787        .82007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.3348        .79567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.556        46.214        .12323E-03   -1.5058    
   6  Prefactor     18.725        15.150        .92552E-04   -1.4842    
   7  Prefactor     .10000E-03    110.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6027        .70977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3243        .67022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    15.900        .34350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8023        7.7189        .10450E-03   -1.5082    
  12  Prefactor     20.910        7.8547        .72186E-04   -1.4793    
  13  Prefactor     .10000E-03    5.4992        .10319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .38211        .53258        .36679E-04   -1.5584    
  15  norm          .10004E-03    20.396        .25720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.555        .14951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7848        .11473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.295        42.216        .58306E-04   -1.4331    
  19  Prefactor     137.13        169.58        .34394E-04   -1.3361    
  20  Prefactor     7.0366        6.8934        .11364E-03   -1.5177    
  21  Prefactor     12.046        17.499        .11542E-03   -1.5014    
  22  norm          5.3011        4.5508        .85977E-04   -1.5247    
  23  norm          .10000E-03    11.532        .14959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .51972        .34709        .34224E-03   -1.1151    
  25  Prefactor     1.2678        .34472        .23475E-03   -.84271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55418e-09
Minuit parameter uncertainties:
  1  1.38563e-06
  2  32.7913
  3  6.1076e-06
  4  2.30268e-05
  5  44.231
  6  15.153
  7  0.000410308
  8  4.2171e-07
  9  2.57373e-07
  10  0.000840673
  11  7.7197
  12  7.85504
  13  3.8858e-06
  14  0.532591
  15  0.00169285
  16  2.71576e-05
  17  1.36667e-05
  18  42.2428
  19  170.187
  20  6.89415
  21  17.5069
  22  4.55109
  23  3.18302e-06
  24  0.34855
  25  0.345345
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.821e-01  5.326e-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:  1.268e+00  3.453e-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:  5.197e-01  3.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.66
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 2.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603379/likelihoodResults_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.txt

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) = 2032.77201859
delta logL = 1.09212207771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2032.75297457
delta logL = 1.11116610153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88389E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .36136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3898       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=   2032.753     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88344E-01    2.5417        .21520E-02    .71703E-03
   2  alpha         5.0000        4.0075        .46278    ** at limit **
   3  Normalizat    .36166        .35965        .91544E-01    .26391E-05
   4  Prefactor     1.3896        .30806        .51050E-01   -.29496E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0883436
  alpha      = 5
  Normalizat = 0.361661
  Prefactor  = 1.3896
 **********
 **   18 **HESSE 
 **********

 FCN=   2032.753     FROM HESSE     STATUS=OK            29 CALLS      292 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88344E-01    .68734E-01    .95847E-05   -1.5649    
   2  alpha         5.0000        3.6851        .44002E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .36166        .34325        .40562E-03   -1.1933    
   4  Prefactor     1.3896        .34956        .22566E-03   -.80680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89546e-12
Minuit parameter uncertainties:
  1  0.0687343
  2  1.38494e-07
  3  0.34527
  4  0.350156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603379': 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) = 2032.75297335
delta logL = 1.11116732092

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.834e-02  6.873e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  1.385e-07  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:  1.390e+00  3.502e-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:  3.617e-01  3.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 186.228 21.381
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.95e-07 +/- 1.51e-07
Energy Flux (Free Index): 2.60e-05 +/- 2.02e-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/603379/cmap_HighResolution_602467201_602726401_4FGL_J1224.9+2122_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-05', comment='SUCCESS', energy_flux2='2.60e-05', dlogl='1.11e+00', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-05 13:45:19.057538', photon_index_error2='0.00', photon_index2='5.00', ts='0.66', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='2.63e-07', energy_flux_error2='2.02e-05', EG='0.52', time_epoch_completed='1630874719.06', return_code='0', job_id='603379', GAL2='1.39', EG2='0.36', return_code2='0', photon_flux_error2='1.51e-07', ts2='3.20', photon_index='2.28' WHERE bin_id='1401' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 603379: <4FGL_J1224.9+2122_daily_bin1401> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1401> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:04 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:07 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:36:07 2021
Terminated at Sun Sep  5 13:45:19 2021
Results reported at Sun Sep  5 13:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1401 186.228 21.3814 602467201 602726401 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 :                                   442.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             240.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   552 sec.
    Turnaround time :                            555 sec.

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

