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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin151
RA = 186.228, Dec = 21.3814
tmin = 278467201, tmax = 278726401
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='597282', job_status='RUN', time_executed='2021-09-05 13:16:25.360952', time_epoch_executed='1630872985.36' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597282

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597282/ft1_4FGL_J1224.9+2122_daily_bin151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597282/ft2_4FGL_J1224.9+2122_daily_bin151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597282/ft1_4FGL_J1224.9+2122_daily_bin151.fits outfile=/scratch/kocevski/597282/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin151.fits ra=186.228 dec=21.3814 rad=12.0 tmin=278467201.0 tmax=278726401.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.82
user 3.47
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597282/ft1_filtered_4FGL_J1224.9+2122_daily_bin151.fits" evtable="EVENTS" scfile=/scratch/kocevski/597282/ft2_4FGL_J1224.9+2122_daily_bin151.fits sctable="SC_DATA" outfile=/scratch/kocevski/597282/ltcube_278467201_278726401_4FGL_J1224.9+2122_daily_bin151.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/597282/ft2_4FGL_J1224.9+2122_daily_bin151.fits
.....................!
real 11.97
user 11.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597282/ft1_filtered_4FGL_J1224.9+2122_daily_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/597282/ft2_4FGL_J1224.9+2122_daily_bin151.fits sctable="SC_DATA" expcube=/scratch/kocevski/597282/ltcube_278467201_278726401_4FGL_J1224.9+2122_daily_bin151.fits outfile=/scratch/kocevski/597282/expmap_278467201_278726401_4FGL_J1224.9+2122_daily_bin151.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/597282/ltcube_278467201_278726401_4FGL_J1224.9+2122_daily_bin151.fits
.....................!
real 190.73
user 185.21
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/597282/ft1_filtered_4FGL_J1224.9+2122_daily_bin151.fits scfile=/scratch/kocevski/597282/ft2_4FGL_J1224.9+2122_daily_bin151.fits outfile=/scratch/kocevski/597282/cmap_278467201_278726401_4FGL_J1224.9+2122_daily_bin151.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597282/ft1_filtered_4FGL_J1224.9+2122_daily_bin151.fits scfile=/scratch/kocevski/597282/ft2_4FGL_J1224.9+2122_daily_bin151.fits outfile=/scratch/kocevski/597282/cmap_HighResolution_278467201_278726401_4FGL_J1224.9+2122_daily_bin151.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7951       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2729       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.649       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11107E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46717E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6305       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .83174       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13708E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.800       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.961       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.787       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18216E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.921       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99243       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0325       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=   6122.712     FROM MIGRAD    STATUS=CONVERGED   1056 CALLS     3422 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.922        .18142E-02** at limit **
   2  Prefactor     .10000E-03    7.0860        .18142E-02** at limit **
   3  Prefactor     2.7955        2.3307        .10350E-03   -.28339E-04
   4  norm          3.2729        1.4756        .60993E-04   -.49581E-04
   5  Prefactor     19.646        19.013        .90356E-04    .40892E-04
   6  Prefactor     .10000E-03    2.0936        .10997E-02** at limit **
   7  Prefactor     .10000E-03    276.11        .18142E-02** at limit **
   8  Prefactor     4.1268        3.3870        .61138E-03   -.10270E-03
   9  Prefactor     .10000E-03    23.340        .18691E-02** at limit **
  10  norm          5.3244        2.7471        .89816E-04   -.67086E-05
  11  Prefactor     .10000E-03    .57191        .57721E-03** at limit **
  12  Prefactor     2.6304        1.9863        .91408E-04   -.10696E-04
  13  Prefactor     .10000E-03    2.6663        .12449E-02** at limit **
  14  norm          .83174        .30904        .24990E-04   -.51772E-03
  15  norm          .10000E-03    3.4949        .14169E-02** at limit **
  16  Prefactor     .10000E-03    8.9094        .18142E-02** at limit **
  17  Prefactor     19.799        12.213        .90011E-04   -.14525E-04
  18  Prefactor     26.961        27.966        .77154E-04   -.21955E-04
  19  Prefactor     32.778        68.849        .69980E-04   -.84477E-05
  20  Prefactor     .10000E-03    8.1620        .18142E-02** at limit **
  21  Prefactor     .10000E-03    12.184        .77590E-01** at limit **
  22  norm          16.920        6.0326        .97365E-04   -.30592E-04
  23  norm          .10000E-03    12.020        .18142E-02** at limit **
  24  Normalizat    .99249        .22718        .27258E-03   -.16600E-03
  25  Prefactor     1.0325        .21532        .26825E-03   -.84295E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79546
  norm       = 3.27291
  Prefactor  = 19.6458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12681
  Prefactor  = 0.000100001
  norm       = 5.32442
  Prefactor  = 0.0001
  Prefactor  = 2.63041
  Prefactor  = 0.0001
  norm       = 0.831743
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7993
  Prefactor  = 26.961
  Prefactor  = 32.7782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9197
  norm       = 0.0001
  Normalizat = 0.992487
  Prefactor  = 1.03249
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.712     FROM HESSE     STATUS=OK           413 CALLS     3835 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.0895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7955        2.3305        .41400E-05   -1.5374    
   4  norm          3.2729        1.4756        .24397E-05   -1.5346    
   5  Prefactor     19.646        19.011        .36142E-05   -1.4821    
   6  Prefactor     .10000E-03    2.0939        .21993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    276.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1268        3.3781        .24455E-04   -1.5302    
   9  Prefactor     .10000E-03    23.703        .37382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3244        2.7470        .35926E-05   -1.5246    
  11  Prefactor     .10000E-03    .57192        .11544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6304        1.9863        .36563E-05   -1.5384    
  13  Prefactor     .10000E-03    2.6665        .24898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .83174        .30904        .99958E-06   -1.5526    
  15  norm          .10000E-03    3.4961        .28338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.799        12.213        .36004E-05   -1.4818    
  18  Prefactor     26.961        27.959        .30861E-05   -1.4669    
  19  Prefactor     32.778        68.904        .27992E-05   -1.4562    
  20  Prefactor     .10000E-03    8.1682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.664        .80219E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.920        6.0325        .38946E-05   -1.4885    
  23  norm          .10000E-03    12.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99249        .22736        .10903E-04   -.93283    
  25  Prefactor     1.0325        .21552        .10730E-04   -.91654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69583e-11
