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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1601
RA = 186.228, Dec = 21.3814
tmin = 654307201, tmax = 654566401
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='542383', job_status='RUN', time_executed='2021-09-29 00:17:22.573440', time_epoch_executed='1632899842.57' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542383

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542383/ft1_4FGL_J1224.9+2122_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542383/ft2_4FGL_J1224.9+2122_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542383/ft1_4FGL_J1224.9+2122_daily_bin1601.fits outfile=/scratch/kocevski/542383/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1601.fits ra=186.228 dec=21.3814 rad=12.0 tmin=654307201.0 tmax=654566401.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.19
user 3.96
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542383/ft1_filtered_4FGL_J1224.9+2122_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542383/ft2_4FGL_J1224.9+2122_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/542383/ltcube_654307201_654566401_4FGL_J1224.9+2122_daily_bin1601.fits outfile=/scratch/kocevski/542383/expmap_654307201_654566401_4FGL_J1224.9+2122_daily_bin1601.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/542383/ltcube_654307201_654566401_4FGL_J1224.9+2122_daily_bin1601.fits
.....................!
real 193.27
user 188.80
sys 4.13

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/542383/ft1_filtered_4FGL_J1224.9+2122_daily_bin1601.fits scfile=/scratch/kocevski/542383/ft2_4FGL_J1224.9+2122_daily_bin1601.fits outfile=/scratch/kocevski/542383/cmap_654307201_654566401_4FGL_J1224.9+2122_daily_bin1601.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542383/ft1_filtered_4FGL_J1224.9+2122_daily_bin1601.fits scfile=/scratch/kocevski/542383/ft2_4FGL_J1224.9+2122_daily_bin1601.fits outfile=/scratch/kocevski/542383/cmap_HighResolution_654307201_654566401_4FGL_J1224.9+2122_daily_bin1601.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/542383/ft1_filtered_4FGL_J1224.9+2122_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542383/ft2_4FGL_J1224.9+2122_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542383/Model_4FGL_J1224.9+2122_daily_bin1601.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/542383/ft1_filtered_4FGL_J1224.9+2122_daily_bin1601.fits.....................!
real 67.45
user 66.12
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.395       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11501E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    43.183       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.961       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8835       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .22969       1.0000         .10000E-03   10000.    
    15 'norm      '    60.165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5972       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .17560E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0336       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98461       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=   7429.224     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2990 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.575        22.241       -.23248E-05    .18050E-03
   2  Prefactor     19.378        14.904        .11544E-04    .56242E-03
   3  Prefactor     .12044E-01    .86102       -.10659E-05    .18061E-02
   4  norm          43.183        3.7318       -.11805E-07    .72697E-03
   5  Prefactor     18.568        23.521        .29449E-05    .67571E-04
   6  Prefactor     .15926        2.5824       -.24556E-05   -.99910E-04
   7  Prefactor     16.942        147.57       -.40378E-04    .47320E-05
   8  Prefactor     .10000E-03    1.1374       -.85596E-08** at limit **
   9  Prefactor     .10000E-03    .97388       -.20954E-08** at limit **
  10  norm          3.7879        2.5906        .36394E-07    .98636E-04
  11  Prefactor     3.8837        2.5232       -.60685E-07   -.11684E-06
  12  Prefactor     .10000E-03    1.5369       -.18176E-07** at limit **
  13  Prefactor     .10000E-03    9.5636       -.12121E-05** at limit **
  14  norm          .22989        .31266       -.26890E-06   -.22741E-02
  15  norm          60.164        10.956        .71501E-06    .46397E-03
  16  Prefactor     3.5997        10.820        .19913E-05   -.15660E-03
  17  Prefactor     6.2850        8.5107        .14710E-05   -.25327E-05
  18  Prefactor     .10000E-03    24.703        .39867E-05** at limit **
  19  Prefactor     25.600        66.505       -.74838E-04    .59014E-05
  20  Prefactor     .10000E-03    5.6682       -.74825E-06** at limit **
  21  Prefactor     .10000E-03    5.3791        .22919E-07** at limit **
  22  norm          .10067E-03    2.3349       -.20914E-06** at limit **
  23  norm          .10000E-03    7.8228        .51055E-06** at limit **
  24  Normalizat    1.0335        .20693        .20329E-05    .58908E-03
  25  Prefactor     .98456        .19385       -.88195E-06    .63461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.575
  Prefactor  = 19.378
  Prefactor  = 0.0120442
  norm       = 43.1827
  Prefactor  = 18.5675
  Prefactor  = 0.159259
  Prefactor  = 16.9417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78789
  Prefactor  = 3.88374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.229888
  norm       = 60.1644
  Prefactor  = 3.59967
  Prefactor  = 6.28503
  Prefactor  = 0.0001
  Prefactor  = 25.5998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100668
  norm       = 0.0001
  Normalizat = 1.0335
  Prefactor  = 0.984561
 **********
 **   18 **HESSE 
 **********

 FCN=   7429.224     FROM HESSE     STATUS=OK           445 CALLS     3435 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.575        22.272        .79210E-04   -1.4696    
   2  Prefactor     19.378        15.052        .90947E-04   -1.4827    
   3  Prefactor     .12044E-01    .78811        .27879E-01   -1.5686    
   4  norm          43.183        3.7352        .46886E-04   -1.4393    
   5  Prefactor     18.568        23.466        .92926E-04   -1.4846    
   6  Prefactor     .15926        34.895        .25277E-02   -1.5628    
   7  Prefactor     16.942        147.11        .97251E-04   -1.4885    
   8  Prefactor     .10000E-03    1.1471        .89665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .97827        .83035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7879        2.5981        .10743E-03   -1.5319    
  11  Prefactor     3.8837        2.5284        .10314E-03   -1.5314    
  12  Prefactor     .10000E-03    1.5672        .10417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.7030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22989        .29710        .50878E-03   -1.5612    
  15  norm          60.164        10.931        .25863E-03   -1.4155    
  16  Prefactor     3.5997        10.793        .21305E-03   -1.5328    
  17  Prefactor     6.2850        8.4993        .16012E-03   -1.5207    
  18  Prefactor     .10000E-03    24.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.600        66.505        .79100E-04   -1.4696    
  20  Prefactor     .10000E-03    5.7014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10067E-03    4.8903        .42996E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.8244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0335        .25195        .31299E-03   -.91916    
  25  Prefactor     .98456        .23584        .31568E-03   -.93246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76859e-09
