/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 183 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin91
RA = 186.228, Dec = 21.3814
tmin = 262915201, tmax = 263174401
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='597191', job_status='RUN', time_executed='2021-09-05 13:19:14.082863', time_epoch_executed='1630873154.08' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597191

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597191/ft1_4FGL_J1224.9+2122_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597191/ft2_4FGL_J1224.9+2122_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597191/ft1_4FGL_J1224.9+2122_daily_bin91.fits outfile=/scratch/kocevski/597191/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin91.fits ra=186.228 dec=21.3814 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.35
user 1.10
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597191/ft1_filtered_4FGL_J1224.9+2122_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/597191/ft2_4FGL_J1224.9+2122_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/597191/ltcube_262915201_263174401_4FGL_J1224.9+2122_daily_bin91.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/597191/ft2_4FGL_J1224.9+2122_daily_bin91.fits
.....................!
real 11.23
user 10.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597191/ft1_filtered_4FGL_J1224.9+2122_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/597191/ft2_4FGL_J1224.9+2122_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/597191/ltcube_262915201_263174401_4FGL_J1224.9+2122_daily_bin91.fits outfile=/scratch/kocevski/597191/expmap_262915201_263174401_4FGL_J1224.9+2122_daily_bin91.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/597191/ltcube_262915201_263174401_4FGL_J1224.9+2122_daily_bin91.fits
.....................!
real 191.37
user 185.38
sys 5.55

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/597191/ft1_filtered_4FGL_J1224.9+2122_daily_bin91.fits scfile=/scratch/kocevski/597191/ft2_4FGL_J1224.9+2122_daily_bin91.fits outfile=/scratch/kocevski/597191/cmap_262915201_263174401_4FGL_J1224.9+2122_daily_bin91.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.53
user 0.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12349E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9422       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2861       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8466       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4912       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6999       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3041       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.489       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.369       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    94.455       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.380       1.0000         .10000E-03   10000.    
    22 'norm      '    15.145       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0856       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4250.804     FROM MIGRAD    STATUS=CONVERGED     80 CALLS     2394 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.771        3.5264       -.16757E-05    .16833E-01
   2  Prefactor     .10007E-03    4.6818       -.48124E-05** at limit **
   3  Prefactor     .10001E-03    1.9305       -.30380E-05** at limit **
   4  norm          3.9425        1.7340        .12972E-06   -.54422E-04
   5  Prefactor     .10014E-03    3.3710        .10490E-04** at limit **
   6  Prefactor     1.2859        2.2437       -.44396E-06   -.13774E-03
   7  Prefactor     .10023E-03    16.771       -.15384E-04** at limit **
   8  Prefactor     .10000E-03    .74356        .88851E-07** at limit **
   9  Prefactor     2.8475        1.0367        .46484E-06    .92037E-03
  10  norm          .10000E-03    1.0198        .39493E-07** at limit **
  11  Prefactor     1.4913        1.8535        .27528E-06    .39421E-04
  12  Prefactor     6.7002        2.8128       -.17902E-05   -.29363E-02
  13  Prefactor     .10000E-03    2.3999       -.70366E-06** at limit **
  14  norm          1.3043        .37781        .18927E-08    .48449E-03
  15  norm          .10000E-03    2.6367        .10400E-05** at limit **
  16  Prefactor     31.490        1.0172        .12844E-06   -.45864E-03
  17  Prefactor     18.371        1.0136        .95769E-07   -.38364E-03
  18  Prefactor     .10037E-03    13.018        .15303E-04** at limit **
  19  Prefactor     94.455        1.0023        .27194E-07   -.45406E-03
  20  Prefactor     .10001E-03    2.0244       -.35899E-05** at limit **
  21  Prefactor     33.384        1.7016        .91568E-06   -.45550E-02
  22  norm          15.146        1.0033        .68680E-07    .14037E-03
  23  norm          .10003E-03    9.6127        .10859E-06** at limit **
  24  Normalizat    1.0852        .23512        .16247E-05   -.51014E-04
  25  Prefactor     .61147        .22568       -.50231E-06    .36652E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.7708
  Prefactor  = 0.000100065
  Prefactor  = 0.000100007
  norm       = 3.94252
  Prefactor  = 0.000100143
  Prefactor  = 1.28594
  Prefactor  = 0.000100232
  Prefactor  = 0.0001
  Prefactor  = 2.8475
  norm       = 0.0001
  Prefactor  = 1.49126
  Prefactor  = 6.70022
  Prefactor  = 0.0001
  norm       = 1.30428
  norm       = 0.0001
  Prefactor  = 31.4897
  Prefactor  = 18.3708
  Prefactor  = 0.000100366
  Prefactor  = 94.4553
  Prefactor  = 0.000100011
  Prefactor  = 33.3844
  norm       = 15.1463
  norm       = 0.000100026
  Normalizat = 1.08519
  Prefactor  = 0.611473
 **********
 **   18 **HESSE 
 **********

 FCN=   4250.804     FROM HESSE     STATUS=OK           483 CALLS     2877 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.771        32.130        .12866E-02   -1.4147    
   2  Prefactor     .10007E-03    5.1280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    2.0826        .29862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9425        1.7620        .50793E-02   -1.5311    
   5  Prefactor     .10014E-03    4.3669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2859        2.2948        .97719E-02   -1.5481    
   7  Prefactor     .10023E-03    23.133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .74096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8475        3.4239        .60248E-02   -1.5370    
  10  norm          .10000E-03    1.0172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4913        1.8731        .87759E-02   -1.5464    
  12  Prefactor     6.7002        2.8445        .38756E-02   -1.5190    
  13  Prefactor     .10000E-03    2.3922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3043        .37774        .46073E-02   -1.5480    
  15  norm          .10000E-03    2.6088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.490        16.027        .17851E-02   -1.4585    
  17  Prefactor     18.371        12.403        .23362E-02   -1.4850    
  18  Prefactor     .10037E-03    19.758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     94.455        100.58        .10338E-02   -1.3761    
  20  Prefactor     .10001E-03    3.8484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.384        20.610        .17339E-02   -1.4552    
  22  norm          15.146        5.9987        .25730E-02   -1.4929    
  23  norm          .10003E-03    9.8282        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0852        .21808        .38617E-01   -.90229    
  25  Prefactor     .61147        .20153        .68951E-01   -1.0711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93069e-07
