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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1168
RA = 186.228, Dec = 21.3814
tmin = 542073601, tmax = 542332801
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='603050', job_status='RUN', time_executed='2021-09-05 13:39:12.603681', time_epoch_executed='1630874352.6' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603050/ft1_4FGL_J1224.9+2122_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603050/ft2_4FGL_J1224.9+2122_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603050/ft1_4FGL_J1224.9+2122_daily_bin1168.fits outfile=/scratch/kocevski/603050/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1168.fits ra=186.228 dec=21.3814 rad=12.0 tmin=542073601.0 tmax=542332801.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 6.44
user 3.34
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603050/ft1_filtered_4FGL_J1224.9+2122_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/603050/ft2_4FGL_J1224.9+2122_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/603050/ltcube_542073601_542332801_4FGL_J1224.9+2122_daily_bin1168.fits outfile=/scratch/kocevski/603050/expmap_542073601_542332801_4FGL_J1224.9+2122_daily_bin1168.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/603050/ltcube_542073601_542332801_4FGL_J1224.9+2122_daily_bin1168.fits
.....................!
real 191.84
user 185.02
sys 5.34

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/603050/ft1_filtered_4FGL_J1224.9+2122_daily_bin1168.fits scfile=/scratch/kocevski/603050/ft2_4FGL_J1224.9+2122_daily_bin1168.fits outfile=/scratch/kocevski/603050/cmap_542073601_542332801_4FGL_J1224.9+2122_daily_bin1168.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603050/ft1_filtered_4FGL_J1224.9+2122_daily_bin1168.fits scfile=/scratch/kocevski/603050/ft2_4FGL_J1224.9+2122_daily_bin1168.fits outfile=/scratch/kocevski/603050/cmap_HighResolution_542073601_542332801_4FGL_J1224.9+2122_daily_bin1168.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.60
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .75673E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.4428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.762       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8039       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51729       1.0000         .10000E-03   10000.    
    10 'norm      '    10.183       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22502       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13717E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4359       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.559       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.615       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28508E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3597       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.1945       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83209       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=   5843.260     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3099 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.884        .15548E-07** at limit **
   2  Prefactor     .10032E-03    6.7668       -.72426E-06** at limit **
   3  Prefactor     .10000E-03    .70604       -.34402E-07** at limit **
   4  norm          6.4421        1.7530       -.21515E-07   -.60415E-03
   5  Prefactor     19.761        15.369        .13989E-06    .70065E-04
   6  Prefactor     5.8170        5.0347        .46342E-06    .69849E-03
   7  Prefactor     .10001E-03    33.069        .15392E-05** at limit **
   8  Prefactor     .10000E-03    1.9932       -.15520E-05** at limit **
   9  Prefactor     .51922        2.8120        .22132E-05    .51509E-03
  10  norm          10.182        3.9620       -.24284E-06   -.11901E-02
  11  Prefactor     .22554        1.6685       -.13678E-06   -.20513E-03
  12  Prefactor     .10000E-03    1.1042        .18166E-06** at limit **
  13  Prefactor     1.4356        2.9530        .61682E-06    .49784E-03
  14  norm          .10000E-03    .81341E-01   -.27382E-07** at limit **
  15  norm          10.818        4.8744       -.10665E-06   -.43374E-03
  16  Prefactor     11.637        9.0988       -.30395E-06   -.25945E-03
  17  Prefactor     17.557        10.710       -.19726E-06   -.28378E-03
  18  Prefactor     .10001E-03    30.361       -.19519E-05** at limit **
  19  Prefactor     21.585        69.662       -.22049E-05   -.10991E-03
  20  Prefactor     .10009E-03    18.007        .75702E-05** at limit **
  21  Prefactor     8.3514        15.514        .55671E-06    .90110E-04
  22  norm          .10000E-03    1.5464        .48662E-07** at limit **
  23  norm          .10000E-03    7.7558        .13495E-07** at limit **
  24  Normalizat    1.1947        .18555        .53632E-06   -.46478E-03
  25  Prefactor     .83227        .17842       -.15710E-05   -.44975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100322
  Prefactor  = 0.0001
  norm       = 6.44214
  Prefactor  = 19.7606
  Prefactor  = 5.81704
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 0.519215
  norm       = 10.1823
  Prefactor  = 0.225536
  Prefactor  = 0.0001
  Prefactor  = 1.43563
  norm       = 0.0001
  norm       = 10.818
  Prefactor  = 11.637
  Prefactor  = 17.5572
  Prefactor  = 0.000100007
  Prefactor  = 21.5852
  Prefactor  = 0.00010009
  Prefactor  = 8.35135
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.19466
  Prefactor  = 0.832265
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.260     FROM HESSE     STATUS=OK           439 CALLS     3538 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10032E-03    11.717        .62046E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1110        .12432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.4421        1.7548        .50419E-04   -1.5200    
   5  Prefactor     19.761        15.368        .90097E-04   -1.4819    
   6  Prefactor     5.8170        5.0839        .14864E-03   -1.5226    
   7  Prefactor     .10001E-03    33.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0806        .19746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .51922        4.4772        .22121E-02   -1.5564    
  10  norm          10.182        4.0014        .83892E-04   -1.5070    
  11  Prefactor     .22554        3.1221        .17443E-02   -1.5613    
  12  Prefactor     .10000E-03    4.5699        .15194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4356        2.9264        .18338E-03   -1.5468    
  14  norm          .10000E-03    .95911E-01    .42231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.818        4.8787        .10860E-03   -1.5050    
  16  Prefactor     11.637        9.1039        .11742E-03   -1.5026    
  17  Prefactor     17.557        10.668        .95581E-04   -1.4870    
  18  Prefactor     .10001E-03    31.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.585        70.309        .86153E-04   -1.4778    
  20  Prefactor     .10009E-03    24.063        .36798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3514        15.546        .13865E-03   -1.5130    
  22  norm          .10000E-03    1.5753        .92802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.7585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1947        .21520        .23748E-03   -.86768    
  25  Prefactor     .83227        .20864        .28192E-03   -.98550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2244e-08
