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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin403
RA = 186.228, Dec = 21.3814
tmin = 343785601, tmax = 344044801
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='598615', job_status='RUN', time_executed='2021-09-05 13:20:44.809120', time_epoch_executed='1630873244.81' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598615/ft1_4FGL_J1224.9+2122_daily_bin403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598615/ft2_4FGL_J1224.9+2122_daily_bin403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598615/ft1_4FGL_J1224.9+2122_daily_bin403.fits outfile=/scratch/kocevski/598615/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin403.fits ra=186.228 dec=21.3814 rad=12.0 tmin=343785601.0 tmax=344044801.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.37
user 3.16
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598615/ft1_filtered_4FGL_J1224.9+2122_daily_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/598615/ft2_4FGL_J1224.9+2122_daily_bin403.fits sctable="SC_DATA" expcube=/scratch/kocevski/598615/ltcube_343785601_344044801_4FGL_J1224.9+2122_daily_bin403.fits outfile=/scratch/kocevski/598615/expmap_343785601_344044801_4FGL_J1224.9+2122_daily_bin403.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/598615/ltcube_343785601_344044801_4FGL_J1224.9+2122_daily_bin403.fits
.....................!
real 190.77
user 185.39
sys 4.97

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/598615/ft1_filtered_4FGL_J1224.9+2122_daily_bin403.fits scfile=/scratch/kocevski/598615/ft2_4FGL_J1224.9+2122_daily_bin403.fits outfile=/scratch/kocevski/598615/cmap_343785601_344044801_4FGL_J1224.9+2122_daily_bin403.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598615/ft1_filtered_4FGL_J1224.9+2122_daily_bin403.fits scfile=/scratch/kocevski/598615/ft2_4FGL_J1224.9+2122_daily_bin403.fits outfile=/scratch/kocevski/598615/cmap_HighResolution_343785601_344044801_4FGL_J1224.9+2122_daily_bin403.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=186.228 yref=21.3814 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2295       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1692       1.0000         .10000E-03   10000.    
     4 'norm      '    .10649E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0813       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11618E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4359       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8552       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5544       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8783       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34714       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8543       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6532       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7176       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.887       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.918       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2313       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0508       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=   7624.071     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2507 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2297        18.128       -.14048E-06   -.36599E-04
   2  Prefactor     .89706        5.8520        .22946E-06   -.12388E-04
   3  Prefactor     2.1690        1.9563        .87095E-07   -.12185E-03
   4  norm          .10000E-03    .43866        .13529E-06** at limit **
   5  Prefactor     .10000E-03    4.5065        .18399E-06** at limit **
   6  Prefactor     1.0810        2.8353        .12864E-05    .14246E-03
   7  Prefactor     .10000E-03    18.123        .95639E-07** at limit **
   8  Prefactor     2.4363        2.6185        .66971E-07   -.11821E-03
   9  Prefactor     4.8539        3.4235        .65221E-07   -.12236E-03
  10  norm          3.5542        2.3255       -.24959E-07   -.57892E-04
  11  Prefactor     2.8785        1.9547       -.43423E-07   -.13223E-04
  12  Prefactor     2.4474        2.2957        .14811E-06    .19112E-04
  13  Prefactor     .10000E-03    2.7549        .22429E-06** at limit **
  14  norm          .34713        .20562        .28028E-07   -.11688E-03
  15  norm          2.8541        2.7547       -.44941E-07   -.34772E-04
  16  Prefactor     4.6595        8.2043        .31600E-06   -.62627E-05
  17  Prefactor     .10000E-03    8.1920       -.45630E-06** at limit **
  18  Prefactor     12.480        23.022        .48817E-06   -.26986E-04
  19  Prefactor     1.5327        865.17       -.10809E-03    .21716E-04
  20  Prefactor     .10000E-03    3.1220        .36167E-06** at limit **
  21  Prefactor     25.884        13.915        .22639E-06   -.29003E-04
  22  norm          .10000E-03    3.1282        .62959E-06** at limit **
  23  norm          16.925        16.622        .78201E-07    .79842E-06
  24  Normalizat    1.2313        .17388       -.82486E-06   -.31087E-03
  25  Prefactor     1.0508        .17342       -.19104E-05   -.23125E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.22974
  Prefactor  = 0.897064
  Prefactor  = 2.16902
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08105
  Prefactor  = 0.0001
  Prefactor  = 2.43632
  Prefactor  = 4.85389
  norm       = 3.55417
  Prefactor  = 2.87852
  Prefactor  = 2.44736
  Prefactor  = 0.0001
  norm       = 0.347132
  norm       = 2.8541
  Prefactor  = 4.65948
  Prefactor  = 0.0001
  Prefactor  = 12.4797
  Prefactor  = 1.53272
  Prefactor  = 0.0001
  Prefactor  = 25.8844
  norm       = 0.0001
  norm       = 16.9249
  Normalizat = 1.23133
  Prefactor  = 1.05084
 **********
 **   18 **HESSE 
 **********

 FCN=   7624.071     FROM HESSE     STATUS=OK           441 CALLS     2948 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2297        18.040        .14918E-03   -1.5170    
   2  Prefactor     .89706        14.472        .40311E-02   -1.5519    
   3  Prefactor     2.1690        1.9361        .10605E-03   -1.5413    
   4  norm          .10000E-03    4.6503        .11149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5131        .18104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0810        2.8088        .22712E-03   -1.5500    
   7  Prefactor     .10000E-03    18.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4363        2.5823        .13135E-03   -1.5396    
   9  Prefactor     4.8539        3.3998        .12149E-03   -1.5267    
  10  norm          3.5542        2.3239        .10157E-03   -1.5331    
  11  Prefactor     2.8785        1.9587        .94925E-04   -1.5369    
  12  Prefactor     2.4474        2.2804        .11980E-03   -1.5395    
  13  Prefactor     .10000E-03    2.7817        .14152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34713        .20397        .29002E-04   -1.5590    
  15  norm          2.8541        2.7597        .13798E-03   -1.5370    
  16  Prefactor     4.6595        8.1662        .18657E-03   -1.5276    
  17  Prefactor     .10000E-03    8.2289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.480        22.976        .11334E-03   -1.5001    
  19  Prefactor     1.5327        863.04        .32060E-02   -1.5460    
  20  Prefactor     .10000E-03    3.1601        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.884        13.921        .78734E-04   -1.4690    
  22  norm          .10000E-03    3.2005        .15095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.925        16.626        .97375E-04   -1.4885    
  24  Normalizat    1.2313        .20657        .25504E-03   -.85640    
  25  Prefactor     1.0508        .20578        .27863E-03   -.91054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70301e-08
