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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1574
RA = 186.228, Dec = 21.3814
tmin = 647308801, tmax = 647568001
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='604994', job_status='RUN', time_executed='2021-09-05 13:44:50.306414', time_epoch_executed='1630874690.31' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604994

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604994/ft1_4FGL_J1224.9+2122_daily_bin1574.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604994/ft2_4FGL_J1224.9+2122_daily_bin1574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604994/ft1_4FGL_J1224.9+2122_daily_bin1574.fits outfile=/scratch/kocevski/604994/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1574.fits ra=186.228 dec=21.3814 rad=12.0 tmin=647308801.0 tmax=647568001.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.48
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604994/ft1_filtered_4FGL_J1224.9+2122_daily_bin1574.fits" evtable="EVENTS" scfile=/scratch/kocevski/604994/ft2_4FGL_J1224.9+2122_daily_bin1574.fits sctable="SC_DATA" outfile=/scratch/kocevski/604994/ltcube_647308801_647568001_4FGL_J1224.9+2122_daily_bin1574.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/604994/ft2_4FGL_J1224.9+2122_daily_bin1574.fits
.....................!
real 11.80
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604994/ft1_filtered_4FGL_J1224.9+2122_daily_bin1574.fits evtable="EVENTS" scfile=/scratch/kocevski/604994/ft2_4FGL_J1224.9+2122_daily_bin1574.fits sctable="SC_DATA" expcube=/scratch/kocevski/604994/ltcube_647308801_647568001_4FGL_J1224.9+2122_daily_bin1574.fits outfile=/scratch/kocevski/604994/expmap_647308801_647568001_4FGL_J1224.9+2122_daily_bin1574.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/604994/ltcube_647308801_647568001_4FGL_J1224.9+2122_daily_bin1574.fits
.....................!
real 191.15
user 185.48
sys 5.29

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/604994/ft1_filtered_4FGL_J1224.9+2122_daily_bin1574.fits scfile=/scratch/kocevski/604994/ft2_4FGL_J1224.9+2122_daily_bin1574.fits outfile=/scratch/kocevski/604994/cmap_647308801_647568001_4FGL_J1224.9+2122_daily_bin1574.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604994/ft1_filtered_4FGL_J1224.9+2122_daily_bin1574.fits scfile=/scratch/kocevski/604994/ft2_4FGL_J1224.9+2122_daily_bin1574.fits outfile=/scratch/kocevski/604994/cmap_HighResolution_647308801_647568001_4FGL_J1224.9+2122_daily_bin1574.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6236       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2536       1.0000         .10000E-03   10000.    
     4 'norm      '    41.872       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55164       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10884E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2656       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8264       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10216       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2618       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.350       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.989       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5327       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2116       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89404       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=   7339.487     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2501 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6213        8.7088        .17309E-05   -.50975E-03
   2  Prefactor     .10000E-03    8.5864        .34076E-07** at limit **
   3  Prefactor     1.2536        1.4443       -.82451E-07   -.18911E-03
   4  norm          41.872        3.4894        .36654E-07    .10194E-03
   5  Prefactor     15.487        15.270        .12426E-05    .73021E-04
   6  Prefactor     .55257        2.9480        .27518E-06   -.33518E-03
   7  Prefactor     .10000E-03    75.252       -.93556E-05** at limit **
   8  Prefactor     1.1372        2.4864       -.14272E-06   -.35163E-03
   9  Prefactor     1.2656        2.5523        .13865E-06   -.16318E-03
  10  norm          3.8262        2.9335       -.17949E-06   -.87849E-04
  11  Prefactor     2.1984        1.9578        .49915E-07    .24693E-04
  12  Prefactor     .10000E-03    1.0033       -.66941E-08** at limit **
  13  Prefactor     .10000E-03    1.5856       -.17053E-08** at limit **
  14  norm          .10217        .19302        .10333E-08   -.10387E-02
  15  norm          5.2617        3.1397        .46061E-06    .19978E-03
  16  Prefactor     13.355        10.948       -.21884E-05   -.16877E-03
  17  Prefactor     14.988        9.8864        .32380E-07   -.31521E-05
  18  Prefactor     .10000E-03    16.723       -.15344E-07** at limit **
  19  Prefactor     .10000E-03    73.718        .84675E-05** at limit **
  20  Prefactor     .10000E-03    2.6477        .53125E-09** at limit **
  21  Prefactor     7.5332        15.595       -.35253E-06   -.20070E-04
  22  norm          .10000E-03    1.1220        .60543E-08** at limit **
  23  norm          .10000E-03    7.7950       -.18152E-07** at limit **
  24  Normalizat    1.2117        .18984       -.22049E-06   -.21666E-04
  25  Prefactor     .89393        .18833        .24346E-06   -.36540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62134
  Prefactor  = 0.0001
  Prefactor  = 1.25357
  norm       = 41.8718
  Prefactor  = 15.4871
  Prefactor  = 0.552573
  Prefactor  = 0.000100001
  Prefactor  = 1.13723
  Prefactor  = 1.26555
  norm       = 3.82622
  Prefactor  = 2.19838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.102174
  norm       = 5.26169
  Prefactor  = 13.3554
  Prefactor  = 14.9878
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.53323
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.21166
  Prefactor  = 0.893925
 **********
 **   18 **HESSE 
 **********

 FCN=   7339.487     FROM HESSE     STATUS=OK           437 CALLS     2938 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6213        27.578        .12589E-02   -1.5384    
   2  Prefactor     .10000E-03    8.6684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2536        1.4192        .10608E-03   -1.5484    
   4  norm          41.872        3.5074        .44405E-04   -1.4413    
   5  Prefactor     15.487        15.299        .10177E-03   -1.4921    
   6  Prefactor     .55257        5.8766        .27150E-02   -1.5559    
   7  Prefactor     .10000E-03    75.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1372        2.3908        .17855E-03   -1.5495    
   9  Prefactor     1.2656        2.4607        .17671E-03   -1.5483    
  10  norm          3.8262        2.9278        .12059E-03   -1.5317    
  11  Prefactor     2.1984        1.9616        .10657E-03   -1.5411    
  12  Prefactor     .10000E-03    1.0193        .83648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5896        .10534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10217        .17589        .48681E-03   -1.5644    
  15  norm          5.2617        3.1415        .11404E-03   -1.5249    
  16  Prefactor     13.355        10.993        .10963E-03   -1.4977    
  17  Prefactor     14.988        9.8927        .10345E-03   -1.4933    
  18  Prefactor     .10000E-03    16.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    73.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6573        .13612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5332        15.620        .14612E-03   -1.5159    
  22  norm          .10000E-03    1.1263        .88607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.7984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2117        .23002        .27235E-03   -.86243    
  25  Prefactor     .89393        .22743        .31856E-03   -.96354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1742e-09
