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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1079
RA = 171.491, Dec = 20.0912
tmin = 519004801, tmax = 519264001
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='784504', job_status='RUN', time_executed='2021-09-03 20:37:33.498155', time_epoch_executed='1630726653.5' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784504/ft1_4FGL_J1125.9+2005_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784504/ft2_4FGL_J1125.9+2005_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784504/ft1_4FGL_J1125.9+2005_daily_bin1079.fits outfile=/scratch/kocevski/784504/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1079.fits ra=171.491 dec=20.0912 rad=12.0 tmin=519004801.0 tmax=519264001.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.59
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784504/ft2_4FGL_J1125.9+2005_daily_bin1079.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/784504/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1079.fits evtable="EVENTS" outfile="/scratch/kocevski/784504/ft1_filtered_4FGL_J1125.9+2005_daily_bin1079.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784504/ft1_filtered_4FGL_J1125.9+2005_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/784504/ft2_4FGL_J1125.9+2005_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/784504/ltcube_519004801_519264001_4FGL_J1125.9+2005_daily_bin1079.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/784504/ft2_4FGL_J1125.9+2005_daily_bin1079.fits
.....................!
real 15.06
user 14.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784504/ft1_filtered_4FGL_J1125.9+2005_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/784504/ft2_4FGL_J1125.9+2005_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/784504/ltcube_519004801_519264001_4FGL_J1125.9+2005_daily_bin1079.fits outfile=/scratch/kocevski/784504/expmap_519004801_519264001_4FGL_J1125.9+2005_daily_bin1079.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/784504/ltcube_519004801_519264001_4FGL_J1125.9+2005_daily_bin1079.fits
.....................!
real 191.60
user 186.46
sys 4.40

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/784504/ft1_filtered_4FGL_J1125.9+2005_daily_bin1079.fits scfile=/scratch/kocevski/784504/ft2_4FGL_J1125.9+2005_daily_bin1079.fits outfile=/scratch/kocevski/784504/cmap_519004801_519264001_4FGL_J1125.9+2005_daily_bin1079.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784504/ft1_filtered_4FGL_J1125.9+2005_daily_bin1079.fits scfile=/scratch/kocevski/784504/ft2_4FGL_J1125.9+2005_daily_bin1079.fits outfile=/scratch/kocevski/784504/cmap_HighResolution_519004801_519264001_4FGL_J1125.9+2005_daily_bin1079.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .55495       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.224       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2705       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.331       1.0000         .10000E-03   10000.    
    12 'norm      '    31.302       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.563       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31594       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94327       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=   5955.230     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2929 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6945       -.35762E-06** at limit **
   2  Prefactor     .55709        1.8326        .53624E-06   -.76146E-04
   3  Prefactor     22.323        10.395       -.26228E-07   -.22723E-05
   4  Prefactor     11.233        11.692        .20082E-05   -.52790E-04
   5  Prefactor     .10000E-03    5.0727       -.26754E-06** at limit **
   6  Prefactor     .10000E-03    6.1829        .19184E-07** at limit **
   7  Prefactor     .10000E-03    10.406       -.11048E-06** at limit **
   8  norm          1.2706        1.3520        .10870E-06   -.64923E-06
   9  Prefactor     .10000E-03    1.3376       -.73001E-07** at limit **
  10  Prefactor     .10000E-03    7.4151       -.11721E-06** at limit **
  11  norm          12.333        11.217        .91356E-07    .98726E-05
  12  norm          31.306        15.740        .42556E-07   -.16686E-03
  13  Prefactor     .10000E-03    4.7813        .18915E-07** at limit **
  14  Prefactor     .10000E-03    11.551       -.27760E-06** at limit **
  15  Prefactor     59.576        46.802        .68284E-06    .10605E-03
  16  Prefactor     .40948        10.160        .37300E-06   -.47510E-04
  17  Prefactor     7.4632        19.937        .47841E-06   -.41005E-04
  18  Prefactor     .10000E-03    3.0996        .33803E-07** at limit **
  19  Prefactor     .10000E-03    .72923       -.73939E-07** at limit **
  20  norm          4.7086        2.0891        .22006E-07   -.50531E-04
  21  Prefactor     31.107        25.875        .46336E-06    .10698E-03
  22  Prefactor     .10000E-03    1.8545        .11884E-06** at limit **
  23  Prefactor     .10000E-03    1.3269        .29330E-07** at limit **
  24  Normalizat    1.0925        .21053       -.95312E-06   -.22861E-04
  25  Prefactor     .94365        .19354       -.11094E-07   -.72709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.557087
  Prefactor  = 22.3233
  Prefactor  = 11.2331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.333
  norm       = 31.306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.5761
  Prefactor  = 0.409477
  Prefactor  = 7.46321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70859
  Prefactor  = 31.1065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09255
  Prefactor  = 0.943649
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.230     FROM HESSE     STATUS=OK           427 CALLS     3356 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55709        1.7717        .17971E-03   -1.5559    
   3  Prefactor     22.323        10.397        .84783E-04   -1.4763    
   4  Prefactor     11.233        11.682        .59790E-03   -1.5038    
   5  Prefactor     .10000E-03    5.1122        .17015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2706        1.3334        .87687E-04   -1.5483    
   9  Prefactor     .10000E-03    1.3546        .87080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.333        11.201        .11407E-03   -1.5005    
  12  norm          31.306        15.826        .71616E-04   -1.4588    
  13  Prefactor     .10000E-03    4.7925        .16478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     59.576        47.003        .51986E-04   -1.4163    
  16  Prefactor     .40948        113.43        .46014E-02   -1.5580    
  17  Prefactor     7.4632        19.986        .14679E-03   -1.5162    
  18  Prefactor     .10000E-03    3.1037        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .74416        .64239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7086        2.0862        .70524E-04   -1.5274    
  21  Prefactor     31.107        25.922        .71848E-04   -1.4592    
  22  Prefactor     .10000E-03    18.789        .20161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3460        .86750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0925        .25239        .25555E-03   -.89991    
  25  Prefactor     .94365        .23069        .27826E-03   -.94632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40739e-08
