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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1461
RA = 186.228, Dec = 21.3814
tmin = 618019201, tmax = 618278401
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='603471', job_status='RUN', time_executed='2021-09-05 13:40:01.609346', time_epoch_executed='1630874401.61' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603471/ft1_4FGL_J1224.9+2122_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603471/ft2_4FGL_J1224.9+2122_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603471/ft1_4FGL_J1224.9+2122_daily_bin1461.fits outfile=/scratch/kocevski/603471/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1461.fits ra=186.228 dec=21.3814 rad=12.0 tmin=618019201.0 tmax=618278401.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 5.63
user 4.86
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603471/ft1_filtered_4FGL_J1224.9+2122_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/603471/ft2_4FGL_J1224.9+2122_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/603471/ltcube_618019201_618278401_4FGL_J1224.9+2122_daily_bin1461.fits outfile=/scratch/kocevski/603471/expmap_618019201_618278401_4FGL_J1224.9+2122_daily_bin1461.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/603471/ltcube_618019201_618278401_4FGL_J1224.9+2122_daily_bin1461.fits
.....................!
real 190.59
user 185.20
sys 4.95

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/603471/ft1_filtered_4FGL_J1224.9+2122_daily_bin1461.fits scfile=/scratch/kocevski/603471/ft2_4FGL_J1224.9+2122_daily_bin1461.fits outfile=/scratch/kocevski/603471/cmap_618019201_618278401_4FGL_J1224.9+2122_daily_bin1461.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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603471/ft1_filtered_4FGL_J1224.9+2122_daily_bin1461.fits scfile=/scratch/kocevski/603471/ft2_4FGL_J1224.9+2122_daily_bin1461.fits outfile=/scratch/kocevski/603471/cmap_HighResolution_618019201_618278401_4FGL_J1224.9+2122_daily_bin1461.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/603471/ft1_filtered_4FGL_J1224.9+2122_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/603471/ft2_4FGL_J1224.9+2122_daily_bin1461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603471/Model_4FGL_J1224.9+2122_daily_bin1461.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/603471/ft1_filtered_4FGL_J1224.9+2122_daily_bin1461.fits.....................!
real 49.91
user 48.40
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .90340       1.0000         .10000E-03   10000.    
     4 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11752E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72614       1.0000         .10000E-03   10000.    
    10 'norm      '    7.2579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0170       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .23569       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1279       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    133.39       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4726       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    19.466       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1286       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=   5232.305     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2882 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.169       -.54085E-06** at limit **
   2  Prefactor     .10000E-03    5.4829        .59223E-06** at limit **
   3  Prefactor     .90357        2.4941        .16945E-06   -.74902E-04
   4  norm          .10000E-03    .68688        .49840E-07** at limit **
   5  Prefactor     11.594        20.280        .10777E-04    .53010E-04
   6  Prefactor     .10000E-03    4.2743        .24446E-06** at limit **
   7  Prefactor     .10000E-03    125.41       -.74918E-05** at limit **
   8  Prefactor     .10000E-03    2.0532        .41549E-07** at limit **
   9  Prefactor     .72575        3.2236       -.16114E-05   -.15005E-03
  10  norm          7.2579        3.7113       -.91763E-06   -.74412E-04
  11  Prefactor     .10000E-03    .83961        .22482E-07** at limit **
  12  Prefactor     5.0172        3.0623        .23410E-06   -.95724E-05
  13  Prefactor     .10000E-03    3.7483       -.28806E-06** at limit **
  14  norm          .23571        .22470        .33598E-07    .41867E-03
  15  norm          3.1288        4.4583        .17163E-06   -.10956E-02
  16  Prefactor     .10000E-03    5.2724       -.73214E-06** at limit **
  17  Prefactor     15.031        10.621        .20790E-06    .14389E-05
  18  Prefactor     .10000E-03    31.605       -.64486E-06** at limit **
  19  Prefactor     133.40        100.01        .41094E-05    .53264E-05
  20  Prefactor     .10000E-03    2.4562        .38666E-07** at limit **
  21  Prefactor     1.4730        8.8874        .89322E-06   -.53748E-03
  22  norm          .10000E-03    1.3527       -.39210E-07** at limit **
  23  norm          19.467        20.148       -.41582E-06   -.24864E-05
  24  Normalizat    1.1352        .21137       -.58225E-06    .31779E-04
  25  Prefactor     1.1286        .20766       -.52891E-06    .35591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.903571
  norm       = 0.0001
  Prefactor  = 11.594
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.725752
  norm       = 7.25785
  Prefactor  = 0.0001
  Prefactor  = 5.01717
  Prefactor  = 0.0001
  norm       = 0.235707
  norm       = 3.12882
  Prefactor  = 0.0001
  Prefactor  = 15.0307
  Prefactor  = 0.0001
  Prefactor  = 133.399
  Prefactor  = 0.0001
  Prefactor  = 1.47299
  norm       = 0.0001
  norm       = 19.4673
  Normalizat = 1.13518
  Prefactor  = 1.12862
 **********
 **   18 **HESSE 
 **********

 FCN=   5232.305     FROM HESSE     STATUS=OK           427 CALLS     3309 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4951        .16541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .90357        2.4707        .17819E-03   -1.5518    
   4  norm          .10000E-03    1.5259        .11632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.594        20.302        .11754E-03   -1.5027    
   6  Prefactor     .10000E-03    4.4058        .29175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    126.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0891        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .72575        3.2983        .24549E-03   -1.5538    
  10  norm          7.2579        3.7105        .94806E-04   -1.5169    
  11  Prefactor     .10000E-03    .84149        .64690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0172        3.0586        .92691E-04   -1.5260    
  13  Prefactor     .10000E-03    3.7603        .13666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23571        .21898        .31839E-04   -1.5611    
  15  norm          3.1288        4.9918        .97838E-03   -1.5354    
  16  Prefactor     .10000E-03    5.2896        .16218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.031        10.620        .10331E-03   -1.4932    
  18  Prefactor     .10000E-03    31.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     133.40        100.02        .34867E-04   -1.3393    
  20  Prefactor     .10000E-03    2.4582        .11071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4730        31.082        .17701E-02   -1.5465    
  22  norm          .10000E-03    1.3563        .82152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          19.467        20.149        .90779E-04   -1.4825    
  24  Normalizat    1.1352        .25620        .26367E-03   -.88630    
  25  Prefactor     1.1286        .25286        .26400E-03   -.88557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70473e-09