Minuit parameter uncertainties:
  1  18.0537
  2  7.20776
  3  1.9362
  4  5.51574e-05
  5  7.73678e-06
  6  2.80915
  7  1.00064e-05
  8  2.58245
  9  3.39998
  10  2.32397
  11  1.95874
  12  2.28051
  13  1.00678e-05
  14  0.203971
  15  2.75985
  16  8.16817
  17  3.44429e-05
  18  22.9924
  19  73.8332
  20  1.3416e-05
  21  13.9226
  22  2.70923e-05
  23  16.6302
  24  0.206709
  25  0.20594
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.471e-01  2.040e-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.051e+00  2.059e-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.231e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.37
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.87e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.20e-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) = 7623.71490444
delta logL = 0.356169246415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7623.71070786
delta logL = 0.360365826569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37509       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8088       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0771       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=   7623.711     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37505        3.4965        .58124E-02    .85080E-03
   2  alpha         2.8088        3.5092        .41555        .14835E-04
   3  Normalizat    1.1898        .73074E-01    .58484E-01    .10303E-04
   4  Prefactor     1.0772        .79796E-01    .62307E-01    .11951E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.375048
  alpha      = 2.80881
  Normalizat = 1.18978
  Prefactor  = 1.07719
 **********
 **   18 **HESSE 
 **********

 FCN=   7623.711     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37505        .19985        .25915E-04   -1.5585    
   2  alpha         2.8088        .63951        .17417E-01    .12384    
   3  Normalizat    1.1898        .20602        .25864E-03   -.86919    
   4  Prefactor     1.0772        .20565        .27557E-03   -.90199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85828e-13
Minuit parameter uncertainties:
  1  0.199848
  2  0.646813
  3  0.206158
  4  0.205798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598615': 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) = 7623.71070767
delta logL = 0.360366021852

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.750e-01  1.998e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.809e+00  6.468e-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.077e+00  2.058e-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.190e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.13
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.81 +/- 0.65
Photon Flux (Free Index): 9.24e-08 +/- 5.75e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/598615/cmap_HighResolution_343785601_344044801_4FGL_J1224.9+2122_daily_bin403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.87e-08', energy_flux2='2.03e-05', photon_flux_error='3.44e-08', dlogl='3.60e-01', energy_flux='2.04e-05', photon_flux2='9.24e-08', job_status='DONE', time_completed='2021-09-05 13:32:08.295374', photon_index_error2='0.65', photon_index2='2.81', ts='7.37', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.23', time_epoch_completed='1630873928.3', return_code='0', job_id='598615', GAL2='1.08', EG2='1.19', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.75e-08', ts2='8.13', photon_index='2.28' WHERE bin_id='403' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:32:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 598615: <4FGL_J1224.9+2122_daily_bin403> in cluster <slac> Done

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

Your job looked like:

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

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