Minuit parameter uncertainties:
  1  22.2792
  2  15.0551
  3  0.194047
  4  3.73519
  5  23.4779
  6  4.7161
  7  100.178
  8  4.54262e-06
  9  1.88715e-06
  10  2.59818
  11  2.52846
  12  4.93279e-06
  13  3.96738e-05
  14  0.297101
  15  10.931
  16  10.7987
  17  8.50093
  18  0.000104641
  19  66.698
  20  1.55692e-06
  21  3.66409e-06
  22  0.00361437
  23  4.87474e-07
  24  0.252236
  25  0.236083
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.299e-01  2.971e-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:  9.846e-01  2.361e-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.033e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/542383/likelihoodResults_654307201_654566401_4FGL_J1224.9+2122_daily_bin1601.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) = 7428.72130581
delta logL = 0.502941906292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7428.71343208
delta logL = 0.510815636341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26895       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1351       1.0000          .0000       5.0000    
     3 'Normalizat'    .97672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0195       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=   7428.713     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26873        4.4692        .78417E-02    .22388E-02
   2  alpha         3.1342        3.5667        .42970        .26455E-04
   3  Normalizat    .97719        .62045E-01    .72447E-01    .21436E-04
   4  Prefactor     1.0192        .65089E-01    .70235E-01    .17357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.268733
  alpha      = 3.13418
  Normalizat = 0.977189
  Prefactor  = 1.0192
 **********
 **   18 **HESSE 
 **********

 FCN=   7428.713     FROM HESSE     STATUS=OK            35 CALLS      279 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26873        .30217        .35622E-03   -1.5604    
   2  alpha         3.1342        .98630        .23279E-01    .25648    
   3  Normalizat    .97719        .24540        .32055E-03   -.93799    
   4  Prefactor     1.0192        .23754        .31072E-03   -.92092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65414e-09
Minuit parameter uncertainties:
  1  0.302174
  2  1.01592
  3  0.245686
  4  0.237788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542383': 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) = 7428.71342892
delta logL = 0.510818790593

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.687e-01  3.022e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.134e+00  1.016e+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:  1.019e+00  2.378e-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:  9.772e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.13 +/- 1.02
Photon Flux (Free Index): 8.74e-08 +/- 7.52e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.44e-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/542383/cmap_HighResolution_654307201_654566401_4FGL_J1224.9+2122_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-05', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='5.11e-01', photon_flux2='8.74e-08', job_status='DONE', time_completed='2021-09-29 00:31:22.586195', photon_index_error2='1.02', photon_index2='3.13', ts='0.76', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.44e-05', EG='1.03', time_epoch_completed='1632900682.59', return_code='0', job_id='542383', GAL2='1.02', EG2='0.98', return_code2='0', photon_flux_error2='7.52e-08', ts2='1.83', photon_index='2.28' WHERE bin_id='1601' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:31:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 542383: <4FGL_J1224.9+2122_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:15:16 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:15:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:15:18 2021
Terminated at Wed Sep 29 00:31:23 2021
Results reported at Wed Sep 29 00:31:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1601 186.228 21.3814 654307201 654566401 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 :                                   842.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