Minuit parameter uncertainties:
  1  3.36206e-07
  2  0.00388355
  3  7.50895e-09
  4  1.75485
  5  15.3708
  6  5.08428
  7  0.000873037
  8  0.000170964
  9  3.04937
  10  4.00152
  11  1.678
  12  2.46802e-05
  13  2.9267
  14  7.47578e-07
  15  4.8789
  16  9.10499
  17  10.6689
  18  0.00094135
  19  70.5811
  20  0.00294262
  21  15.5532
  22  2.08142e-07
  23  5.74803e-07
  24  0.215364
  25  0.208839
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  7.476e-07  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.323e-01  2.088e-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.195e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603050/likelihoodResults_542073601_542332801_4FGL_J1224.9+2122_daily_bin1168.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) = 5843.26021077
delta logL = -0.000532209873199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5843.12601476
delta logL = 0.133663802192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12336E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85355       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5843.126     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      322 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12332E-01    .25927E-01    .15784E-03    .35550E-01
   2  alpha         5.0000        4.2993        .14011    ** at limit **
   3  Normalizat    1.1603        .21554        .24057E-03   -.45130E-04
   4  Prefactor     .85349        .21204        .27862E-03   -.14975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0123316
  alpha      = 5
  Normalizat = 1.16032
  Prefactor  = 0.853489
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.126     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12332E-01    .25565E-01    .31569E-04   -1.5686    
   2  alpha         5.0000        4.2921        .28023E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1603        .21536        .96229E-05   -.87838    
   4  Prefactor     .85349        .21210        .11145E-04   -.97786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17202e-12
Minuit parameter uncertainties:
  1  0.0255652
  2  6.36501e-07
  3  0.215526
  4  0.212308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603050': 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) = 5843.12601465
delta logL = 0.133663912517

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.233e-02  2.557e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  6.365e-07  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.535e-01  2.123e-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.160e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

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/603050/cmap_HighResolution_542073601_542332801_4FGL_J1224.9+2122_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-09-05 13:51:28.814980', job_id='603050', GAL2='0.85', fit_tolerance='1e-08', EG2='1.16', EG='1.19', time_epoch_completed='1630875088.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.34e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1168' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 603050: <4FGL_J1224.9+2122_daily_bin1168> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:37 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:39 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:35:39 2021
Terminated at Sun Sep  5 13:51:29 2021
Results reported at Sun Sep  5 13:51:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1168 186.228 21.3814 542073601 542332801 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 :                                   724.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

