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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin693
RA = 171.491, Dec = 20.0912
tmin = 418953601, tmax = 419212801
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='781840', job_status='RUN', time_executed='2021-09-03 20:28:07.806936', time_epoch_executed='1630726087.81' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781840/ft1_4FGL_J1125.9+2005_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781840/ft2_4FGL_J1125.9+2005_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781840/ft1_4FGL_J1125.9+2005_daily_bin693.fits outfile=/scratch/kocevski/781840/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin693.fits ra=171.491 dec=20.0912 rad=12.0 tmin=418953601.0 tmax=419212801.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.59
user 5.27
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781840/ft1_filtered_4FGL_J1125.9+2005_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/781840/ft2_4FGL_J1125.9+2005_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/781840/ltcube_418953601_419212801_4FGL_J1125.9+2005_daily_bin693.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/781840/ft2_4FGL_J1125.9+2005_daily_bin693.fits
.....................!
real 17.26
user 16.78
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781840/ft1_filtered_4FGL_J1125.9+2005_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/781840/ft2_4FGL_J1125.9+2005_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/781840/ltcube_418953601_419212801_4FGL_J1125.9+2005_daily_bin693.fits outfile=/scratch/kocevski/781840/expmap_418953601_419212801_4FGL_J1125.9+2005_daily_bin693.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/781840/ltcube_418953601_419212801_4FGL_J1125.9+2005_daily_bin693.fits
.....................!
real 195.10
user 187.94
sys 5.71

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/781840/ft1_filtered_4FGL_J1125.9+2005_daily_bin693.fits scfile=/scratch/kocevski/781840/ft2_4FGL_J1125.9+2005_daily_bin693.fits outfile=/scratch/kocevski/781840/cmap_418953601_419212801_4FGL_J1125.9+2005_daily_bin693.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9676       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15382E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8484       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.802       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6494       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22822E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .60981       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19925E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1008       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81004       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0085       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=   3950.459     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2959 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6910        .14201E-05** at limit **
   2  Prefactor     1.9676        2.4310        .35313E-07   -.19746E-03
   3  Prefactor     .10001E-03    7.2218       -.60180E-05** at limit **
   4  Prefactor     .10000E-03    11.146        .14740E-05** at limit **
   5  Prefactor     19.835        14.416       -.17196E-05   -.24140E-03
   6  Prefactor     .10001E-03    9.4790        .84889E-05** at limit **
   7  Prefactor     2.8519        16.806        .10709E-04    .33990E-03
   8  norm          1.7599        1.3422       -.30895E-07    .72480E-04
   9  Prefactor     .10000E-03    .84505        .27319E-07** at limit **
  10  Prefactor     .10000E-03    3.5808        .26244E-07** at limit **
  11  norm          .10000E-03    6.2812       -.12356E-05** at limit **
  12  norm          11.790        14.160        .22149E-06    .66563E-04
  13  Prefactor     .10000E-03    4.3173        .11259E-06** at limit **
  14  Prefactor     3.6299        16.238        .54314E-05    .15409E-03
  15  Prefactor     .10000E-03    23.506        .74486E-05** at limit **
  16  Prefactor     .10018E-03    23.851        .13336E-04** at limit **
  17  Prefactor     30.305        28.110        .30949E-05    .20680E-03
  18  Prefactor     .10000E-03    4.9192       -.65653E-06** at limit **
  19  Prefactor     .60932        2.2461       -.37130E-06   -.25132E-03
  20  norm          .10000E-03    .69485       -.11153E-06** at limit **
  21  Prefactor     .10000E-03    73.424        .18044E-04** at limit **
  22  Prefactor     .10000E-03    2.3315       -.51099E-07** at limit **
  23  Prefactor     3.1005        3.1315        .27181E-07   -.78066E-04
  24  Normalizat    .81028        .20508       -.10860E-05   -.67320E-04
  25  Prefactor     1.0082        .20678        .25756E-06   -.13291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.96762
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 19.8352
  Prefactor  = 0.000100006
  Prefactor  = 2.85191
  norm       = 1.75991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.7899
  Prefactor  = 0.0001
  Prefactor  = 3.62985
  Prefactor  = 0.0001
  Prefactor  = 0.000100181
  Prefactor  = 30.3047
  Prefactor  = 0.0001
  Prefactor  = 0.609321
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.10047
  Normalizat = 0.810281
  Prefactor  = 1.00824
 **********
 **   18 **HESSE 
 **********

 FCN=   3950.459     FROM HESSE     STATUS=OK           425 CALLS     3384 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7112        .14631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9676        2.4127        .10408E-03   -1.5427    
   3  Prefactor     .10001E-03    23.390        .27794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.835        14.892        .89909E-04   -1.4817    
   6  Prefactor     .10001E-03    19.006        .29422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8519        25.293        .12046E-02   -1.5370    
   8  norm          1.7599        1.3415        .61173E-04   -1.5443    
   9  Prefactor     .10000E-03    .85012        .56401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5954        .11614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3112        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.790        14.191        .11661E-03   -1.5021    
  13  Prefactor     .10000E-03    4.3246        .12754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6299        14.461        .21146E-03   -1.5327    
  15  Prefactor     .10000E-03    23.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10018E-03    47.304        .37798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.305        27.802        .72776E-04   -1.4606    
  18  Prefactor     .10000E-03    4.9478        .13614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .60932        2.1817        .15880E-03   -1.5552    
  20  norm          .10000E-03    .70064        .51129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    73.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.3612        .93639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1005        3.1242        .10756E-03   -1.5356    
  24  Normalizat    .81028        .23963        .24035E-03   -.99688    
  25  Prefactor     1.0082        .24099        .23559E-03   -.92455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5684e-09