Minuit parameter uncertainties:
  1  32.139
  2  0.00115503
  3  0.000241539
  4  1.76206
  5  0.00158315
  6  2.29495
  7  0.00463719
  8  6.2028e-06
  9  3.42413
  10  7.99808e-06
  11  1.87321
  12  2.84452
  13  2.24103e-05
  14  0.377739
  15  5.91716e-05
  16  16.0294
  17  12.4052
  18  0.00538208
  19  100.764
  20  0.000415088
  21  20.6141
  22  5.99891
  23  0.00100741
  24  0.218256
  25  0.20177
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.304e+00  3.777e-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.115e-01  2.018e-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.085e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.10
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.20e-07 +/- 6.38e-08
Energy Flux (Fixed Index): 7.66e-05 +/- 2.22e-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) = 4249.77350968
delta logL = 1.03033186471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4249.76853483
delta logL = 1.03530671442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2159       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7378       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65512       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=   4249.769     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2167        1.0986        .41355E-02   -.37202E-03
   2  alpha         2.7376        .96788        .16792        .10024E-04
   3  Normalizat    1.0154        .20785        .44131E-01    .12946E-04
   4  Prefactor     .65522        .20415        .66803E-01    .18155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21669
  alpha      = 2.73761
  Normalizat = 1.01537
  Prefactor  = 0.655224
 **********
 **   18 **HESSE 
 **********

 FCN=   4249.769     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2167        .36551        .18299E-04   -1.5487    
   2  alpha         2.7376        .33417        .73160E-03    .95186E-01
   3  Normalizat    1.0154        .23715        .24533E-03   -.92517    
   4  Prefactor     .65522        .22841        .29560E-03   -1.0531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22625e-12
Minuit parameter uncertainties:
  1  0.365511
  2  0.335182
  3  0.237401
  4  0.228736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597191': 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) = 4249.7685315
delta logL = 1.03531003967

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.217e+00  3.655e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.738e+00  3.352e-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.552e-01  2.287e-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.015e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.72
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.74 +/- 0.34
Photon Flux (Free Index): 2.83e-07 +/- 8.57e-08
Energy Flux (Free Index): 6.50e-05 +/- 1.84e-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/597191/cmap_HighResolution_262915201_263174401_4FGL_J1224.9+2122_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.20e-07', energy_flux2='6.50e-05', photon_flux_error='6.38e-08', dlogl='1.04e+00', energy_flux='7.66e-05', photon_flux2='2.83e-07', job_status='DONE', time_completed='2021-09-05 13:27:48.492315', photon_index_error2='0.34', photon_index2='2.74', ts='31.10', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='1.09', time_epoch_completed='1630873668.49', return_code='0', job_id='597191', GAL2='0.66', EG2='1.02', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='8.57e-08', ts2='32.72', photon_index='2.28' WHERE bin_id='91' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:27:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 597191: <4FGL_J1224.9+2122_daily_bin91> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin91> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:56 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:58 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:15:58 2021
Terminated at Sun Sep  5 13:27:49 2021
Results reported at Sun Sep  5 13:27:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin91 186.228 21.3814 262915201 263174401 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 :                                   515.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            713 sec.

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

