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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin701
RA = 186.228, Dec = 21.3814
tmin = 421027201, tmax = 421286401
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='600154', job_status='RUN', time_executed='2021-09-05 13:25:53.212037', time_epoch_executed='1630873553.21' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600154

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600154/ft1_4FGL_J1224.9+2122_daily_bin701.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600154/ft2_4FGL_J1224.9+2122_daily_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600154/ft1_4FGL_J1224.9+2122_daily_bin701.fits outfile=/scratch/kocevski/600154/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin701.fits ra=186.228 dec=21.3814 rad=12.0 tmin=421027201.0 tmax=421286401.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.72
user 3.48
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600154/ft1_filtered_4FGL_J1224.9+2122_daily_bin701.fits" evtable="EVENTS" scfile=/scratch/kocevski/600154/ft2_4FGL_J1224.9+2122_daily_bin701.fits sctable="SC_DATA" outfile=/scratch/kocevski/600154/ltcube_421027201_421286401_4FGL_J1224.9+2122_daily_bin701.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/600154/ft2_4FGL_J1224.9+2122_daily_bin701.fits
.....................!
real 12.16
user 11.83
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600154/ft1_filtered_4FGL_J1224.9+2122_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/600154/ft2_4FGL_J1224.9+2122_daily_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/600154/ltcube_421027201_421286401_4FGL_J1224.9+2122_daily_bin701.fits outfile=/scratch/kocevski/600154/expmap_421027201_421286401_4FGL_J1224.9+2122_daily_bin701.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/600154/ltcube_421027201_421286401_4FGL_J1224.9+2122_daily_bin701.fits
.....................!
real 190.12
user 185.11
sys 4.64

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/600154/ft1_filtered_4FGL_J1224.9+2122_daily_bin701.fits scfile=/scratch/kocevski/600154/ft2_4FGL_J1224.9+2122_daily_bin701.fits outfile=/scratch/kocevski/600154/cmap_421027201_421286401_4FGL_J1224.9+2122_daily_bin701.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600154/ft1_filtered_4FGL_J1224.9+2122_daily_bin701.fits scfile=/scratch/kocevski/600154/ft2_4FGL_J1224.9+2122_daily_bin701.fits outfile=/scratch/kocevski/600154/cmap_HighResolution_421027201_421286401_4FGL_J1224.9+2122_daily_bin701.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2916       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7749       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20385E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22541       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11079E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.409       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .83394       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.113       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6870       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5465       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.355       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.808       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1284       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3551       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80372       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=   7076.430     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2592 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.128       -.21909E-04** at limit **
   2  Prefactor     .10000E-03    5.6005       -.44016E-06** at limit **
   3  Prefactor     1.2914        1.2495        .56414E-07    .54162E-03
   4  norm          2.7748        1.2932        .57095E-08    .41467E-03
   5  Prefactor     6.6119        13.309       -.79713E-06   -.42441E-04
   6  Prefactor     .10000E-03    3.2713       -.74319E-06** at limit **
   7  Prefactor     .10000E-03    42.995        .29404E-04** at limit **
   8  Prefactor     .22839        1.7054        .70612E-06   -.80635E-03
   9  Prefactor     .10000E-03    1.8673       -.15963E-06** at limit **
  10  norm          10.409        3.9998        .66322E-06    .10728E-03
  11  Prefactor     4.5316        2.8080       -.32984E-06    .85783E-04
  12  Prefactor     .83404        2.3383       -.41904E-06   -.18061E-03
  13  Prefactor     11.114        7.1402        .24749E-06    .32505E-04
  14  norm          3.6871        .48640       -.86316E-08    .21421E-03
  15  norm          1.5456        1.1169        .21943E-06   -.25278E-02
  16  Prefactor     .10000E-03    3.1819        .30413E-07** at limit **
  17  Prefactor     10.355        9.7098       -.29750E-07    .28963E-04
  18  Prefactor     20.805        27.619       -.14739E-05   -.84325E-05
  19  Prefactor     .10000E-03    89.747       -.11572E-04** at limit **
  20  Prefactor     3.1282        7.0309       -.34606E-06   -.36083E-04
  21  Prefactor     .10000E-03    6.9110        .10764E-05** at limit **
  22  norm          .10000E-03    2.3991       -.24332E-07** at limit **
  23  norm          .10000E-03    8.9618        .89837E-06** at limit **
  24  Normalizat    1.3550        .19245        .14568E-06    .21545E-03
  25  Prefactor     .80382        .18552        .11455E-06    .15373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29142
  norm       = 2.7748
  Prefactor  = 6.61186
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.228395
  Prefactor  = 0.000100002
  norm       = 10.4093
  Prefactor  = 4.5316
  Prefactor  = 0.834041
  Prefactor  = 11.1144
  norm       = 3.68708
  norm       = 1.54564
  Prefactor  = 0.0001
  Prefactor  = 10.3549
  Prefactor  = 20.805
  Prefactor  = 0.0001
  Prefactor  = 3.12824
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.35505
  Prefactor  = 0.803817
 **********
 **   18 **HESSE 
 **********

 FCN=   7076.430     FROM HESSE     STATUS=OK           435 CALLS     3027 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2914        1.2654        .89608E-04   -1.5481    
   4  norm          2.7748        1.2910        .62893E-04   -1.5375    
   5  Prefactor     6.6119        13.304        .15600E-03   -1.5194    
   6  Prefactor     .10000E-03    8.3660        .28773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22839        6.6445        .19004E-02   -1.5612    
   9  Prefactor     .10000E-03    12.989        .20298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.409        3.9869        .94422E-04   -1.5063    
  11  Prefactor     4.5316        2.8006        .10144E-03   -1.5282    
  12  Prefactor     .83404        2.2825        .19397E-03   -1.5525    
  13  Prefactor     11.114        7.3380        .12018E-03   -1.5041    
  14  norm          3.6871        .48789        .20179E-04   -1.5324    
  15  norm          1.5456        4.7150        .14874E-02   -1.5459    
  16  Prefactor     .10000E-03    3.1833        .14652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.355        9.6629        .12452E-03   -1.5064    
  18  Prefactor     20.805        27.651        .87807E-04   -1.4795    
  19  Prefactor     .10000E-03    89.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1282        7.0147        .22922E-03   -1.5354    
  21  Prefactor     .10000E-03    6.9278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4338        .12717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.9649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3550        .22515        .26317E-03   -.81938    
  25  Prefactor     .80382        .21736        .32689E-03   -.99588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11236e-08