Minuit parameter uncertainties:
  1  7.75815e-06
  2  2.41287
  3  0.000905909
  4  2.93568e-05
  5  14.8947
  6  0.000682169
  7  16.9956
  8  1.34153
  9  8.94482e-07
  10  2.03199e-06
  11  1.51353e-05
  12  14.1951
  13  1.83137e-06
  14  14.4747
  15  0.000158809
  16  0.00585813
  17  27.8142
  18  9.48372e-06
  19  2.18199
  20  8.2406e-06
  21  0.000833482
  22  3.57503e-06
  23  3.12435
  24  0.239945
  25  0.241251
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.831e-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:  1.008e+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:  8.103e-01  2.399e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781840/likelihoodResults_418953601_419212801_4FGL_J1125.9+2005_daily_bin693.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) = 3950.45993662
delta logL = -0.00109553046468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3950.45884093
delta logL = 1.53305336426e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2193       1.0000          .0000       10.000    
     3 'Normalizat'    .81032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0082       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=   3950.459     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      237 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10247E-03    4.2482        .13006E-01** at limit **
   2  Index         2.1334        5.4958        .50000        .33763E-04
   3  Normalizat    .81028        .45014E-02    .24035E-03   -.89162E-05
   4  Prefactor     1.0082        .49001E-02    .23559E-03   -.12305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102469
  Index      = 2.13344
  Normalizat = 0.81028
  Prefactor  = 1.00824
 **********
 **   18 **HESSE 
 **********

 FCN=   3950.459     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10247E-03    72.776        .13339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1334        7.5952        .50000       -.61054    
   3  Normalizat    .81028        .18908E-01    .96140E-05   -.99688    
   4  Prefactor     1.0082        .20582E-01    .94237E-05   -.92455    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70518e-08
Minuit parameter uncertainties:
  1  0.0268404
  2  355.882
  3  0.0189079
  4  0.0205824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781840': 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) = 3950.45884034
delta logL = 7.42637894291e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.025e-04  2.684e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.133e+00  3.559e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.008e+00  2.058e-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:  8.103e-01  1.891e-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/781840/cmap_HighResolution_418953601_419212801_4FGL_J1125.9+2005_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-09-03 20:38:38.622634', job_id='781840', GAL2='1.01', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630726718.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='693' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:38:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 781840: <4FGL_J1125.9+2005_daily_bin693> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin693> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 20:26:41 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:27:52 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:27:52 2021
Terminated at Fri Sep  3 20:38:39 2021
Results reported at Fri Sep  3 20:38:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin693 171.491 20.0912 418953601 419212801 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 :                                   616.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            718 sec.

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

