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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin643
RA = 186.228, Dec = 21.3814
tmin = 405993601, tmax = 406252801
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='600065', job_status='RUN', time_executed='2021-09-05 13:29:47.004799', time_epoch_executed='1630873787.0' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600065

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600065/ft1_4FGL_J1224.9+2122_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600065/ft2_4FGL_J1224.9+2122_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600065/ft1_4FGL_J1224.9+2122_daily_bin643.fits outfile=/scratch/kocevski/600065/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin643.fits ra=186.228 dec=21.3814 rad=12.0 tmin=405993601.0 tmax=406252801.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.38
user 3.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600065/ft2_4FGL_J1224.9+2122_daily_bin643.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/600065/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin643.fits evtable="EVENTS" outfile="/scratch/kocevski/600065/ft1_filtered_4FGL_J1224.9+2122_daily_bin643.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.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600065/ft1_filtered_4FGL_J1224.9+2122_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/600065/ft2_4FGL_J1224.9+2122_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/600065/ltcube_405993601_406252801_4FGL_J1224.9+2122_daily_bin643.fits outfile=/scratch/kocevski/600065/expmap_405993601_406252801_4FGL_J1224.9+2122_daily_bin643.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/600065/ltcube_405993601_406252801_4FGL_J1224.9+2122_daily_bin643.fits
.....................!
real 193.12
user 186.44
sys 5.64

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/600065/ft1_filtered_4FGL_J1224.9+2122_daily_bin643.fits scfile=/scratch/kocevski/600065/ft2_4FGL_J1224.9+2122_daily_bin643.fits outfile=/scratch/kocevski/600065/cmap_405993601_406252801_4FGL_J1224.9+2122_daily_bin643.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.56
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8518       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8479       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20777E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13309E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.419       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4659       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2915       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5423       1.0000         .10000E-03   10000.    
    15 'norm      '    12.211       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.413       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13592E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6671       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.633       1.0000         .10000E-03   10000.    
    22 'norm      '    8.4155       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3966       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62470       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=   6132.497     FROM MIGRAD    STATUS=CONVERGED   1071 CALLS     3032 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8520        25.080        .24076E-03   -.13600E-04
   2  Prefactor     3.1048        7.7528        .23024E-03   -.11786E-03
   3  Prefactor     1.8480        1.6425        .89762E-04   -.10208E-03
   4  norm          1.5021        1.3563        .82707E-04   -.53334E-04
   5  Prefactor     .10000E-03    13.035        .82771E-01** at limit **
   6  Prefactor     .10000E-03    3.9741        .21961E-02** at limit **
   7  Prefactor     .10000E-03    109.82        .18142E-02** at limit **
   8  Prefactor     .10000E-03    .90144        .72184E-03** at limit **
   9  Prefactor     .10000E-03    2.0537        .17189E-02** at limit **
  10  norm          13.415        4.5459        .91204E-04   -.92241E-05
  11  Prefactor     .10000E-03    2.7489        .18730E-02** at limit **
  12  Prefactor     1.4658        2.5658        .15233E-03   -.93663E-04
  13  Prefactor     3.2915        5.3770        .22016E-03   -.53343E-04
  14  norm          2.5424        .41037        .19117E-04   -.86410E-03
  15  norm          12.211        5.3275        .11289E-03   -.22154E-05
  16  Prefactor     18.403        13.734        .93338E-04    .83068E-04
  17  Prefactor     9.3201        11.815        .13126E-03   -.17323E-06
  18  Prefactor     .10000E-03    81.387        .18142E-02** at limit **
  19  Prefactor     .10000E-03    94.249        .18142E-02** at limit **
  20  Prefactor     5.6667        6.8946        .16874E-03   -.11454E-04
  21  Prefactor     19.631        15.544        .90393E-04    .35215E-05
  22  norm          8.4153        5.2830        .13559E-03   -.31275E-04
  23  norm          .10000E-03    14.845        .18142E-02** at limit **
  24  Normalizat    1.3967        .23541        .24051E-03   -.36821E-03
  25  Prefactor     .62469        .22028        .34420E-03   -.13932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.85198
  Prefactor  = 3.10482
  Prefactor  = 1.84797
  norm       = 1.50215
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.415
  Prefactor  = 0.000100001
  Prefactor  = 1.46583
  Prefactor  = 3.29151
  norm       = 2.54236
  norm       = 12.2109
  Prefactor  = 18.4033
  Prefactor  = 9.32008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.6667
  Prefactor  = 19.6314
  norm       = 8.41533
  norm       = 0.0001
  Normalizat = 1.39666
  Prefactor  = 0.624685
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.497     FROM HESSE     STATUS=OK           411 CALLS     3443 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8520        25.065        .96302E-05   -1.5370    
   2  Prefactor     3.1048        7.7522        .92096E-05   -1.5356    
   3  Prefactor     1.8480        1.6422        .35905E-05   -1.5436    
   4  norm          1.5021        1.3562        .33083E-05   -1.5463    
   5  Prefactor     .10000E-03    12.698        .84454E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9866        .43922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    109.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .90150        .14437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0574        .34378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.415        4.5440        .36482E-05   -1.4975    
  11  Prefactor     .10000E-03    2.7549        .37460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4658        2.5652        .60932E-05   -1.5466    
  13  Prefactor     3.2915        5.3767        .88063E-05   -1.5345    
  14  norm          2.5424        .41038        .38233E-05   -1.5389    
  15  norm          12.211        5.3274        .45158E-05   -1.5009    
  16  Prefactor     18.403        13.733        .37335E-05   -1.4850    
  17  Prefactor     9.3201        11.813        .52502E-05   -1.5097    
  18  Prefactor     .10000E-03    81.434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    94.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6667        6.8943        .67496E-05   -1.5232    
  21  Prefactor     19.631        15.545        .36157E-05   -1.4822    
  22  norm          8.4153        5.2829        .54235E-05   -1.5128    
  23  norm          .10000E-03    14.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3967        .23556        .48102E-04   -.80725    
  25  Prefactor     .62469        .22044        .13768E-04   -1.0656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37079e-10
