/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 33 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 = 7483
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin82
RA = 171.491, Dec = 20.0912
tmin = 260582401, tmax = 260841601
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='778548', job_status='RUN', time_executed='2021-09-03 20:17:54.049801', time_epoch_executed='1630725474.05' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='82'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778548/ft1_4FGL_J1125.9+2005_daily_bin82.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778548/ft1_4FGL_J1125.9+2005_daily_bin82.fits outfile=/scratch/kocevski/778548/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin82.fits ra=171.491 dec=20.0912 rad=12.0 tmin=260582401.0 tmax=260841601.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 1.74
user 1.43
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.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/778548/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin82.fits evtable="EVENTS" outfile="/scratch/kocevski/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.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 1.06
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.fits" evtable="EVENTS" scfile=/scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits sctable="SC_DATA" outfile=/scratch/kocevski/778548/ltcube_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.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/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits
.....................!
real 19.25
user 18.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits sctable="SC_DATA" expcube=/scratch/kocevski/778548/ltcube_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.fits outfile=/scratch/kocevski/778548/expmap_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.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/778548/ltcube_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.fits
.....................!
real 197.58
user 187.39
sys 8.84

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1125.9+2005 @ 171.491 20.0912

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.fits scfile=/scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits outfile=/scratch/kocevski/778548/cmap_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.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=171.491 yref=20.0912 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.fits scfile=/scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits outfile=/scratch/kocevski/778548/cmap_HighResolution_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.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=171.491 yref=20.0912 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/778548/Model_4FGL_J1125.9+2005_daily_bin82.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/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.fits.....................!
real 70.85
user 69.45
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.fits', '/scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits', expMap='/scratch/kocevski/778548/expmap_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.fits', expCube='/scratch/kocevski/778548/ltcube_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/778548/Model_4FGL_J1125.9+2005_daily_bin82.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.9+2005'

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/778548/ft1_filtered_4FGL_J1125.9+2005_daily_bin82.fits
Spacecraft file(s): /scratch/kocevski/778548/ft2_4FGL_J1125.9+2005_daily_bin82.fits
Exposure map: /scratch/kocevski/778548/expmap_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.fits
Exposure cube: /scratch/kocevski/778548/ltcube_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/778548/Model_4FGL_J1125.9+2005_daily_bin82.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) = 8089.42537691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1090       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4175       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9575       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7783       1.0000         .10000E-03   10000.    
    11 'norm      '    5.3880       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2766       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.387       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .76876       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0328       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99100       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0007       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8089.422     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2932 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1090        4.4370       -.96876E-07   -.16838E-03
   2  Prefactor     3.4176        1.9846       -.43550E-07   -.32590E-03
   3  Prefactor     .10005E-03    3.8614       -.25349E-05** at limit **
   4  Prefactor     8.9584        6.7465       -.46684E-07   -.42152E-03
   5  Prefactor     .10000E-03    9.0851        .64229E-05** at limit **
   6  Prefactor     .10000E-03    5.9412       -.32629E-05** at limit **
   7  Prefactor     .10000E-03    6.2724        .21973E-05** at limit **
   8  norm          .10000E-03    .36135        .74978E-07** at limit **
   9  Prefactor     .26060        1.2674       -.36245E-06   -.17772E-05
  10  Prefactor     1.7782        2.7612       -.12683E-06   -.28805E-03
  11  norm          5.3864        6.9705       -.28438E-06   -.12116E-03
  12  norm          5.2754        10.855        .12079E-05   -.34468E-04
  13  Prefactor     .10000E-03    4.1498       -.19401E-05** at limit **
  14  Prefactor     14.387        17.332       -.16229E-06   -.27895E-04
  15  Prefactor     .10000E-03    73.460       -.38788E-06** at limit **
  16  Prefactor     .10000E-03    14.915        .13828E-05** at limit **
  17  Prefactor     1.9756        32.792        .23028E-05   -.90616E-04
  18  Prefactor     .10000E-03    3.8262        .45394E-06** at limit **
  19  Prefactor     .76903        1.3182       -.45722E-06   -.22052E-02
  20  norm          5.0328        1.7849       -.37809E-07   -.36102E-04
  21  Prefactor     .10000E-03    4.5146        .22715E-05** at limit **
  22  Prefactor     .10000E-03    1.2305       -.21682E-08** at limit **
  23  Prefactor     .10000E-03    .88040       -.24115E-07** at limit **
  24  Normalizat    .99110        .15508        .12380E-06    .45014E-03
  25  Prefactor     1.0006        .15172        .17881E-06    .34877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10903
  Prefactor  = 3.41762
  Prefactor  = 0.000100046
  Prefactor  = 8.95836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.260597
  Prefactor  = 1.77817
  norm       = 5.38644
  norm       = 5.2754
  Prefactor  = 0.0001
  Prefactor  = 14.3865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9756
  Prefactor  = 0.0001
  Prefactor  = 0.769031
  norm       = 5.03277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.991103
  Prefactor  = 1.00059
 **********
 **   18 **HESSE 
 **********

 FCN=   8089.422     FROM HESSE     STATUS=OK           433 CALLS     3365 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1090        4.4333        .19092E-03   -1.5303    
   2  Prefactor     3.4176        1.9812        .92646E-04   -1.5338    
   3  Prefactor     .10005E-03    9.6281        .31693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9584        6.7634        .13392E-03   -1.5109    
   5  Prefactor     .10000E-03    9.0033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .53737        .10421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26060        8.7457        .18658E-02   -1.5606    
  10  Prefactor     1.7782        2.7421        .18168E-03   -1.5441    
  11  norm          5.3864        6.9839        .17312E-03   -1.5244    
  12  norm          5.2754        10.806        .17498E-03   -1.5249    
  13  Prefactor     .10000E-03    4.1743        .17867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.387        17.265        .10560E-03   -1.4949    
  15  Prefactor     .10000E-03    74.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9756        30.498        .29473E-03   -1.5427    
  18  Prefactor     .10000E-03    3.8416        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .76903        1.1838        .12886E-02   -1.5533    
  20  norm          5.0328        1.7787        .68150E-04   -1.5259    
  21  Prefactor     .10000E-03    4.5037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.2468        .97365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.6550        .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99110        .18329        .23844E-03   -.93329    
  25  Prefactor     1.0006        .17876        .25055E-03   -.92710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08468e-08
