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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1088
RA = 171.491, Dec = 20.0912
tmin = 521337601, tmax = 521596801
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='784516', job_status='RUN', time_executed='2021-09-03 20:39:23.383022', time_epoch_executed='1630726763.38' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784516

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784516/ft1_4FGL_J1125.9+2005_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784516/ft2_4FGL_J1125.9+2005_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784516/ft1_4FGL_J1125.9+2005_daily_bin1088.fits outfile=/scratch/kocevski/784516/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1088.fits ra=171.491 dec=20.0912 rad=12.0 tmin=521337601.0 tmax=521596801.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.28
user 4.90
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784516/ft1_filtered_4FGL_J1125.9+2005_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/784516/ft2_4FGL_J1125.9+2005_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/784516/ltcube_521337601_521596801_4FGL_J1125.9+2005_daily_bin1088.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/784516/ft2_4FGL_J1125.9+2005_daily_bin1088.fits
.....................!
real 14.87
user 14.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784516/ft1_filtered_4FGL_J1125.9+2005_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/784516/ft2_4FGL_J1125.9+2005_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/784516/ltcube_521337601_521596801_4FGL_J1125.9+2005_daily_bin1088.fits outfile=/scratch/kocevski/784516/expmap_521337601_521596801_4FGL_J1125.9+2005_daily_bin1088.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/784516/ltcube_521337601_521596801_4FGL_J1125.9+2005_daily_bin1088.fits
.....................!
real 192.58
user 187.13
sys 4.97

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/784516/ft1_filtered_4FGL_J1125.9+2005_daily_bin1088.fits scfile=/scratch/kocevski/784516/ft2_4FGL_J1125.9+2005_daily_bin1088.fits outfile=/scratch/kocevski/784516/cmap_521337601_521596801_4FGL_J1125.9+2005_daily_bin1088.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.63
user 0.41
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0922       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38821E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3214       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9827       1.0000         .10000E-03   10000.    
    11 'norm      '    22.636       1.0000         .10000E-03   10000.    
    12 'norm      '    .28669E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.801       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.427       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.271       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1629       1.0000         .10000E-03   10000.    
    20 'norm      '    10.163       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91080       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2126       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=   5936.597     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2940 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.207        11.103        .21978E-05    .14907E-03
   2  Prefactor     .10000E-03    .69954       -.96917E-07** at limit **
   3  Prefactor     .10000E-03    6.4371        .53814E-07** at limit **
   4  Prefactor     6.9038        10.195        .59706E-05    .59767E-03
   5  Prefactor     .10000E-03    3.2132       -.16697E-06** at limit **
   6  Prefactor     3.0902        9.0487        .35560E-05   -.21064E-03
   7  Prefactor     .10002E-03    13.097       -.43061E-05** at limit **
   8  norm          1.3211        1.2131        .79243E-07   -.29310E-03
   9  Prefactor     .10000E-03    1.0607       -.46603E-07** at limit **
  10  Prefactor     9.9824        8.2312        .13533E-05    .91392E-04
  11  norm          22.632        15.188       -.49865E-06   -.16842E-04
  12  norm          .10001E-03    6.6318        .43216E-07** at limit **
  13  Prefactor     .10000E-03    7.3036       -.17272E-06** at limit **
  14  Prefactor     13.796        18.345        .10388E-05   -.81429E-05
  15  Prefactor     .10000E-03    53.856        .28062E-05** at limit **
  16  Prefactor     .10000E-03    8.7651       -.10001E-05** at limit **
  17  Prefactor     24.425        19.103        .50347E-06   -.10791E-04
  18  Prefactor     11.268        11.025        .95207E-06   -.33061E-04
  19  Prefactor     2.1629        1.6550        .54085E-07   -.18727E-03
  20  norm          10.163        2.6294        .74156E-07   -.17282E-04
  21  Prefactor     .10000E-03    8.5379        .11481E-05** at limit **
  22  Prefactor     .10000E-03    1.6168        .12117E-07** at limit **
  23  Prefactor     .10000E-03    1.5211        .27019E-07** at limit **
  24  Normalizat    .91112        .20706       -.39950E-05    .42336E-03
  25  Prefactor     1.2124        .20272        .90803E-06    .16226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90384
  Prefactor  = 0.0001
  Prefactor  = 3.09024
  Prefactor  = 0.000100018
  norm       = 1.32105
  Prefactor  = 0.0001
  Prefactor  = 9.98235
  norm       = 22.6317
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 13.7957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4246
  Prefactor  = 11.2684
  Prefactor  = 2.1629
  norm       = 10.1627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.911116
  Prefactor  = 1.21242
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.597     FROM HESSE     STATUS=OK           435 CALLS     3375 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.207        10.959        .96539E-04   -1.4878    
   2  Prefactor     .10000E-03    .70736        .62950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9038        10.686        .15282E-03   -1.5182    
   5  Prefactor     .10000E-03    3.2190        .13492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0902        8.8483        .23063E-03   -1.5356    
   7  Prefactor     .10002E-03    17.666        .76205E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3211        1.1950        .78128E-04   -1.5478    
   9  Prefactor     .10000E-03    1.0710        .77354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9824        8.2115        .12682E-03   -1.5076    
  11  norm          22.632        15.195        .84190E-04   -1.4756    
  12  norm          .10001E-03    40.059        .38084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.796        18.345        .10782E-03   -1.4965    
  15  Prefactor     .10000E-03    54.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.8195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.425        19.082        .81049E-04   -1.4719    
  18  Prefactor     11.268        10.994        .11933E-03   -1.5036    
  19  Prefactor     2.1629        1.6441        .82274E-04   -1.5414    
  20  norm          10.163        2.6290        .60815E-04   -1.5070    
  21  Prefactor     .10000E-03    8.5456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.6402        .95625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5953        .18551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91112        .23869        .27223E-03   -.96071    
  25  Prefactor     1.2124        .23915        .26078E-03   -.85950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58348e-09
