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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin260
RA = 171.491, Dec = 20.0912
tmin = 306720001, tmax = 306979201
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='779995', job_status='RUN', time_executed='2021-09-03 20:21:42.460273', time_epoch_executed='1630725702.46' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779995/ft1_4FGL_J1125.9+2005_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779995/ft2_4FGL_J1125.9+2005_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779995/ft1_4FGL_J1125.9+2005_daily_bin260.fits outfile=/scratch/kocevski/779995/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin260.fits ra=171.491 dec=20.0912 rad=12.0 tmin=306720001.0 tmax=306979201.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.98
user 4.71
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779995/ft2_4FGL_J1125.9+2005_daily_bin260.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/779995/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin260.fits evtable="EVENTS" outfile="/scratch/kocevski/779995/ft1_filtered_4FGL_J1125.9+2005_daily_bin260.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.54
user 0.37
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779995/ft1_filtered_4FGL_J1125.9+2005_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/779995/ft2_4FGL_J1125.9+2005_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/779995/ltcube_306720001_306979201_4FGL_J1125.9+2005_daily_bin260.fits outfile=/scratch/kocevski/779995/expmap_306720001_306979201_4FGL_J1125.9+2005_daily_bin260.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/779995/ltcube_306720001_306979201_4FGL_J1125.9+2005_daily_bin260.fits
.....................!
real 191.49
user 186.26
sys 4.64

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/779995/ft1_filtered_4FGL_J1125.9+2005_daily_bin260.fits scfile=/scratch/kocevski/779995/ft2_4FGL_J1125.9+2005_daily_bin260.fits outfile=/scratch/kocevski/779995/cmap_306720001_306979201_4FGL_J1125.9+2005_daily_bin260.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779995/ft1_filtered_4FGL_J1125.9+2005_daily_bin260.fits scfile=/scratch/kocevski/779995/ft2_4FGL_J1125.9+2005_daily_bin260.fits outfile=/scratch/kocevski/779995/cmap_HighResolution_306720001_306979201_4FGL_J1125.9+2005_daily_bin260.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    2.5716       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.613       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.436       1.0000         .10000E-03   10000.    
     8 'norm      '    .52535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18054       1.0000         .10000E-03   10000.    
    11 'norm      '    .75500E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9482       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12681E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.856       1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.447       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9383       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8044       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5612       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0833       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0856       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=   5748.413     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2940 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5284        .16896E-07** at limit **
   2  Prefactor     2.5718        2.1106        .22390E-07   -.12136E-04
   3  Prefactor     .10000E-03    12.086        .14219E-06** at limit **
   4  Prefactor     16.615        10.512        .64537E-07   -.18231E-05
   5  Prefactor     .10000E-03    4.3933        .42250E-07** at limit **
   6  Prefactor     .10000E-03    7.3301        .81803E-07** at limit **
   7  Prefactor     10.437        13.442        .42832E-07   -.44775E-06
   8  norm          .52481        1.4051        .67936E-06   -.11652E-03
   9  Prefactor     .10000E-03    2.2974        .13790E-06** at limit **
  10  Prefactor     .18516        5.5953       -.23356E-06    .81176E-04
  11  norm          .10000E-03    10.617        .38180E-06** at limit **
  12  norm          .10000E-03    3.6156        .49927E-07** at limit **
  13  Prefactor     2.9506        11.659        .60837E-06    .12857E-04
  14  Prefactor     .10000E-03    26.063       -.24698E-06** at limit **
  15  Prefactor     31.820        34.596       -.27855E-05   -.21854E-03
  16  Prefactor     13.848        16.443        .90717E-06   -.38219E-04
  17  Prefactor     62.454        30.002        .34357E-06    .48597E-04
  18  Prefactor     17.420        13.260       -.31724E-07   -.20377E-04
  19  Prefactor     .10000E-03    .94815        .12809E-06** at limit **
  20  norm          4.9385        2.2418       -.15238E-07   -.18405E-04
  21  Prefactor     4.8067        21.223        .72408E-05   -.71331E-04
  22  Prefactor     .10000E-03    4.1175        .71442E-07** at limit **
  23  Prefactor     4.5612        4.5159        .78309E-07   -.55987E-04
  24  Normalizat    1.0832        .21244       -.78852E-06   -.77642E-04
  25  Prefactor     1.0856        .20188        .25543E-06   -.12576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.5718
  Prefactor  = 0.0001
  Prefactor  = 16.6148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4372
  norm       = 0.524815
  Prefactor  = 0.0001
  Prefactor  = 0.185156
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.95058
  Prefactor  = 0.0001
  Prefactor  = 31.8196
  Prefactor  = 13.8484
  Prefactor  = 62.4538
  Prefactor  = 17.4196
  Prefactor  = 0.0001
  norm       = 4.93851
  Prefactor  = 4.80673
  Prefactor  = 0.0001
  Prefactor  = 4.56117
  Normalizat = 1.08323
  Prefactor  = 1.08556
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.413     FROM HESSE     STATUS=OK           431 CALLS     3371 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5297        .11773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5718        2.1082        .96434E-04   -1.5387    
   3  Prefactor     .10000E-03    12.393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.615        10.525        .98264E-04   -1.4893    
   5  Prefactor     .10000E-03    4.3974        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.437        13.428        .12403E-03   -1.5062    
   8  norm          .52481        1.3880        .13840E-03   -1.5563    
   9  Prefactor     .10000E-03    2.4011        .22423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .18516        35.617        .33761E-02   -1.5622    
  11  norm          .10000E-03    64.794        .46335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6200        .14079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9506        11.552        .23653E-03   -1.5364    
  14  Prefactor     .10000E-03    26.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.820        36.379        .70992E-04   -1.4579    
  16  Prefactor     13.848        16.471        .53802E-03   -1.4964    
  17  Prefactor     62.454        30.114        .50778E-04   -1.4126    
  18  Prefactor     17.420        13.273        .95967E-04   -1.4873    
  19  Prefactor     .10000E-03    .95915        .71977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9385        2.2403        .73272E-04   -1.5263    
  21  Prefactor     4.8067        21.767        .91772E-03   -1.5269    
  22  Prefactor     .10000E-03    4.1629        .14995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5612        4.5067        .15060E-03   -1.5281    
  24  Normalizat    1.0832        .25425        .27065E-03   -.90292    
  25  Prefactor     1.0856        .24104        .27566E-03   -.89930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99375e-10
