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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin150
RA = 171.491, Dec = 20.0912
tmin = 278208001, tmax = 278467201
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='778653', job_status='RUN', time_executed='2021-09-03 20:19:01.311024', time_epoch_executed='1630725541.31' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778653/ft1_4FGL_J1125.9+2005_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778653/ft2_4FGL_J1125.9+2005_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778653/ft1_4FGL_J1125.9+2005_daily_bin150.fits outfile=/scratch/kocevski/778653/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin150.fits ra=171.491 dec=20.0912 rad=12.0 tmin=278208001.0 tmax=278467201.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 5.70
user 5.12
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778653/ft2_4FGL_J1125.9+2005_daily_bin150.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/778653/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin150.fits evtable="EVENTS" outfile="/scratch/kocevski/778653/ft1_filtered_4FGL_J1125.9+2005_daily_bin150.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/778653/ft1_filtered_4FGL_J1125.9+2005_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/778653/ft2_4FGL_J1125.9+2005_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/778653/ltcube_278208001_278467201_4FGL_J1125.9+2005_daily_bin150.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/778653/ft2_4FGL_J1125.9+2005_daily_bin150.fits
.....................!
real 13.61
user 13.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778653/ft1_filtered_4FGL_J1125.9+2005_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/778653/ft2_4FGL_J1125.9+2005_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/778653/ltcube_278208001_278467201_4FGL_J1125.9+2005_daily_bin150.fits outfile=/scratch/kocevski/778653/expmap_278208001_278467201_4FGL_J1125.9+2005_daily_bin150.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/778653/ltcube_278208001_278467201_4FGL_J1125.9+2005_daily_bin150.fits
.....................!
real 192.13
user 186.59
sys 5.10

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/778653/ft1_filtered_4FGL_J1125.9+2005_daily_bin150.fits scfile=/scratch/kocevski/778653/ft2_4FGL_J1125.9+2005_daily_bin150.fits outfile=/scratch/kocevski/778653/cmap_278208001_278467201_4FGL_J1125.9+2005_daily_bin150.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778653/ft1_filtered_4FGL_J1125.9+2005_daily_bin150.fits scfile=/scratch/kocevski/778653/ft2_4FGL_J1125.9+2005_daily_bin150.fits outfile=/scratch/kocevski/778653/cmap_HighResolution_278208001_278467201_4FGL_J1125.9+2005_daily_bin150.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14039       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2092       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5218       1.0000         .10000E-03   10000.    
     8 'norm      '    .11397E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4331       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.066       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4071       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9041       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1117       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3858       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3033       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61349       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=   4773.697     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2943 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8325        .35827E-06** at limit **
   2  Prefactor     .10000E-03    1.4401        .25549E-06** at limit **
   3  Prefactor     5.2922        7.6240       -.21940E-05    .42356E-04
   4  Prefactor     .15500        48.108        .16544E-04   -.21801E-04
   5  Prefactor     .10000E-03    6.6717        .23146E-06** at limit **
   6  Prefactor     5.2127        15.392        .68538E-07    .28973E-06
   7  Prefactor     7.5210        8.1612       -.31660E-06   -.98725E-05
   8  norm          .10000E-03    1.2616        .27912E-06** at limit **
   9  Prefactor     5.9933        3.6467       -.22871E-07    .59837E-04
  10  Prefactor     .10000E-03    4.9788       -.24437E-06** at limit **
  11  norm          .10000E-03    4.6335        .29044E-06** at limit **
  12  norm          .10000E-03    28.783       -.18631E-06** at limit **
  13  Prefactor     8.4353        12.403        .46040E-06    .10409E-03
  14  Prefactor     27.079        19.310        .11589E-05    .11015E-03
  15  Prefactor     .10000E-03    25.026        .15276E-05** at limit **
  16  Prefactor     .10000E-03    10.199       -.20772E-05** at limit **
  17  Prefactor     .10000E-03    13.007       -.41699E-06** at limit **
  18  Prefactor     .10000E-03    3.6667        .99918E-08** at limit **
  19  Prefactor     2.4076        1.7655        .69686E-07    .28620E-03
  20  norm          2.9046        1.7813        .34628E-07    .20050E-03
  21  Prefactor     2.1133        33.472       -.10769E-06   -.14804E-05
  22  Prefactor     .10000E-03    2.0404        .92733E-07** at limit **
  23  Prefactor     1.3860        1.8363       -.37362E-08   -.79802E-05
  24  Normalizat    1.3029        .20501       -.23823E-08   -.11978E-03
  25  Prefactor     .61369        .19840       -.44452E-06   -.32886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.29218
  Prefactor  = 0.155004
  Prefactor  = 0.0001
  Prefactor  = 5.21268
  Prefactor  = 7.52096
  norm       = 0.0001
  Prefactor  = 5.99332
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.43534
  Prefactor  = 27.0788
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.40755
  norm       = 2.90462
  Prefactor  = 2.11334
  Prefactor  = 0.0001
  Prefactor  = 1.38595
  Normalizat = 1.30286
  Prefactor  = 0.613691
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.697     FROM HESSE     STATUS=OK           429 CALLS     3372 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7306        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2922        7.6535        .87366E-03   -1.5248    
   4  Prefactor     .15500        47.253        .32828E-02   -1.5629    
   5  Prefactor     .10000E-03    6.7033        .17402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2127        15.314        .17612E-03   -1.5251    
   7  Prefactor     7.5210        8.1543        .14623E-03   -1.5159    
   8  norm          .10000E-03    2.8192        .14855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9933        3.6299        .88667E-04   -1.5218    
  10  Prefactor     .10000E-03    5.0064        .15037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.6425        .14521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    29.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.4353        12.430        .13804E-03   -1.5127    
  14  Prefactor     27.079        19.513        .77004E-04   -1.4667    
  15  Prefactor     .10000E-03    24.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6750        .12920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4076        1.7689        .75625E-04   -1.5398    
  20  norm          2.9046        1.7823        .69825E-04   -1.5367    
  21  Prefactor     2.1133        33.492        .28389E-03   -1.5417    
  22  Prefactor     .10000E-03    2.1120        .19268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3860        1.8136        .10467E-03   -1.5473    
  24  Normalizat    1.3029        .23825        .21178E-03   -.83481    
  25  Prefactor     .61369        .23274        .30474E-03   -1.0701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02908e-08
