/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 101 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin61
RA = 171.491, Dec = 20.0912
tmin = 255139201, tmax = 255398401
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='778515', job_status='RUN', time_executed='2021-09-03 20:18:39.555346', time_epoch_executed='1630725519.56' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778515/ft1_4FGL_J1125.9+2005_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778515/ft2_4FGL_J1125.9+2005_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778515/ft1_4FGL_J1125.9+2005_daily_bin61.fits outfile=/scratch/kocevski/778515/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin61.fits ra=171.491 dec=20.0912 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.64
user 7.28
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778515/ft1_filtered_4FGL_J1125.9+2005_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/778515/ft2_4FGL_J1125.9+2005_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/778515/ltcube_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.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/778515/ft2_4FGL_J1125.9+2005_daily_bin61.fits
.....................!
real 16.69
user 16.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778515/ft1_filtered_4FGL_J1125.9+2005_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/778515/ft2_4FGL_J1125.9+2005_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/778515/ltcube_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.fits outfile=/scratch/kocevski/778515/expmap_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.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/778515/ltcube_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.fits
.....................!
real 191.84
user 185.89
sys 5.15

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/778515/ft1_filtered_4FGL_J1125.9+2005_daily_bin61.fits scfile=/scratch/kocevski/778515/ft2_4FGL_J1125.9+2005_daily_bin61.fits outfile=/scratch/kocevski/778515/cmap_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778515/ft1_filtered_4FGL_J1125.9+2005_daily_bin61.fits scfile=/scratch/kocevski/778515/ft2_4FGL_J1125.9+2005_daily_bin61.fits outfile=/scratch/kocevski/778515/cmap_HighResolution_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/778515/ft1_filtered_4FGL_J1125.9+2005_daily_bin61.fits', '/scratch/kocevski/778515/ft2_4FGL_J1125.9+2005_daily_bin61.fits', expMap='/scratch/kocevski/778515/expmap_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.fits', expCube='/scratch/kocevski/778515/ltcube_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/778515/Model_4FGL_J1125.9+2005_daily_bin61.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/778515/ft1_filtered_4FGL_J1125.9+2005_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/778515/ft2_4FGL_J1125.9+2005_daily_bin61.fits
Exposure map: /scratch/kocevski/778515/expmap_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.fits
Exposure cube: /scratch/kocevski/778515/ltcube_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/778515/Model_4FGL_J1125.9+2005_daily_bin61.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) = 4540.08640766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7534       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2802       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5324       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5548       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .26905E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3473       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54626       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8881       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.345       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18348E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3051       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89883       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0431       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=   4540.018     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2918 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.527        .83649E-06** at limit **
   2  Prefactor     .10000E-03    2.5006        .20830E-05** at limit **
   3  Prefactor     8.7537        8.3625        .95610E-06    .31607E-03
   4  Prefactor     3.2765        9.7686        .13255E-05    .12989E-03
   5  Prefactor     .10000E-03    7.9609       -.28098E-06** at limit **
   6  Prefactor     .10000E-03    4.0004        .89326E-06** at limit **
   7  Prefactor     .10000E-03    7.7072       -.61154E-06** at limit **
   8  norm          1.5325        1.1571        .21220E-07   -.13308E-04
   9  Prefactor     2.5547        2.3720        .17841E-07   -.98454E-04
  10  Prefactor     .10000E-03    4.7311        .75150E-06** at limit **
  11  norm          .10000E-03    6.0992       -.16300E-06** at limit **
  12  norm          .10000E-03    4.6438        .37386E-06** at limit **
  13  Prefactor     5.3458        13.970        .52269E-06   -.81255E-04
  14  Prefactor     .10000E-03    6.5981       -.56639E-06** at limit **
  15  Prefactor     .10000E-03    11.544        .80696E-06** at limit **
  16  Prefactor     7.3140        8.4871        .65554E-07   -.10431E-04
  17  Prefactor     .10000E-03    10.271        .17502E-05** at limit **
  18  Prefactor     .10000E-03    20.981        .27185E-05** at limit **
  19  Prefactor     .54602        1.4010        .19468E-06   -.63640E-04
  20  norm          2.8881        1.8874        .82768E-08   -.17824E-03
  21  Prefactor     11.342        23.048        .22177E-05    .26764E-04
  22  Prefactor     .10006E-03    5.9911        .38976E-05** at limit **
  23  Prefactor     3.3043        3.0622        .12171E-05    .65007E-03
  24  Normalizat    .89886        .19951       -.81175E-06   -.31481E-03
  25  Prefactor     1.0431        .20265       -.58646E-06   -.32464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.75372
  Prefactor  = 3.27653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53246
  Prefactor  = 2.55466
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.34583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.31402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.546019
  norm       = 2.88808
  Prefactor  = 11.342
  Prefactor  = 0.000100062
  Prefactor  = 3.30434
  Normalizat = 0.898864
  Prefactor  = 1.04312
 **********
 **   18 **HESSE 
 **********

 FCN=   4540.018     FROM HESSE     STATUS=OK           429 CALLS     3347 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2205        .17701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7537        8.6060        .67740E-03   -1.5116    
   4  Prefactor     3.2765        9.6895        .22357E-03   -1.5346    
   5  Prefactor     .10000E-03    7.9994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0127        .13174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5325        1.1557        .60720E-04   -1.5460    
   9  Prefactor     2.5547        2.3777        .96822E-04   -1.5388    
  10  Prefactor     .10000E-03    4.7485        .14299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.473        .32243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.6676        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3458        13.969        .17379E-03   -1.5246    
  14  Prefactor     .10000E-03    6.6061        .16903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3140        8.4875        .14830E-03   -1.5167    
  17  Prefactor     .10000E-03    10.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .54602        1.2318        .12274E-02   -1.5560    
  20  norm          2.8881        1.8851        .72328E-04   -1.5368    
  21  Prefactor     11.342        23.125        .11894E-03   -1.5034    
  22  Prefactor     .10006E-03    15.502        .19790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3043        3.4040        .60169E-03   -1.5344    
  24  Normalizat    .89886        .22781        .24358E-03   -.96500    
  25  Prefactor     1.0431        .23355        .24371E-03   -.91306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54477e-09
