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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin531
RA = 186.228, Dec = 21.3814
tmin = 376963201, tmax = 377222401
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='598813', job_status='RUN', time_executed='2021-09-05 13:21:04.076528', time_epoch_executed='1630873264.08' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598813/ft1_4FGL_J1224.9+2122_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598813/ft2_4FGL_J1224.9+2122_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598813/ft1_4FGL_J1224.9+2122_daily_bin531.fits outfile=/scratch/kocevski/598813/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin531.fits ra=186.228 dec=21.3814 rad=12.0 tmin=376963201.0 tmax=377222401.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 4.57
user 4.30
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598813/ft2_4FGL_J1224.9+2122_daily_bin531.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/598813/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin531.fits evtable="EVENTS" outfile="/scratch/kocevski/598813/ft1_filtered_4FGL_J1224.9+2122_daily_bin531.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/598813/ft1_filtered_4FGL_J1224.9+2122_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/598813/ft2_4FGL_J1224.9+2122_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/598813/ltcube_376963201_377222401_4FGL_J1224.9+2122_daily_bin531.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/598813/ft2_4FGL_J1224.9+2122_daily_bin531.fits
.....................!
real 12.09
user 11.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598813/ft1_filtered_4FGL_J1224.9+2122_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/598813/ft2_4FGL_J1224.9+2122_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/598813/ltcube_376963201_377222401_4FGL_J1224.9+2122_daily_bin531.fits outfile=/scratch/kocevski/598813/expmap_376963201_377222401_4FGL_J1224.9+2122_daily_bin531.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/598813/ltcube_376963201_377222401_4FGL_J1224.9+2122_daily_bin531.fits
.....................!
real 192.14
user 186.61
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/598813/ft1_filtered_4FGL_J1224.9+2122_daily_bin531.fits scfile=/scratch/kocevski/598813/ft2_4FGL_J1224.9+2122_daily_bin531.fits outfile=/scratch/kocevski/598813/cmap_376963201_377222401_4FGL_J1224.9+2122_daily_bin531.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598813/ft1_filtered_4FGL_J1224.9+2122_daily_bin531.fits scfile=/scratch/kocevski/598813/ft2_4FGL_J1224.9+2122_daily_bin531.fits outfile=/scratch/kocevski/598813/cmap_HighResolution_376963201_377222401_4FGL_J1224.9+2122_daily_bin531.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .79121E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14180E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.487       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3100       1.0000         .10000E-03   10000.    
    10 'norm      '    12.483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9936       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6440       1.0000         .10000E-03   10000.    
    15 'norm      '    .43068E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8082       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2289       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.809       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.481       1.0000         .10000E-03   10000.    
    22 'norm      '    5.1940       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .51848       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6567.979     FROM MIGRAD    STATUS=CONVERGED   1083 CALLS     3490 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.265        21.261        .93649E-04    .37526E-03
   2  Prefactor     .10427E-03    10.602        .62489E-01** at limit **
   3  Prefactor     .10000E-03    1.7339        .16052E-02** at limit **
   4  norm          .10000E-03    1.1822        .12011E-02** at limit **
   5  Prefactor     10.995        11.853        .12082E-03    .59561E-04
   6  Prefactor     .10003E-03    8.8619        .22127E-02** at limit **
   7  Prefactor     16.475        82.826        .98638E-04   -.39187E-05
   8  Prefactor     .10000E-03    1.7855        .20791E-03** at limit **
   9  Prefactor     2.3103        2.1869        .56204E-03   -.29965E-03
  10  norm          12.482        3.6271        .79984E-04    .28115E-03
  11  Prefactor     .10000E-03    1.6125        .19789E-03** at limit **
  12  Prefactor     1.9937        1.6014        .88272E-04   -.98268E-04
  13  Prefactor     .10000E-03    2.4909        .12459E-02** at limit **
  14  norm          1.6442        .35423        .20935E-04    .21416E-02
  15  norm          .10058E-03    3.5014        .39373E-01** at limit **
  16  Prefactor     5.8024        12.853        .16665E-03    .81933E-04
  17  Prefactor     8.2269        9.2202        .13976E-03    .21313E-04
  18  Prefactor     31.803        41.874        .71045E-04   -.65929E-04
  19  Prefactor     .10000E-03    43.085        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.8881        .26452E-03** at limit **
  21  Prefactor     42.478        18.686        .61506E-04    .23105E-04
  22  norm          5.1939        3.0171        .10410E-03    .65961E-04
  23  norm          .10000E-03    5.6668        .18142E-02** at limit **
  24  Normalizat    1.4271        .21849        .22498E-03    .11414E-03
  25  Prefactor     .51896        .20321        .34707E-03    .20269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2654
  Prefactor  = 0.000104274
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9953
  Prefactor  = 0.000100026
  Prefactor  = 16.475
  Prefactor  = 0.0001
  Prefactor  = 2.31028
  norm       = 12.4815
  Prefactor  = 0.0001
  Prefactor  = 1.99368
  Prefactor  = 0.0001
  norm       = 1.64419
  norm       = 0.000100576
  Prefactor  = 5.80241
  Prefactor  = 8.22686
  Prefactor  = 31.8035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.4775
  norm       = 5.19393
  norm       = 0.0001
  Normalizat = 1.42708
  Prefactor  = 0.518957
 **********
 **   18 **HESSE 
 **********

 FCN=   6567.979     FROM HESSE     STATUS=OK           421 CALLS     3911 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.265        21.257        .18730E-04   -1.4853    
   2  Prefactor     .10427E-03    9.0022        .69907E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7366        .32104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1866        .24022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.995        11.853        .48329E-05   -1.5045    
   6  Prefactor     .10003E-03    8.9074        .44255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.475        82.901        .39455E-05   -1.4896    
   8  Prefactor     .10000E-03    1.7855        .41583E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3103        2.1866        .22482E-04   -1.5404    
  10  norm          12.482        3.6271        .31994E-05   -1.5001    
  11  Prefactor     .10000E-03    1.6125        .39579E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9937        1.6013        .35309E-05   -1.5426    
  13  Prefactor     .10000E-03    2.4910        .24918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6442        .35426        .41869E-05   -1.5452    
  15  norm          .10058E-03    3.0573        .43548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8024        12.850        .66659E-05   -1.5226    
  17  Prefactor     8.2269        9.2200        .55903E-05   -1.5134    
  18  Prefactor     31.803        41.861        .28418E-05   -1.4579    
  19  Prefactor     .10000E-03    43.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8882        .52903E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     42.478        18.684        .24603E-05   -1.4404    
  22  norm          5.1939        3.0171        .41641E-05   -1.5252    
  23  norm          .10000E-03    5.6668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4271        .21871        .44996E-04   -.79849    
  25  Prefactor     .51896        .20329        .13883E-04   -1.1111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96566e-09