Minuit parameter uncertainties:
  1  5.88672e-05
  2  0.000130697
  3  7.65488
  4  5.41531
  5  1.03252e-05
  6  15.3258
  7  8.15552
  8  4.22805e-06
  9  3.62999
  10  3.29944e-05
  11  1.35076e-05
  12  0.000273531
  13  12.434
  14  19.5178
  15  0.000219387
  16  0.000305506
  17  4.32697e-05
  18  5.88028e-06
  19  1.76894
  20  1.78236
  21  16.837
  22  5.02011e-06
  23  1.81368
  24  0.23845
  25  0.233102
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  8.435e+00  1.243e+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:  6.137e-01  2.331e-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.303e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/778653/likelihoodResults_278208001_278467201_4FGL_J1125.9+2005_daily_bin150.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) = 4773.59574494
delta logL = 0.101253487477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4773.59359567
delta logL = 0.103402757254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4039       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6923       1.0000          .0000       10.000    
     3 'Normalizat'    1.2866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62430       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=   4773.594     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      300 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4018        13.680        .17287E-03    .83523E-05
   2  Index         2.6923        1.2805        .75607E-02    .41761E-03
   3  Normalizat    1.2865        .23123        .21292E-03   -.74233E-03
   4  Prefactor     .62451        .23385        .30230E-03   -.54321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.40182
  Index      = 2.69227
  Normalizat = 1.28652
  Prefactor  = 0.62451
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.594     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4018        11.248        .69146E-05   -1.5243    
   2  Index         2.6923        1.0566        .15121E-02   -.47974    
   3  Normalizat    1.2865        .23098        .42585E-04   -.83970    
   4  Prefactor     .62451        .23348        .60459E-04   -1.0656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41726e-10
Minuit parameter uncertainties:
  1  11.2527
  2  1.06686
  3  0.231164
  4  0.233845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778653': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4773.59359438
delta logL = 0.10340404546

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  5.402e+00  1.125e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.692e+00  1.067e+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:  6.245e-01  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:  1.287e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/778653/cmap_HighResolution_278208001_278467201_4FGL_J1125.9+2005_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-03 20:30:15.763607', job_id='778653', GAL2='0.62', fit_tolerance='1e-08', EG2='1.29', EG='1.30', time_epoch_completed='1630726215.76', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.03e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='150' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:30:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 778653: <4FGL_J1125.9+2005_daily_bin150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin150 171.491 20.0912 278208001 278467201 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 :                                   669.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            823 sec.

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