Minuit parameter uncertainties:
  1  17.0146
  2  4.45655e-06
  3  1.41919
  4  3.50739
  5  15.3026
  6  3.60414
  7  0.000607573
  8  2.39105
  9  2.46087
  10  2.92787
  11  1.96168
  12  4.34136e-07
  13  9.49876e-07
  14  0.175888
  15  3.14161
  16  10.9951
  17  9.8938
  18  8.18541e-05
  19  0.000464953
  20  2.78991e-07
  21  15.6288
  22  1.0788e-07
  23  5.26081e-07
  24  0.230216
  25  0.227675
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.022e-01  1.759e-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.939e-01  2.277e-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.212e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604994/likelihoodResults_647308801_647568001_4FGL_J1224.9+2122_daily_bin1574.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) = 7339.48683669
delta logL = 0.000575937204303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7339.48651766
delta logL = 0.000894970952686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10739       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3656       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89561       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=   7339.487     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      253 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10723        .19557        .48141E-03    .91921E-03
   2  alpha         2.3657        1.7538        .38369E-01    .49865E-04
   3  Normalizat    1.2089        .22962        .27263E-03    .24186E-05
   4  Prefactor     .89567        .22915        .31829E-03    .78580E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.107231
  alpha      = 2.36571
  Normalizat = 1.20887
  Prefactor  = 0.89567
 **********
 **   18 **HESSE 
 **********

 FCN=   7339.487     FROM HESSE     STATUS=OK            27 CALLS      280 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10723        .20597        .19256E-04   -1.5643    
   2  alpha         2.3657        1.8333        .15348E-02   -.53742E-01
   3  Normalizat    1.2089        .23102        .10905E-04   -.86329    
   4  Prefactor     .89567        .22971        .12731E-04   -.96293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25014e-09
Minuit parameter uncertainties:
  1  0.205975
  2  2.05884
  3  0.231219
  4  0.229959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604994': 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) = 7339.48651719
delta logL = 0.000895440834029

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.072e-01  2.060e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.366e+00  2.059e+00  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:  8.957e-01  2.300e-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.209e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
Ra Dec: 186.228 21.381

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/604994/cmap_HighResolution_647308801_647568001_4FGL_J1224.9+2122_daily_bin1574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-05 13:57:54.091999', job_id='604994', GAL2='0.90', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630875474.09', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.95e-04', ts2='0.46', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1574' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:57:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 604994: <4FGL_J1224.9+2122_daily_bin1574> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1574> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 13:41:17 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:41:19 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:41:19 2021
Terminated at Sun Sep  5 13:57:54 2021
Results reported at Sun Sep  5 13:57:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1574 186.228 21.3814 647308801 647568001 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