Minuit parameter uncertainties:
  1  21.2658
  2  0.0124073
  3  7.88629e-06
  4  1.40411e-05
  5  11.8555
  6  0.000959153
  7  74.0772
  8  4.95527e-06
  9  2.18666
  10  3.62713
  11  1.44826e-05
  12  1.60137
  13  8.47549e-06
  14  0.354262
  15  0.00265347
  16  12.8558
  17  9.22155
  18  41.9001
  19  1.35295e-05
  20  2.85366e-05
  21  18.687
  22  3.01722
  23  3.09497e-07
  24  0.218852
  25  0.203576
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.644e+00  3.543e-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:  5.190e-01  2.036e-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.427e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.40
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.78e-07 +/- 5.98e-08
Energy Flux (Fixed Index): 9.66e-05 +/- 2.08e-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) = 6565.30635152
delta logL = 2.67270078513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6565.30049211
delta logL = 2.67856018932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5083       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8327       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59608       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=   6565.300     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5081        4.0368        .40538E-02    .10916E-03
   2  alpha         2.8327        3.7683        .15063        .26033E-04
   3  Normalizat    1.3119        .22418        .52456E-01    .23411E-05
   4  Prefactor     .59613        .25051        .73473E-01    .30206E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50814
  alpha      = 2.8327
  Normalizat = 1.31193
  Prefactor  = 0.596131
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.300     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .37E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5081        .33661        .17934E-04   -1.5462    
   2  alpha         2.8327        .25328        .65927E-03    .13348    
   3  Normalizat    1.3119        .21110        .23193E-03   -.83211    
   4  Prefactor     .59613        .20231        .32528E-03   -1.0775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69742e-16
Minuit parameter uncertainties:
  1  0.336614
  2  0.25372
  3  0.211241
  4  0.202553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598813': 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) = 6565.30049191
delta logL = 2.67856039152

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.508e+00  3.366e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.833e+00  2.537e-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:  5.961e-01  2.026e-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.312e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 68.62
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.83 +/- 0.25
Photon Flux (Free Index): 3.79e-07 +/- 8.11e-08
Energy Flux (Free Index): 8.22e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/598813/cmap_HighResolution_376963201_377222401_4FGL_J1224.9+2122_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.78e-07', energy_flux2='8.22e-05', photon_flux_error='5.98e-08', dlogl='2.68e+00', energy_flux='9.66e-05', photon_flux2='3.79e-07', job_status='DONE', time_completed='2021-09-05 13:33:10.832883', photon_index_error2='0.25', photon_index2='2.83', ts='63.40', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.43', time_epoch_completed='1630873990.83', return_code='0', job_id='598813', GAL2='0.60', EG2='1.31', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='8.11e-08', ts2='68.62', photon_index='2.28' WHERE bin_id='531' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:33:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 598813: <4FGL_J1224.9+2122_daily_bin531> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin531> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 13:20:45 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:20:47 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:20:47 2021
Terminated at Sun Sep  5 13:33:11 2021
Results reported at Sun Sep  5 13:33:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin531 186.228 21.3814 376963201 377222401 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 :                                   718.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