Minuit parameter uncertainties:
  1  4.43363
  2  1.9812
  3  0.00133825
  4  6.76395
  5  9.34104e-05
  6  4.55844e-05
  7  2.96941e-05
  8  3.80106e-06
  9  3.01924
  10  2.74228
  11  6.98496
  12  10.8101
  13  2.4712e-05
  14  17.2706
  15  1.74139e-05
  16  1.8049e-05
  17  15.5334
  18  5.04163e-06
  19  1.1838
  20  1.77877
  21  3.07086e-05
  22  8.95244e-08
  23  9.97327e-07
  24  0.183405
  25  0.178864
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.471e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.001e+00  1.789e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.911e-01  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 4.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778548/likelihoodResults_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.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): 102
logL (Free Index) = 8089.42346471
delta logL = -0.00114149300225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8089.42232351
delta logL = -2.86077920464e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2227       1.0000          .0000       10.000    
     3 'Normalizat'    .99104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0006       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+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=   8089.422     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10072E-03    32.904        .18112E-02** at limit **
   2  Index         2.1818        6.0214        .50000        .30137E-04
   3  Normalizat    .99110        .99893E-02    .23844E-03    .38573E-04
   4  Prefactor     1.0006        .10596E-01    .25055E-03    .37934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100723
  Index      = 2.18177
  Normalizat = 0.991102
  Prefactor  = 1.00059
 **********
 **   18 **HESSE 
 **********

 FCN=   8089.422     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10072E-03    146.26        .36225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1818        6.1797        .50000       -.59879    
   3  Normalizat    .99110        .21722E-01    .95374E-05   -.93329    
   4  Prefactor     1.0006        .23041E-01    .10022E-04   -.92710    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85701e-08
Minuit parameter uncertainties:
  1  0.0206232
  2  335.258
  3  0.0217227
  4  0.023041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778548': 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): 102
logL (Free Index) = 8089.42232281
delta logL = 4.07651896239e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.007e-04  2.062e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.182e+00  3.353e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.001e+00  2.304e-02  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.911e-01  2.172e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.491 20.091

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/778548/cmap_HighResolution_260582401_260841601_4FGL_J1125.9+2005_daily_bin82.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-03', job_status='DONE', photon_flux_upper_limit='4.16e-08', time_completed='2021-09-03 20:32:37.892601', job_id='778548', GAL2='1.00', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630726357.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='82' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:32:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 778548: <4FGL_J1125.9+2005_daily_bin82> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin82> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:16:25 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:16:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:16:35 2021
Terminated at Fri Sep  3 20:32:38 2021
Results reported at Fri Sep  3 20:32:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin82 171.491 20.0912 260582401 260841601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.9+2005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   879.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            973 sec.

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

