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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin107
RA = 186.228, Dec = 21.3814
tmin = 267062401, tmax = 267321601
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='597214', job_status='RUN', time_executed='2021-09-05 13:16:29.895315', time_epoch_executed='1630872989.9' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597214/ft1_4FGL_J1224.9+2122_daily_bin107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597214/ft2_4FGL_J1224.9+2122_daily_bin107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597214/ft1_4FGL_J1224.9+2122_daily_bin107.fits outfile=/scratch/kocevski/597214/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin107.fits ra=186.228 dec=21.3814 rad=12.0 tmin=267062401.0 tmax=267321601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.42
user 1.22
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597214/ft1_filtered_4FGL_J1224.9+2122_daily_bin107.fits evtable="EVENTS" scfile=/scratch/kocevski/597214/ft2_4FGL_J1224.9+2122_daily_bin107.fits sctable="SC_DATA" expcube=/scratch/kocevski/597214/ltcube_267062401_267321601_4FGL_J1224.9+2122_daily_bin107.fits outfile=/scratch/kocevski/597214/expmap_267062401_267321601_4FGL_J1224.9+2122_daily_bin107.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/597214/ltcube_267062401_267321601_4FGL_J1224.9+2122_daily_bin107.fits
.....................!
real 191.68
user 185.20
sys 4.93

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/597214/ft1_filtered_4FGL_J1224.9+2122_daily_bin107.fits scfile=/scratch/kocevski/597214/ft2_4FGL_J1224.9+2122_daily_bin107.fits outfile=/scratch/kocevski/597214/cmap_267062401_267321601_4FGL_J1224.9+2122_daily_bin107.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=186.228 yref=21.3814 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597214/ft1_filtered_4FGL_J1224.9+2122_daily_bin107.fits scfile=/scratch/kocevski/597214/ft2_4FGL_J1224.9+2122_daily_bin107.fits outfile=/scratch/kocevski/597214/cmap_HighResolution_267062401_267321601_4FGL_J1224.9+2122_daily_bin107.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78413       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28517E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3509       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2981       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3660       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1889       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2976       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.402       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.865       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.204       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6154       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.199       1.0000         .10000E-03   10000.    
    22 'norm      '    21.033       1.0000         .10000E-03   10000.    
    23 'norm      '    26.358       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3662       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .51846       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=   6322.167     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2913 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9616       -.19155E-05** at limit **
   2  Prefactor     .10000E-03    5.6629        .93053E-06** at limit **
   3  Prefactor     .78356        1.2697       -.86424E-07   -.60973E-03
   4  norm          1.4557        .92620       -.44103E-07   -.70012E-05
   5  Prefactor     4.1642        15.004        .11500E-06   -.87981E-04
   6  Prefactor     .10000E-03    1.9440       -.18613E-06** at limit **
   7  Prefactor     .10000E-03    54.817        .15639E-07** at limit **
   8  Prefactor     .10007E-03    1.3649        .64297E-06** at limit **
   9  Prefactor     2.3530        3.0283       -.16285E-06   -.98744E-03
  10  norm          5.2980        2.6595        .27113E-07    .63509E-04
  11  Prefactor     1.4379        1.2954       -.12376E-07    .53977E-04
  12  Prefactor     5.3662        2.3371       -.79364E-07   -.13904E-04
  13  Prefactor     .10000E-03    3.5697       -.24901E-06** at limit **
  14  norm          1.1890        .32191       -.54141E-07   -.57782E-03
  15  norm          7.2984        4.4518       -.62497E-07   -.57253E-05
  16  Prefactor     .10000E-03    4.9622        .13218E-06** at limit **
  17  Prefactor     34.401        12.787       -.73851E-07    .30534E-05
  18  Prefactor     53.853        34.270       -.11285E-04   -.19397E-04
  19  Prefactor     23.203        33.531       -.16377E-05   -.33540E-06
  20  Prefactor     6.6150        5.9433       -.26797E-06   -.26310E-03
  21  Prefactor     16.197        13.322        .86239E-06   -.95360E-05
  22  norm          21.033        5.9672       -.69474E-07    .16377E-04
  23  norm          26.358        19.731       -.12438E-06    .47137E-05
  24  Normalizat    1.3661        .18867        .10515E-05   -.20278E-03
  25  Prefactor     .51864        .17882        .15844E-05   -.82290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.783565
  norm       = 1.45572
  Prefactor  = 4.16416
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100073
  Prefactor  = 2.35302
  norm       = 5.29798
  Prefactor  = 1.43791
  Prefactor  = 5.36615
  Prefactor  = 0.0001
  norm       = 1.18902
  norm       = 7.29843
  Prefactor  = 0.0001
  Prefactor  = 34.4013
  Prefactor  = 53.8531
  Prefactor  = 23.2033
  Prefactor  = 6.615
  Prefactor  = 16.1974
  norm       = 21.0327
  norm       = 26.3581
  Normalizat = 1.36614
  Prefactor  = 0.518641
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.167     FROM HESSE     STATUS=OK           437 CALLS     3350 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .78356        1.0442        .10951E-02   -1.5531    
   4  norm          1.4557        .92626        .59012E-04   -1.5467    
   5  Prefactor     4.1642        15.005        .19751E-03   -1.5300    
   6  Prefactor     .10000E-03    7.0890        .20905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    11.259        .16634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3530        2.8862        .14209E-03   -1.5401    
  10  norm          5.2980        2.6687        .88189E-04   -1.5248    
  11  Prefactor     1.4379        1.2916        .82965E-04   -1.5468    
  12  Prefactor     5.3662        2.3373        .76713E-04   -1.5245    
  13  Prefactor     .10000E-03    3.6101        .14663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1890        .32230        .22143E-04   -1.5490    
  15  norm          7.2984        4.4524        .12620E-03   -1.5168    
  16  Prefactor     .10000E-03    4.9799        .17304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.401        12.784        .68323E-04   -1.4534    
  18  Prefactor     53.853        34.255        .54651E-04   -1.4239    
  19  Prefactor     23.203        33.530        .83154E-04   -1.4744    
  20  Prefactor     6.6150        5.9503        .78010E-03   -1.5194    
  21  Prefactor     16.197        13.302        .99513E-04   -1.4903    
  22  norm          21.033        5.9679        .87336E-04   -1.4790    
  23  norm          26.358        19.731        .78029E-04   -1.4681    
  24  Normalizat    1.3661        .21504        .22811E-03   -.81613    
  25  Prefactor     .51864        .20250        .34869E-03   -1.1113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9888e-09