Minuit parameter uncertainties:
  1  10.9599
  2  9.54326e-06
  3  1.04726e-05
  4  10.6891
  5  2.75816e-05
  6  8.85199
  7  0.0011124
  8  1.19499
  9  4.61724e-06
  10  8.21242
  11  15.1979
  12  0.0013647
  13  5.23425e-07
  14  18.3521
  15  0.000169977
  16  2.6126e-06
  17  19.087
  18  10.9961
  19  1.6441
  20  2.62908
  21  9.0691e-06
  22  3.96606e-06
  23  4.89553e-06
  24  0.238971
  25  0.239361
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.234e-07  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.212e+00  2.394e-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:  9.111e-01  2.390e-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: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784516/likelihoodResults_521337601_521596801_4FGL_J1125.9+2005_daily_bin1088.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) = 5936.59720201
delta logL = -0.000648022663881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5936.59655412
delta logL = -1.23931386042e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2490       1.0000          .0000       10.000    
     3 'Normalizat'    .91106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2125       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=   5936.597     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    188.73        .90712E-02** at limit **
   2  Index         2.2562        7.7894        .50000       -.83589E-05
   3  Normalizat    .91111        .24249E-01    .45043E-01    .33739E-04
   4  Prefactor     1.2124        .26491E-01    .58971E-01    .18801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25622
  Normalizat = 0.911111
  Prefactor  = 1.21242
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.597     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2562        6.1280        .50000       -.58088    
   3  Normalizat    .91111        .21506        .27224E-03   -.96071    
   4  Prefactor     1.2124        .23496        .26078E-03   -.85950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05052e-11
Minuit parameter uncertainties:
  1  1.02028e-05
  2  4.18256
  3  0.215259
  4  0.235166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784516': 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) = 5936.59655396
delta logL = 2.91774995276e-08

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.020e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.256e+00  4.183e+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.212e+00  2.352e-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:  9.111e-01  2.153e-01  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/784516/cmap_HighResolution_521337601_521596801_4FGL_J1125.9+2005_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-03 20:52:21.497639', job_id='784516', GAL2='1.21', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630727541.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.92e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1088' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:52:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 784516: <4FGL_J1125.9+2005_daily_bin1088> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1088 171.491 20.0912 521337601 521596801 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 :                                   753.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            968 sec.

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