Minuit parameter uncertainties:
  1  4.76001e-05
  2  1.77186
  3  10.3981
  4  11.6839
  5  3.36616e-05
  6  1.93739e-05
  7  1.52779e-05
  8  1.33342
  9  9.52008e-07
  10  3.02858e-06
  11  11.2033
  12  15.8282
  13  4.78044e-06
  14  5.71426e-05
  15  47.032
  16  13.6546
  17  20.0038
  18  9.83631e-07
  19  7.18551e-07
  20  2.0862
  21  25.9319
  22  6.57458e-05
  23  1.26608e-06
  24  0.252665
  25  0.230926
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.780e-06  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.436e-01  2.309e-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.093e+00  2.527e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784504/likelihoodResults_519004801_519264001_4FGL_J1125.9+2005_daily_bin1079.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) = 5955.23149183
delta logL = -0.000991857991721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5955.23049998
delta logL = -3.67890606867e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2448       1.0000          .0000       10.000    
     3 'Normalizat'    1.0926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94366       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.

 FCN=   5955.230     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    967.94        .90712E-02** at limit **
   2  Index         2.2480        5.1334        .50000       -.58511E-05
   3  Normalizat    1.0925        .11223        .57786E-01   -.16614E-04
   4  Prefactor     .94365        .11383        .45559E-01    .74456E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24797
  Normalizat = 1.09255
  Prefactor  = 0.94365
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.230     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    681.94        .16484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2480        6.1491        .50000       -.58285    
   3  Normalizat    1.0925        .72211E-01    .25555E-03   -.89991    
   4  Prefactor     .94365        .74027E-01    .27826E-03   -.94632    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99831e-09
Minuit parameter uncertainties:
  1  6.54571e-05
  2  50.4044
  3  0.0722171
  4  0.0740351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784504': 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) = 5955.23049997
delta logL = 8.35188984638e-09

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.546e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.248e+00  5.040e+01  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.437e-01  7.404e-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.093e+00  7.222e-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/784504/cmap_HighResolution_519004801_519264001_4FGL_J1125.9+2005_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-03 20:49:52.112433', job_id='784504', GAL2='0.94', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630727392.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='8.35e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1079' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:49:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 784504: <4FGL_J1125.9+2005_daily_bin1079> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1079> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:12 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:37:20 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:37:20 2021
Terminated at Fri Sep  3 20:49:52 2021
Results reported at Fri Sep  3 20:49:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1079 171.491 20.0912 519004801 519264001 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 :                                   730.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            820 sec.

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