Minuit parameter uncertainties:
  1  1.24098e-07
  2  2.10828
  3  1.73819e-05
  4  10.5261
  5  5.17261e-07
  6  1.38365e-07
  7  13.4316
  8  1.38811
  9  1.06745e-07
  10  5.13774
  11  0.000304128
  12  3.45723e-07
  13  11.5603
  14  6.88778e-05
  15  36.4043
  16  16.4765
  17  30.1212
  18  13.2757
  19  1.21066e-06
  20  2.24034
  21  20.4699
  22  2.67992e-06
  23  4.50701
  24  0.254536
  25  0.241285
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.951e+00  1.156e+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.086e+00  2.413e-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.083e+00  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/779995/likelihoodResults_306720001_306979201_4FGL_J1125.9+2005_daily_bin260.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) = 5748.37632357
delta logL = 0.0367757705535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5748.37413846
delta logL = 0.0389608788491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4648       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7575       1.0000          .0000       10.000    
     3 'Normalizat'    1.0710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0921       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5748.374     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      266 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4592        18.368        .13024E-02    .50371E-03
   2  Index         2.7594        2.6001        .10507E-01    .17318E-03
   3  Normalizat    1.0710        .24095        .27204E-03   -.12663E-04
   4  Prefactor     1.0921        .24182        .27495E-03   -.54167E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.45917
  Index      = 2.75941
  Normalizat = 1.07103
  Prefactor  = 1.09207
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.374     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4592        9.3999        .26048E-03   -1.5394    
   2  Index         2.7594        1.8791        .21014E-02   -.46466    
   3  Normalizat    1.0710        .24046        .10882E-04   -.90688    
   4  Prefactor     1.0921        .24088        .10998E-04   -.89720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52247e-12
Minuit parameter uncertainties:
  1  9.40556
  2  1.93938
  3  0.240706
  4  0.241116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779995': 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) = 5748.37413783
delta logL = 0.0389615104059

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.459e+00  9.406e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.759e+00  1.939e+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.092e+00  2.411e-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.071e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/779995/cmap_HighResolution_306720001_306979201_4FGL_J1125.9+2005_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-09-03 20:33:54.876484', job_id='779995', GAL2='1.09', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1630726434.88', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.90e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='260' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:33:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 779995: <4FGL_J1125.9+2005_daily_bin260> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin260> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:21:03 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:21:24 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:21:24 2021
Terminated at Fri Sep  3 20:33:55 2021
Results reported at Fri Sep  3 20:33:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin260 171.491 20.0912 306720001 306979201 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 :                                   728.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            772 sec.

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