Minuit parameter uncertainties:
  1  16.9191
  2  7.7547
  3  1.64229
  4  1.35621
  5  0.000422694
  6  9.88143e-05
  7  5.74575e-05
  8  2.62811e-07
  9  1.5839e-05
  10  4.54417
  11  9.58376e-05
  12  2.56534
  13  5.37753
  14  0.410381
  15  5.32761
  16  13.7349
  17  11.8162
  18  0.000369079
  19  6.39786e-05
  20  6.89529
  21  15.548
  22  5.28323
  23  1.25288e-05
  24  0.235738
  25  0.220745
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.542e+00  4.104e-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.247e-01  2.207e-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.397e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 139.75
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.30e-07 +/- 6.93e-08
Energy Flux (Fixed Index): 1.49e-04 +/- 2.41e-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) = 6132.30281129
delta logL = 0.194366538907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6132.29501693
delta logL = 0.202160892738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5465       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1672       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60363       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=   6132.295     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5465        .42190        .43978E-02   -.34154E-03
   2  alpha         2.1672        .17181        .11690        .94745E-04
   3  Normalizat    1.4267        .19422        .53977E-01   -.77594E-04
   4  Prefactor     .60364        .19164        .78961E-01   -.84764E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54654
  alpha      = 2.16721
  Normalizat = 1.42668
  Prefactor  = 0.603636
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.295     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5465        .41533        .19434E-04   -1.5389    
   2  alpha         2.1672        .17187        .51018E-03   -.13351    
   3  Normalizat    1.4267        .22596        .23865E-03   -.79860    
   4  Prefactor     .60364        .22094        .34968E-03   -1.0743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3543e-11
Minuit parameter uncertainties:
  1  0.415329
  2  0.172009
  3  0.226116
  4  0.221254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600065': 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) = 6132.29501693
delta logL = 0.202160893035

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.547e+00  4.153e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.167e+00  1.720e-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.036e-01  2.213e-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.427e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 138.60
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.17 +/- 0.17
Photon Flux (Free Index): 4.04e-07 +/- 7.71e-08
Energy Flux (Free Index): 1.63e-04 +/- 3.65e-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/600065/cmap_HighResolution_405993601_406252801_4FGL_J1224.9+2122_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.30e-07', energy_flux2='1.63e-04', photon_flux_error='6.93e-08', dlogl='2.02e-01', energy_flux='1.49e-04', photon_flux2='4.04e-07', job_status='DONE', time_completed='2021-09-05 13:40:53.130796', photon_index_error2='0.17', photon_index2='2.17', ts='139.75', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='3.65e-05', EG='1.40', time_epoch_completed='1630874453.13', return_code='0', job_id='600065', GAL2='0.60', EG2='1.43', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='7.71e-08', ts2='138.60', photon_index='2.28' WHERE bin_id='643' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:40:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 600065: <4FGL_J1224.9+2122_daily_bin643> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin643> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:25:34 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:25:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:25:36 2021
Terminated at Sun Sep  5 13:40:53 2021
Results reported at Sun Sep  5 13:40:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin643 186.228 21.3814 405993601 406252801 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 :                                   665.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

