/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 5 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 = 7384
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin449
RA = 186.228, Dec = 21.3814
tmin = 355708801, tmax = 355968001
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='598686', job_status='RUN', time_executed='2021-09-05 13:20:50.411324', time_epoch_executed='1630873250.41' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598686/ft1_4FGL_J1224.9+2122_daily_bin449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598686/ft2_4FGL_J1224.9+2122_daily_bin449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598686/ft1_4FGL_J1224.9+2122_daily_bin449.fits outfile=/scratch/kocevski/598686/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin449.fits ra=186.228 dec=21.3814 rad=12.0 tmin=355708801.0 tmax=355968001.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 4.91
user 4.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598686/ft1_filtered_4FGL_J1224.9+2122_daily_bin449.fits" evtable="EVENTS" scfile=/scratch/kocevski/598686/ft2_4FGL_J1224.9+2122_daily_bin449.fits sctable="SC_DATA" outfile=/scratch/kocevski/598686/ltcube_355708801_355968001_4FGL_J1224.9+2122_daily_bin449.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/598686/ft2_4FGL_J1224.9+2122_daily_bin449.fits
.....................!
real 11.79
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598686/ft1_filtered_4FGL_J1224.9+2122_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/598686/ft2_4FGL_J1224.9+2122_daily_bin449.fits sctable="SC_DATA" expcube=/scratch/kocevski/598686/ltcube_355708801_355968001_4FGL_J1224.9+2122_daily_bin449.fits outfile=/scratch/kocevski/598686/expmap_355708801_355968001_4FGL_J1224.9+2122_daily_bin449.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/598686/ltcube_355708801_355968001_4FGL_J1224.9+2122_daily_bin449.fits
.....................!
real 191.13
user 185.69
sys 4.85

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/598686/ft1_filtered_4FGL_J1224.9+2122_daily_bin449.fits scfile=/scratch/kocevski/598686/ft2_4FGL_J1224.9+2122_daily_bin449.fits outfile=/scratch/kocevski/598686/cmap_355708801_355968001_4FGL_J1224.9+2122_daily_bin449.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598686/ft1_filtered_4FGL_J1224.9+2122_daily_bin449.fits scfile=/scratch/kocevski/598686/ft2_4FGL_J1224.9+2122_daily_bin449.fits outfile=/scratch/kocevski/598686/cmap_HighResolution_355708801_355968001_4FGL_J1224.9+2122_daily_bin449.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.166       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7904       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0892       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15929E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6879       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9600       1.0000         .10000E-03   10000.    
    14 'norm      '    .30887       1.0000         .10000E-03   10000.    
    15 'norm      '    .13324E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.112       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30744E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.844       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4903       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5496       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5175       1.0000         .10000E-03   10000.    
    23 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0514       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0382       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=   6547.612     FROM MIGRAD    STATUS=CONVERGED   1043 CALLS     3932 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.166        21.268        .60326E-04    .10791E-03
   2  Prefactor     .10000E-03    4.0103        .15790E-02** at limit **
   3  Prefactor     .10000E-03    9.8579        .13857E-02** at limit **
   4  norm          4.7508        1.4009        .49870E-04    .59728E-04
   5  Prefactor     7.7992        23.816        .14367E-03   -.11079E-05
   6  Prefactor     2.0779        4.0411        .10492E-02    .19759E-03
   7  Prefactor     49.136        127.20        .57223E-04    .55629E-06
   8  Prefactor     4.0871        2.8038        .10497E-03    .86029E-03
   9  Prefactor     .10004E-03    12.126        .19135E-02** at limit **
  10  norm          2.5050        2.0675        .10075E-03   -.15571E-04
  11  Prefactor     2.6880        1.8037        .84695E-04   -.15705E-04
  12  Prefactor     4.7388        2.2016        .77614E-04   -.13183E-05
  13  Prefactor     1.9610        4.8072        .26684E-03    .67615E-04
  14  norm          .30893        .25847        .35776E-03    .82485E-03
  15  norm          .10001E-03    10.037        .26612E-02** at limit **
  16  Prefactor     11.102        9.7777        .12018E-03    .13867E-03
  17  Prefactor     18.213        9.9919        .93858E-04   -.29070E-05
  18  Prefactor     .10003E-03    224.41        .73756E-02** at limit **
  19  Prefactor     11.871        40.814        .11640E-03   -.23441E-05
  20  Prefactor     8.4929        8.5533        .68788E-03    .11850E-04
  21  Prefactor     4.5511        12.787        .18873E-03    .12288E-04
  22  norm          4.5185        3.6522        .13325E-03   -.12883E-04
  23  norm          .10000E-03    7.9693        .18142E-02** at limit **
  24  Normalizat    1.0513        .22129        .25987E-03    .33285E-03
  25  Prefactor     1.0381        .21465        .27419E-03    .33372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1662
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.7508
  Prefactor  = 7.79924
  Prefactor  = 2.07788
  Prefactor  = 49.1361
  Prefactor  = 4.08713
  Prefactor  = 0.000100037
  norm       = 2.50497
  Prefactor  = 2.68804
  Prefactor  = 4.73879
  Prefactor  = 1.96103
  norm       = 0.308933
  norm       = 0.000100009
  Prefactor  = 11.1018
  Prefactor  = 18.213
  Prefactor  = 0.000100027
  Prefactor  = 11.871
  Prefactor  = 8.49286
  Prefactor  = 4.55114
  norm       = 4.5185
  norm       = 0.0001
  Normalizat = 1.05132
  Prefactor  = 1.03814
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.612     FROM HESSE     STATUS=OK           407 CALLS     4339 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.166        21.252        .12065E-04   -1.4378    
   2  Prefactor     .10000E-03    4.0108        .31581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9536        .27714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7508        1.4009        .19948E-05   -1.5272    
   5  Prefactor     7.7992        23.806        .57466E-05   -1.5149    
   6  Prefactor     2.0779        4.0353        .41970E-04   -1.5420    
   7  Prefactor     49.136        127.15        .11445E-04   -1.4305    
   8  Prefactor     4.0871        2.8009        .41987E-05   -1.5304    
   9  Prefactor     .10004E-03    12.231        .38269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5050        2.0675        .40302E-05   -1.5391    
  11  Prefactor     2.6880        1.8037        .33878E-05   -1.5380    
  12  Prefactor     4.7388        2.2015        .31046E-05   -1.5273    
  13  Prefactor     1.9610        4.8008        .10673E-04   -1.5428    
  14  norm          .30893        .25824        .14310E-04   -1.5597    
  15  norm          .10001E-03    10.159        .53224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.102        9.7500        .48074E-05   -1.5041    
  17  Prefactor     18.213        9.9917        .37543E-05   -1.4854    
  18  Prefactor     .10003E-03    231.64        .29502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.871        40.819        .46560E-05   -1.5019    
  20  Prefactor     8.4929        8.5507        .27515E-04   -1.5125    
  21  Prefactor     4.5511        12.786        .75493E-05   -1.5281    
  22  norm          4.5185        3.6518        .53299E-05   -1.5283    
  23  norm          .10000E-03    7.9694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0513        .22120        .51974E-04   -.91331    
  25  Prefactor     1.0381        .21481        .54837E-04   -.91469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39056e-09
