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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1086
RA = 186.228, Dec = 21.3814
tmin = 520819201, tmax = 521078401
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='602928', job_status='RUN', time_executed='2021-09-05 13:39:13.863658', time_epoch_executed='1630874353.86' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602928/ft1_4FGL_J1224.9+2122_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602928/ft2_4FGL_J1224.9+2122_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602928/ft1_4FGL_J1224.9+2122_daily_bin1086.fits outfile=/scratch/kocevski/602928/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1086.fits ra=186.228 dec=21.3814 rad=12.0 tmin=520819201.0 tmax=521078401.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.87
user 3.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602928/ft2_4FGL_J1224.9+2122_daily_bin1086.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/602928/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1086.fits evtable="EVENTS" outfile="/scratch/kocevski/602928/ft1_filtered_4FGL_J1224.9+2122_daily_bin1086.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 2.73
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602928/ft1_filtered_4FGL_J1224.9+2122_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/602928/ft2_4FGL_J1224.9+2122_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/602928/ltcube_520819201_521078401_4FGL_J1224.9+2122_daily_bin1086.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/602928/ft2_4FGL_J1224.9+2122_daily_bin1086.fits
.....................!
real 12.20
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602928/ft1_filtered_4FGL_J1224.9+2122_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/602928/ft2_4FGL_J1224.9+2122_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/602928/ltcube_520819201_521078401_4FGL_J1224.9+2122_daily_bin1086.fits outfile=/scratch/kocevski/602928/expmap_520819201_521078401_4FGL_J1224.9+2122_daily_bin1086.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/602928/ltcube_520819201_521078401_4FGL_J1224.9+2122_daily_bin1086.fits
.....................!
real 199.75
user 192.98
sys 5.18

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/602928/ft1_filtered_4FGL_J1224.9+2122_daily_bin1086.fits scfile=/scratch/kocevski/602928/ft2_4FGL_J1224.9+2122_daily_bin1086.fits outfile=/scratch/kocevski/602928/cmap_520819201_521078401_4FGL_J1224.9+2122_daily_bin1086.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602928/ft1_filtered_4FGL_J1224.9+2122_daily_bin1086.fits scfile=/scratch/kocevski/602928/ft2_4FGL_J1224.9+2122_daily_bin1086.fits outfile=/scratch/kocevski/602928/cmap_HighResolution_520819201_521078401_4FGL_J1224.9+2122_daily_bin1086.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49039       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0699       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.818       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.8990       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7315       1.0000         .10000E-03   10000.    
    14 'norm      '    .32225       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5166       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.017       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.307       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5058       1.0000         .10000E-03   10000.    
    23 'norm      '    22.983       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1262       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98636       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=   5896.178     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2479 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9750        .97834E-07** at limit **
   2  Prefactor     .10000E-03    3.8757       -.36257E-06** at limit **
   3  Prefactor     .49042        1.3244        .44759E-06   -.24217E-03
   4  norm          5.0698        1.5508       -.22484E-07   -.13606E-03
   5  Prefactor     12.818        14.449        .17749E-06   -.11532E-04
   6  Prefactor     .10000E-03    1.9652       -.11859E-06** at limit **
   7  Prefactor     .10001E-03    18.147        .38726E-05** at limit **
   8  Prefactor     .10000E-03    1.6877        .15937E-06** at limit **
   9  Prefactor     .10000E-03    2.1715        .45203E-06** at limit **
  10  norm          8.8977        3.8269       -.23672E-06    .49365E-04
  11  Prefactor     .10000E-03    1.6312       -.18791E-06** at limit **
  12  Prefactor     3.5882        2.5880        .12613E-05   -.12789E-02
  13  Prefactor     9.7313        5.8320       -.10684E-06   -.37043E-04
  14  norm          .32230        .28701        .50421E-07   -.61511E-03
  15  norm          3.5165        3.6959       -.65313E-07   -.66238E-04
  16  Prefactor     .10000E-03    8.9314       -.45603E-06** at limit **
  17  Prefactor     .10000E-03    5.0824       -.27468E-06** at limit **
  18  Prefactor     35.016        24.429       -.47175E-07   -.49856E-04
  19  Prefactor     .10001E-03    20.654       -.40565E-05** at limit **
  20  Prefactor     .10000E-03    2.2074        .18691E-06** at limit **
  21  Prefactor     10.307        12.724        .77914E-07   -.42126E-04
  22  norm          1.5058        1.9349        .22562E-07   -.31966E-04
  23  norm          22.983        18.186       -.26919E-07   -.18101E-04
  24  Normalizat    1.1263        .18951       -.71208E-06   -.11604E-03
  25  Prefactor     .98639        .19561       -.20318E-06   -.12079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.490424
  norm       = 5.0698
  Prefactor  = 12.8182
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.8977
  Prefactor  = 0.0001
  Prefactor  = 3.5882
  Prefactor  = 9.73126
  norm       = 0.322297
  norm       = 3.51645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0164
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 10.3065
  norm       = 1.50582
  norm       = 22.9831
  Normalizat = 1.12626
  Prefactor  = 0.986385
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.178     FROM HESSE     STATUS=OK           431 CALLS     2910 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9812        .16728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8968        .14785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49042        1.3067        .14001E-03   -1.5568    
   4  norm          5.0698        1.5522        .50806E-04   -1.5258    
   5  Prefactor     12.818        14.450        .11188E-03   -1.4992    
   6  Prefactor     .10000E-03    2.0050        .10508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    19.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7353        .19435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1380        .21521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.8977        3.8141        .92248E-04   -1.5111    
  11  Prefactor     .10000E-03    1.6580        .95451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5882        2.6894        .50524E-03   -1.5329    
  13  Prefactor     9.7313        5.8259        .12846E-03   -1.5084    
  14  norm          .32230        .27557        .35595E-03   -1.5594    
  15  norm          3.5165        3.6872        .14446E-03   -1.5333    
  16  Prefactor     .10000E-03    9.0612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1066        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.016        24.432        .67721E-04   -1.4524    
  19  Prefactor     .10001E-03    22.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2156        .11149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.307        12.728        .12480E-03   -1.5066    
  22  norm          1.5058        1.9201        .11783E-03   -1.5463    
  23  norm          22.983        18.185        .83552E-04   -1.4749    
  24  Normalizat    1.1263        .22224        .24508E-03   -.88913    
  25  Prefactor     .98639        .23043        .27547E-03   -.93185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19119e-09