Minuit parameter uncertainties:
  1  3.24569e-05
  2  0.000191111
  3  8.60719
  4  9.69418
  5  2.98974e-05
  6  2.46884e-05
  7  3.50966e-05
  8  1.15567
  9  2.3778
  10  1.24868e-05
  11  1.02546e-05
  12  1.07551e-05
  13  13.9772
  14  1.72454e-05
  15  3.33021e-05
  16  8.48891
  17  7.27615e-05
  18  5.16902e-05
  19  1.23189
  20  1.88516
  21  23.1427
  22  0.00196774
  23  3.40418
  24  0.22805
  25  0.233778
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  5.346e+00  1.398e+01  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.043e+00  2.338e-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:  8.989e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778515/likelihoodResults_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.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) = 4538.18399942
delta logL = 1.83419514068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4537.88691712
delta logL = 2.13127744742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.8509       1.0000          .0000       10.000    
     3 'Normalizat'    .74147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1678       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4537.887     FROM MIGRAD    STATUS=FAILED       275 CALLS      604 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .23491E-01    .10820E-03** at limit **
   2  Index         7.8510        2.8951        .34156E-02    .21433E-03
   3  Normalizat    .74184        .14270        .26523E-03    .20433E-03
   4  Prefactor     1.1676        .15170        .23225E-03   -.16390E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4537.887     FROM SIMPLEX   STATUS=UNCHANGED    173 CALLS      777 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .23491E-01    .86169E-05** at limit **
   2  Index         7.8510        2.8951        .22361E-04    .21433E-03
   3  Normalizat    .74184        .14270        .17437E-05    .20433E-03
   4  Prefactor     1.1676        .15170        .23618E-06   -.16390E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4537.887     FROM MIGRAD    STATUS=FAILED        73 CALLS      850 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16341E-01    .13200E-03** at limit **
   2  Index         7.8510        2.8798        .54649E-05    .19515E-03
   3  Normalizat    .74184        .13370        .21218E-05    .20360E-03
   4  Prefactor     1.1676        .14232        .92900E-05   -.16398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.851
  Normalizat = 0.741837
  Prefactor  = 1.16758
 **********
 **   18 **HESSE 
 **********

 FCN=   4537.887     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      883 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .13821E-01    .14435E-03   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8510        2.8639        .10342E-04   -43.376    
   3  Normalizat    .74184        .12652        .42437E-06   -1.0226    
   4  Prefactor     1.1676        .13468        .18580E-05   -2.2682    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1351e-08
Minuit parameter uncertainties:
  1  3.08029e-08
  2  3.16911
  3  0.126566
  4  0.134716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778515': 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): 1
logL (Free Index) = 4537.88690434
delta logL = 2.13129022862

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.080e-08  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  7.851e+00  3.169e+00  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.168e+00  1.347e-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:  7.418e-01  1.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.92
Ra Dec: 171.491 20.091
Photon Index (Free Index): 7.85 +/- 3.17
Photon Flux (Free Index): 1.14e-07 +/- 8.76e-07
Energy Flux (Free Index): 1.33e-05 +/- 1.01e-04

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/778515/cmap_HighResolution_255139201_255398401_4FGL_J1125.9+2005_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='2.13e+00', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-03 20:30:23.228409', photon_index_error2='3.17', photon_index2='7.85', ts='0.17', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.01e-04', EG='0.90', time_epoch_completed='1630726223.23', return_code='0', job_id='778515', GAL2='1.17', EG2='0.74', return_code2='1', photon_flux_error2='8.76e-07', ts2='4.92', photon_index='2.24' WHERE bin_id='61' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:30:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 778515: <4FGL_J1125.9+2005_daily_bin61> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin61> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:16:23 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:16:31 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:31 2021
Terminated at Fri Sep  3 20:30:23 2021
Results reported at Fri Sep  3 20:30:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin61 171.491 20.0912 255139201 255398401 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 :                                   695.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            840 sec.

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