Minuit parameter uncertainties:
  1  0.000266159
  2  7.03819e-07
  3  1.26547
  4  1.29103
  5  13.3102
  6  0.000233966
  7  0.0001118
  8  2.46356
  9  0.000320152
  10  3.987
  11  2.80063
  12  2.28278
  13  7.33855
  14  0.487888
  15  4.71613
  16  2.85459e-06
  17  9.66431
  18  27.6685
  19  5.32565e-05
  20  7.01658
  21  9.97897e-07
  22  1.45267e-07
  23  1.26512e-06
  24  0.225317
  25  0.217597
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.687e+00  4.879e-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:  8.038e-01  2.176e-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.355e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 217.86
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.23e-07 +/- 8.24e-08
Energy Flux (Fixed Index): 2.17e-04 +/- 2.87e-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) = 7075.02511636
delta logL = 1.40468053652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7075.02202901
delta logL = 1.4077678864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6163       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0492       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74589       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=   7075.022     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6163        .48607        .46469E-02   -.19464E-02
   2  alpha         2.0492        .12713        .95512E-01    .53128E-04
   3  Normalizat    1.4379        .19053        .58222E-01   -.40455E-04
   4  Prefactor     .74590        .18511        .76345E-01    .41366E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.61627
  alpha      = 2.04924
  Normalizat = 1.4379
  Prefactor  = 0.745898
 **********
 **   18 **HESSE 
 **********

 FCN=   7075.022     FROM HESSE     STATUS=OK            27 CALLS      241 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6163        .49980        .20532E-04   -1.5328    
   2  alpha         2.0492        .13240        .41849E-03   -.18130    
   3  Normalizat    1.4379        .22552        .25746E-03   -.79539    
   4  Prefactor     .74590        .21733        .33796E-03   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39068e-11
Minuit parameter uncertainties:
  1  0.4998
  2  0.132459
  3  0.22568
  4  0.217577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600154': 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) = 7075.02202901
delta logL = 1.40776788786

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.616e+00  4.998e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.049e+00  1.325e-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:  7.459e-01  2.176e-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.438e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 219.64
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.05 +/- 0.13
Photon Flux (Free Index): 5.42e-07 +/- 8.78e-08
Energy Flux (Free Index): 2.64e-04 +/- 5.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/600154/cmap_HighResolution_421027201_421286401_4FGL_J1224.9+2122_daily_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.23e-07', energy_flux2='2.64e-04', photon_flux_error='8.24e-08', dlogl='1.41e+00', energy_flux='2.17e-04', photon_flux2='5.42e-07', job_status='DONE', time_completed='2021-09-05 13:37:00.030609', photon_index_error2='0.13', photon_index2='2.05', ts='217.86', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='5.13e-05', EG='1.36', time_epoch_completed='1630874220.03', return_code='0', job_id='600154', GAL2='0.75', EG2='1.44', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='8.78e-08', ts2='219.64', photon_index='2.28' WHERE bin_id='701' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:37:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 600154: <4FGL_J1224.9+2122_daily_bin701> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin701> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:25:41 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:25:43 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:25:43 2021
Terminated at Sun Sep  5 13:37:00 2021
Results reported at Sun Sep  5 13:37:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin701 186.228 21.3814 421027201 421286401 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 :                                   664.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            679 sec.

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

