/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 50 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 = 7445
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1414
RA = 171.491, Dec = 20.0912
tmin = 605836801, tmax = 606096001
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='786095', job_status='RUN', time_executed='2021-09-03 20:42:35.383331', time_epoch_executed='1630726955.38' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786095

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786095/ft1_4FGL_J1125.9+2005_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786095/ft2_4FGL_J1125.9+2005_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786095/ft1_4FGL_J1125.9+2005_daily_bin1414.fits outfile=/scratch/kocevski/786095/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1414.fits ra=171.491 dec=20.0912 rad=12.0 tmin=605836801.0 tmax=606096001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.43
user 3.43
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786095/ft1_filtered_4FGL_J1125.9+2005_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/786095/ft2_4FGL_J1125.9+2005_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/786095/ltcube_605836801_606096001_4FGL_J1125.9+2005_daily_bin1414.fits outfile=/scratch/kocevski/786095/expmap_605836801_606096001_4FGL_J1125.9+2005_daily_bin1414.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/786095/ltcube_605836801_606096001_4FGL_J1125.9+2005_daily_bin1414.fits
.....................!
real 195.30
user 187.82
sys 4.36

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/786095/ft1_filtered_4FGL_J1125.9+2005_daily_bin1414.fits scfile=/scratch/kocevski/786095/ft2_4FGL_J1125.9+2005_daily_bin1414.fits outfile=/scratch/kocevski/786095/cmap_605836801_606096001_4FGL_J1125.9+2005_daily_bin1414.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786095/ft1_filtered_4FGL_J1125.9+2005_daily_bin1414.fits scfile=/scratch/kocevski/786095/ft2_4FGL_J1125.9+2005_daily_bin1414.fits outfile=/scratch/kocevski/786095/cmap_HighResolution_605836801_606096001_4FGL_J1125.9+2005_daily_bin1414.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.64
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0028       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2335       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5732       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7523       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4888       1.0000         .10000E-03   10000.    
    11 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7526       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8364       1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .70145       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0807       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93913       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=   5551.597     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2927 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6723       -.59136E-07** at limit **
   2  Prefactor     1.4455        3.0024        .40827E-06    .10868E-03
   3  Prefactor     10.290        9.2393        .95443E-07   -.12164E-03
   4  Prefactor     .10000E-03    4.8279        .24684E-06** at limit **
   5  Prefactor     2.0023        6.3672        .10415E-06   -.91997E-04
   6  Prefactor     2.2312        14.610        .25320E-06   -.76371E-04
   7  Prefactor     .10000E-03    17.466        .74018E-06** at limit **
   8  norm          1.5734        1.6528        .95203E-07   -.18551E-03
   9  Prefactor     3.7534        3.1509       -.13166E-06   -.58822E-03
  10  Prefactor     3.4889        4.2695        .18045E-06   -.10664E-03
  11  norm          .10000E-03    8.3286       -.30404E-06** at limit **
  12  norm          1.7540        5.9914        .41390E-05   -.89090E-03
  13  Prefactor     .10000E-03    4.3112        .15638E-06** at limit **
  14  Prefactor     1.8230        46.909        .11018E-05   -.28348E-04
  15  Prefactor     63.623        43.456        .45106E-06   -.16432E-03
  16  Prefactor     .10001E-03    12.303       -.34891E-05** at limit **
  17  Prefactor     16.195        21.838       -.11180E-05   -.26845E-03
  18  Prefactor     .10000E-03    3.1162        .11627E-06** at limit **
  19  Prefactor     .10000E-03    .51746        .10861E-06** at limit **
  20  norm          .70527        2.3511        .42844E-06   -.64068E-04
  21  Prefactor     .10000E-03    19.124        .39335E-06** at limit **
  22  Prefactor     .10000E-03    1.7011        .28817E-06** at limit **
  23  Prefactor     .10000E-03    1.3361        .25477E-06** at limit **
  24  Normalizat    1.0802        .19883        .97297E-06   -.49088E-03
  25  Prefactor     .93968        .18763       -.29163E-05   -.70943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.44553
  Prefactor  = 10.2895
  Prefactor  = 0.0001
  Prefactor  = 2.00234
  Prefactor  = 2.23121
  Prefactor  = 0.000100001
  norm       = 1.57344
  Prefactor  = 3.75336
  Prefactor  = 3.4889
  norm       = 0.0001
  norm       = 1.754
  Prefactor  = 0.0001
  Prefactor  = 1.82298
  Prefactor  = 63.6229
  Prefactor  = 0.000100015
  Prefactor  = 16.1947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.705274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08024
  Prefactor  = 0.939677
 **********
 **   18 **HESSE 
 **********

 FCN=   5551.597     FROM HESSE     STATUS=OK           423 CALLS     3350 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6928        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4455        2.9953        .17403E-03   -1.5468    
   3  Prefactor     10.290        9.2283        .12492E-03   -1.5066    
   4  Prefactor     .10000E-03    4.8526        .15988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0023        6.3180        .29262E-03   -1.5425    
   6  Prefactor     2.2312        14.281        .27506E-03   -1.5409    
   7  Prefactor     .10000E-03    17.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5734        1.6329        .91845E-04   -1.5457    
   9  Prefactor     3.7534        3.1160        .10947E-03   -1.5320    
  10  Prefactor     3.4889        4.2647        .82829E-03   -1.5334    
  11  norm          .10000E-03    8.3930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7540        6.4507        .15833E-02   -1.5443    
  13  Prefactor     .10000E-03    4.3303        .15113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8230        47.334        .30788E-03   -1.5438    
  15  Prefactor     63.623        43.440        .50304E-04   -1.4111    
  16  Prefactor     .10001E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.195        21.504        .99524E-04   -1.4903    
  18  Prefactor     .10000E-03    3.1242        .12848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .52188        .52379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .70527        2.3033        .18038E-03   -1.5540    
  21  Prefactor     .10000E-03    19.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7388        .95123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3789        .16862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0802        .22798        .24030E-03   -.90389    
  25  Prefactor     .93968        .21670        .26300E-03   -.94768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0016e-09