Minuit parameter uncertainties:
  1  21.2555
  2  8.9605e-07
  3  0.000244644
  4  1.40088
  5  23.8346
  6  4.03578
  7  127.861
  8  2.80095
  9  0.00134439
  10  2.06751
  11  1.80374
  12  2.20155
  13  4.80178
  14  0.258243
  15  0.000599604
  16  9.75144
  17  9.99265
  18  0.0050578
  19  40.9151
  20  8.55196
  21  12.7933
  22  3.65198
  23  5.06577e-07
  24  0.22139
  25  0.214985
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.089e-01  2.582e-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.038e+00  2.150e-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.051e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/598686/likelihoodResults_355708801_355968001_4FGL_J1224.9+2122_daily_bin449.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) = 6545.45309858
delta logL = 2.15921260926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6545.45158005
delta logL = 2.16073114238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22294       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8290       1.0000          .0000       5.0000    
     3 'Normalizat'    .92900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1200       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=   6545.452     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22301        1.5052        .37812E-02    .15415E-02
   2  alpha         3.8280        4.3779        .36427        .31298E-04
   3  Normalizat    .92904        .64929E-01    .45271E-01    .16904E-04
   4  Prefactor     1.1201        .70467E-01    .59945E-01    .81654E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.223014
  alpha      = 3.82802
  Normalizat = 0.92904
  Prefactor  = 1.12006
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.452     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .39E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22301        .21959        .16906E-04   -1.5614    
   2  alpha         3.8280        .91606        .16362E-02    .56003    
   3  Normalizat    .92904        .21476        .27393E-03   -.95447    
   4  Prefactor     1.1201        .21896        .26509E-03   -.88828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94986e-15
Minuit parameter uncertainties:
  1  0.219589
  2  0.947329
  3  0.214961
  4  0.21914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598686': 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) = 6545.45157868
delta logL = 2.16073251286

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.230e-01  2.196e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.828e+00  9.473e-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.120e+00  2.191e-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:  9.290e-01  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.66
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.83 +/- 0.95
Photon Flux (Free Index): 1.41e-07 +/- 6.90e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/598686/cmap_HighResolution_355708801_355968001_4FGL_J1224.9+2122_daily_bin449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-05', comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='2.19e-05', photon_flux_error='4.36e-08', dlogl='2.16e+00', energy_flux='1.81e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-05 13:35:02.133476', photon_index_error2='0.95', photon_index2='3.83', ts='1.92', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.07e-05', EG='1.05', time_epoch_completed='1630874102.13', return_code='0', job_id='598686', GAL2='1.12', EG2='0.93', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.90e-08', ts2='6.66', photon_index='2.28' WHERE bin_id='449' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:35:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 598686: <4FGL_J1224.9+2122_daily_bin449> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin449 186.228 21.3814 355708801 355968001 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 :                                   847.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