Minuit parameter uncertainties:
  1  1.01277e-05
  2  3.1343e-05
  3  1.30681
  4  1.55223
  5  14.4538
  6  6.98057e-06
  7  0.000762425
  8  4.92477e-06
  9  5.46122e-05
  10  3.81425
  11  1.03391e-05
  12  2.6895
  13  5.82628
  14  0.275576
  15  3.68743
  16  4.90834e-05
  17  2.67467e-05
  18  24.4392
  19  0.000850775
  20  1.22919e-05
  21  12.731
  22  1.92013
  23  18.1893
  24  0.222425
  25  0.230663
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.223e-01  2.756e-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.864e-01  2.307e-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.126e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/602928/likelihoodResults_520819201_521078401_4FGL_J1224.9+2122_daily_bin1086.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) = 5894.93764648
delta logL = 1.23992910142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5894.92730912
delta logL = 1.25026646554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25922       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4628       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   5894.927     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25909        2.3173        .46272E-02    .11306E-02
   2  alpha         3.4629        4.1258        .37801        .48331E-04
   3  Normalizat    1.0390        .61949E-01    .41392E-01    .87185E-05
   4  Prefactor     1.0477        .69458E-01    .60672E-01    .89080E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.259091
  alpha      = 3.4629
  Normalizat = 1.03901
  Prefactor  = 1.04773
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.927     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25909        .29013        .20760E-04   -1.5606    
   2  alpha         3.4629        1.0317        .16261E-01    .39538    
   3  Normalizat    1.0390        .22529        .25349E-03   -.91735    
   4  Prefactor     1.0477        .23382        .26832E-03   -.91155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23076e-10
Minuit parameter uncertainties:
  1  0.290129
  2  1.06956
  3  0.225501
  4  0.23405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602928': 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) = 5894.92730746
delta logL = 1.25026813078

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.591e-01  2.901e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.463e+00  1.070e+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.048e+00  2.340e-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.039e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.46 +/- 1.07
Photon Flux (Free Index): 1.14e-07 +/- 6.56e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.19e-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/602928/cmap_HighResolution_520819201_521078401_4FGL_J1224.9+2122_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-05', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.93e-05', photon_flux_error='4.65e-08', dlogl='1.25e+00', energy_flux='1.89e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-05 13:50:48.256609', photon_index_error2='1.07', photon_index2='3.46', ts='1.83', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.19e-05', EG='1.13', time_epoch_completed='1630875048.26', return_code='0', job_id='602928', GAL2='1.05', EG2='1.04', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='6.56e-08', ts2='4.52', photon_index='2.28' WHERE bin_id='1086' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 602928: <4FGL_J1224.9+2122_daily_bin1086> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1086 186.228 21.3814 520819201 521078401 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 :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