Minuit parameter uncertainties:
  1  6.97362e-06
  2  1.75765e-05
  3  1.04426
  4  0.926273
  5  15.0189
  6  0.000226178
  7  9.83286e-06
  8  0.00180933
  9  2.88639
  10  2.66873
  11  1.29167
  12  2.33733
  13  3.11379e-06
  14  0.3223
  15  4.45258
  16  9.11927e-05
  17  12.7855
  18  34.2675
  19  33.557
  20  5.95084
  21  13.3049
  22  5.96806
  23  19.736
  24  0.215184
  25  0.202778
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.189e+00  3.223e-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:  5.186e-01  2.028e-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.366e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.49
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.01e-07 +/- 5.44e-08
Energy Flux (Fixed Index): 6.98e-05 +/- 1.89e-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) = 6321.3494261
delta logL = 0.817546281294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.34924742
delta logL = 0.817724958694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1379       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6599       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56411       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=   6321.349     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1379        4.0014        .45547E-02    .99686E-04
   2  alpha         2.6597        3.8266        .19477        .14264E-04
   3  Normalizat    1.3027        .22322        .52533E-01    .73615E-05
   4  Prefactor     .56400        .27435        .75743E-01    .33187E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13792
  alpha      = 2.65974
  Normalizat = 1.3027
  Prefactor  = 0.563995
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.349     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1379        .31385        .20163E-04   -1.5495    
   2  alpha         2.6597        .31553        .83849E-02    .63941E-01
   3  Normalizat    1.3027        .21274        .23227E-03   -.83486    
   4  Prefactor     .56400        .20583        .33539E-03   -1.0912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09677e-11
Minuit parameter uncertainties:
  1  0.313846
  2  0.316375
  3  0.212882
  4  0.206099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597214': 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) = 6321.34924704
delta logL = 0.817725338255

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.138e+00  3.138e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.660e+00  3.164e-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:  5.640e-01  2.061e-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.303e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.84
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.66 +/- 0.32
Photon Flux (Free Index): 2.49e-07 +/- 7.06e-08
Energy Flux (Free Index): 6.03e-05 +/- 1.63e-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/597214/cmap_HighResolution_267062401_267321601_4FGL_J1224.9+2122_daily_bin107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-07', energy_flux2='6.03e-05', photon_flux_error='5.44e-08', dlogl='8.18e-01', energy_flux='6.98e-05', photon_flux2='2.49e-07', job_status='DONE', time_completed='2021-09-05 13:27:38.914505', photon_index_error2='0.32', photon_index2='2.66', ts='38.49', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.37', time_epoch_completed='1630873658.91', return_code='0', job_id='597214', GAL2='0.56', EG2='1.30', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='7.06e-08', ts2='39.84', photon_index='2.28' WHERE bin_id='107' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:27:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 597214: <4FGL_J1224.9+2122_daily_bin107> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin107> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:58 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:15:59 2021
Terminated at Sun Sep  5 13:27:39 2021
Results reported at Sun Sep  5 13:27:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin107 186.228 21.3814 267062401 267321601 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 :                                   657.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