Minuit parameter uncertainties:
  1  1.2148e-05
  2  2.99562
  3  9.22959
  4  1.39615e-05
  5  6.32009
  6  11.2934
  7  0.000267928
  8  1.6329
  9  3.11616
  10  4.26509
  11  7.10937e-05
  12  6.4533
  13  3.27605e-05
  14  18.5941
  15  43.4612
  16  0.000883522
  17  21.5144
  18  1.45878e-05
  19  5.70603e-06
  20  2.3036
  21  8.7729e-05
  22  2.67429e-05
  23  2.11779e-05
  24  0.228192
  25  0.216902
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.276e-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:  9.397e-01  2.169e-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:  1.080e+00  2.282e-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: 5.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786095/likelihoodResults_605836801_606096001_4FGL_J1125.9+2005_daily_bin1414.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) = 5551.59817269
delta logL = -0.00109583747508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5551.59707672
delta logL = 1.32095010486e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2211       1.0000          .0000       10.000    
     3 'Normalizat'    1.0803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93966       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=   5551.597     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    50.839        .15364E-02** at limit **
   2  Index         2.1622        7.0785        .50000        .31943E-04
   3  Normalizat    1.0802        .15328E-01    .24030E-03    .86485E-04
   4  Prefactor     .93968        .15840E-01    .26301E-03    .60819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101405
  Index      = 2.16225
  Normalizat = 1.08024
  Prefactor  = 0.939682
 **********
 **   18 **HESSE 
 **********

 FCN=   5551.597     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10141E-03    211.75        .30728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1622        5.3010        .50000       -.60353    
   3  Normalizat    1.0802        .32682E-01    .96118E-05   -.90389    
   4  Prefactor     .93968        .33771E-01    .10520E-04   -.94768    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.67211e-08
Minuit parameter uncertainties:
  1  0.0346211
  2  499.993
  3  0.0326828
  4  0.033772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786095': 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) = 5551.59707632
delta logL = 5.3486746765e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.014e-04  3.462e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.162e+00  5.000e+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:  9.397e-01  3.377e-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:  1.080e+00  3.268e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/786095/cmap_HighResolution_605836801_606096001_4FGL_J1125.9+2005_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-03 20:55:34.994831', job_id='786095', GAL2='0.94', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630727734.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='5.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1414' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 786095: <4FGL_J1125.9+2005_daily_bin1414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1414 171.491 20.0912 605836801 606096001 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 :                                   706.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            849 sec.

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