Minuit parameter uncertainties:
  1  4.61197e-06
  2  1.95413e-06
  3  2.47096
  4  1.34642e-05
  5  20.314
  6  9.22511e-06
  7  0.00102082
  8  1.39948e-05
  9  3.09442
  10  3.71057
  11  3.39485e-06
  12  3.05874
  13  1.35018e-06
  14  0.218976
  15  4.99249
  16  1.39834e-06
  17  10.6217
  18  3.07236e-05
  19  100.145
  20  1.32624e-06
  21  13.5402
  22  8.19124e-07
  23  20.1563
  24  0.256477
  25  0.253133
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.357e-01  2.190e-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:  1.129e+00  2.531e-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.135e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.79
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/603471/likelihoodResults_618019201_618278401_4FGL_J1224.9+2122_daily_bin1461.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) = 5232.09987889
delta logL = 0.20544920719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5232.08999088
delta logL = 0.215337217537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12494       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6583       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1173       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=   5232.090     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12476        .13732        .56692E-02   -.20282E-03
   2  alpha         1.6573        .47018        .35871       -.36858E-04
   3  Normalizat    1.1601        .20521        .59051E-01    .10765E-04
   4  Prefactor     1.1169        .20559        .59967E-01    .79185E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.124758
  alpha      = 1.65732
  Normalizat = 1.16013
  Prefactor  = 1.11689
 **********
 **   18 **HESSE 
 **********

 FCN=   5232.090     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12476        .20403        .25101E-04   -1.5637    
   2  alpha         1.6573        .84068        .13047E-01   -.34380    
   3  Normalizat    1.1601        .25026        .26116E-03   -.87844    
   4  Prefactor     1.1169        .25036        .26521E-03   -.88928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41898e-12
Minuit parameter uncertainties:
  1  0.204031
  2  0.85967
  3  0.25052
  4  0.250622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603471': 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) = 5232.08998895
delta logL = 0.215339141262

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.248e-01  2.040e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.657e+00  8.597e-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:  1.117e+00  2.506e-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.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.66 +/- 0.86
Photon Flux (Free Index): 1.69e-08 +/- 2.81e-08
Energy Flux (Free Index): 1.95e-05 +/- 2.70e-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/603471/cmap_HighResolution_618019201_618278401_4FGL_J1224.9+2122_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-05', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='1.95e-05', photon_flux_error='3.70e-08', dlogl='2.15e-01', energy_flux='1.38e-05', photon_flux2='1.69e-08', job_status='DONE', time_completed='2021-09-05 13:51:20.150026', photon_index_error2='0.86', photon_index2='1.66', ts='2.79', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='2.70e-05', EG='1.14', time_epoch_completed='1630875080.15', return_code='0', job_id='603471', GAL2='1.12', EG2='1.16', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.81e-08', ts2='3.23', photon_index='2.28' WHERE bin_id='1461' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 603471: <4FGL_J1224.9+2122_daily_bin1461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1461 186.228 21.3814 618019201 618278401 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 :                                   647.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