Minuit parameter uncertainties:
  1  7.48616e-05
  2  1.03566e-05
  3  2.33055
  4  1.4756
  5  19.0166
  6  2.67516e-06
  7  1.40324e-05
  8  3.37822
  9  0.000252041
  10  2.74711
  11  9.51203e-08
  12  1.98631
  13  2.28926e-06
  14  0.309038
  15  5.38395e-06
  16  1.80922e-05
  17  12.2146
  18  27.9727
  19  69.0715
  20  1.36039e-05
  21  3.213e-05
  22  6.03275
  23  8.71802e-07
  24  0.227587
  25  0.215698
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.317e-01  3.090e-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.032e+00  2.157e-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.925e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.26
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 5.22e-08
Energy Flux (Fixed Index): 4.89e-05 +/- 1.82e-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) = 6121.60125303
delta logL = 1.11076124793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6121.59869325
delta logL = 1.11332102522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83734       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8830       1.0000          .0000       5.0000    
     3 'Normalizat'    .89775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0943       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=   6121.599     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83732        .30202        .21629E-04    .11033E-02
   2  alpha         2.8830        .42825        .10737E-01    .15585E-04
   3  Normalizat    .89776        .22705        .28479E-03    .47265E-04
   4  Prefactor     1.0943        .22100        .26150E-03    .15390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.837316
  alpha      = 2.88298
  Normalizat = 0.89776
  Prefactor  = 1.09434
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.599     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83732        .29832        .86516E-06   -1.5525    
   2  alpha         2.8830        .42277        .42948E-03    .15380    
   3  Normalizat    .89776        .22732        .11392E-04   -.96539    
   4  Prefactor     1.0943        .22117        .10460E-04   -.89648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3508e-11
Minuit parameter uncertainties:
  1  0.298325
  2  0.424863
  3  0.227567
  4  0.221359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597282': 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) = 6121.59869325
delta logL = 1.11332103142

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.373e-01  2.983e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.883e+00  4.249e-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.094e+00  2.214e-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:  8.978e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.66
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.88 +/- 0.42
Photon Flux (Free Index): 2.19e-07 +/- 8.40e-08
Energy Flux (Free Index): 4.63e-05 +/- 1.50e-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/597282/cmap_HighResolution_278467201_278726401_4FGL_J1224.9+2122_daily_bin151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='4.63e-05', photon_flux_error='5.22e-08', dlogl='1.11e+00', energy_flux='4.89e-05', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-09-05 13:27:47.442191', photon_index_error2='0.42', photon_index2='2.88', ts='16.26', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='0.99', time_epoch_completed='1630873667.44', return_code='0', job_id='597282', GAL2='1.09', EG2='0.90', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='8.40e-08', ts2='18.66', photon_index='2.28' WHERE bin_id='151' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:27:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 597282: <4FGL_J1224.9+2122_daily_bin151> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin151 186.228 21.3814 278467201 278726401 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 :                                   674.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            705 sec.

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

