/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 191 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin77
RA = 171.491, Dec = 20.0912
tmin = 259286401, tmax = 259545601
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='778540', job_status='RUN', time_executed='2021-09-03 20:19:57.730010', time_epoch_executed='1630725597.73' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778540

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778540/ft1_4FGL_J1125.9+2005_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778540/ft2_4FGL_J1125.9+2005_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778540/ft1_4FGL_J1125.9+2005_daily_bin77.fits outfile=/scratch/kocevski/778540/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin77.fits ra=171.491 dec=20.0912 rad=12.0 tmin=259286401.0 tmax=259545601.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 2.27
user 2.06
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778540/ft1_filtered_4FGL_J1125.9+2005_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/778540/ft2_4FGL_J1125.9+2005_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/778540/ltcube_259286401_259545601_4FGL_J1125.9+2005_daily_bin77.fits outfile=/scratch/kocevski/778540/expmap_259286401_259545601_4FGL_J1125.9+2005_daily_bin77.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/778540/ltcube_259286401_259545601_4FGL_J1125.9+2005_daily_bin77.fits
.....................!
real 193.19
user 188.19
sys 4.43

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/778540/ft1_filtered_4FGL_J1125.9+2005_daily_bin77.fits scfile=/scratch/kocevski/778540/ft2_4FGL_J1125.9+2005_daily_bin77.fits outfile=/scratch/kocevski/778540/cmap_259286401_259545601_4FGL_J1125.9+2005_daily_bin77.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.75
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778540/ft1_filtered_4FGL_J1125.9+2005_daily_bin77.fits scfile=/scratch/kocevski/778540/ft2_4FGL_J1125.9+2005_daily_bin77.fits outfile=/scratch/kocevski/778540/cmap_HighResolution_259286401_259545601_4FGL_J1125.9+2005_daily_bin77.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2445       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.925       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82447       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1256       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.796       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.372       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3718       1.0000         .10000E-03   10000.    
    20 'norm      '    6.4032       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4201       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .44155       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5393       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=   6328.891     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2968 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.885       -.38130E-06** at limit **
   2  Prefactor     2.2439        2.7178        .22551E-06    .14084E-03
   3  Prefactor     8.8464        5.9653        .13750E-06   -.82822E-05
   4  Prefactor     .10000E-03    5.6286       -.26693E-06** at limit **
   5  Prefactor     27.927        13.948        .53208E-06    .33902E-04
   6  Prefactor     .10001E-03    7.0410       -.78176E-07** at limit **
   7  Prefactor     .10000E-03    6.5914        .52574E-07** at limit **
   8  norm          .10000E-03    .47100        .17239E-06** at limit **
   9  Prefactor     .82776        2.4339        .14684E-06   -.58269E-04
  10  Prefactor     .10000E-03    3.6071        .57470E-07** at limit **
  11  norm          .10000E-03    7.4966       -.52698E-06** at limit **
  12  norm          3.1226        8.7231        .44245E-05   -.33180E-04
  13  Prefactor     .10000E-03    2.5685        .15530E-07** at limit **
  14  Prefactor     20.115        15.921        .12458E-05   -.42343E-04
  15  Prefactor     24.763        33.856        .27308E-05    .78635E-05
  16  Prefactor     .10000E-03    9.9090       -.51140E-06** at limit **
  17  Prefactor     .10000E-03    17.409        .12698E-05** at limit **
  18  Prefactor     12.368        10.822        .14943E-06    .27966E-05
  19  Prefactor     3.3714        1.9320        .16147E-07   -.17592E-03
  20  norm          6.4029        2.1202        .72875E-08   -.15276E-03
  21  Prefactor     .10000E-03    13.398       -.77079E-06** at limit **
  22  Prefactor     .10000E-03    2.0380        .11123E-06** at limit **
  23  Prefactor     1.4199        1.3095        .37393E-07    .32070E-04
  24  Normalizat    .44174        .18939       -.27737E-05   -.20209E-04
  25  Prefactor     1.5393        .19295        .46280E-06   -.39713E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.2439
  Prefactor  = 8.84641
  Prefactor  = 0.0001
  Prefactor  = 27.9269
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.827757
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.12262
  Prefactor  = 0.0001
  Prefactor  = 20.115
  Prefactor  = 24.7628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3683
  Prefactor  = 3.37137
  norm       = 6.40286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41991
  Normalizat = 0.441744
  Prefactor  = 1.53934
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.891     FROM HESSE     STATUS=OK           439 CALLS     3407 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2439        2.6871        .13334E-03   -1.5408    
   3  Prefactor     8.8464        5.9522        .13475E-03   -1.5113    
   4  Prefactor     .10000E-03    5.6733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.927        13.904        .75813E-04   -1.4651    
   6  Prefactor     .10001E-03    10.983        .66147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .70995        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .82776        2.3666        .18965E-03   -1.5526    
  10  Prefactor     .10000E-03    3.6531        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.5612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1226        8.7392        .11466E-02   -1.5355    
  13  Prefactor     .10000E-03    2.5713        .12451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.115        15.870        .89320E-04   -1.4811    
  15  Prefactor     24.763        33.915        .80444E-04   -1.4712    
  16  Prefactor     .10000E-03    10.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.368        10.796        .11389E-03   -1.5004    
  19  Prefactor     3.3714        1.9244        .79288E-04   -1.5341    
  20  norm          6.4029        2.1183        .64059E-04   -1.5202    
  21  Prefactor     .10000E-03    13.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1094        .11082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4199        1.3246        .84973E-04   -1.5470    
  24  Normalizat    .44174        .20727        .34400E-03   -1.1520    
  25  Prefactor     1.5393        .21713        .21872E-03   -.76444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84637e-11
Minuit parameter uncertainties:
  1  4.40062e-05
  2  2.68727
  3  5.95262
  4  2.45458e-05
  5  13.9053
  6  0.000522909
  7  1.4819e-05
  8  4.64452e-06
  9  2.36689
  10  4.8601e-06
  11  2.13191e-05
  12  8.74281
  13  1.29377e-06
  14  15.8731
  15  33.9412
  16  0.000135413
  17  1.09527e-05
  18  10.7981
  19  1.92447
  20  2.11832
  21  2.61725e-05
  22  7.86757e-06
  23  1.32458
  24  0.207633
  25  0.217264
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.294e-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.539e+00  2.173e-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:  4.417e-01  2.076e-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: 3.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778540/likelihoodResults_259286401_259545601_4FGL_J1125.9+2005_daily_bin77.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) = 6328.89303423
delta logL = -0.00177799869471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6328.89125592
delta logL = 3.03164597426e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2154       1.0000          .0000       10.000    
     3 'Normalizat'    .44185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5392       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=   6328.891     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10307E-03    2.9052        .12821E-01** at limit **
   2  Index         2.1277        5.7894        .50000        .71778E-04
   3  Normalizat    .44174        .40194E-02    .34399E-03    .61670E-04
   4  Prefactor     1.5393        .45509E-02    .21872E-03    .12108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103073
  Index      = 2.12767
  Normalizat = 0.441744
  Prefactor  = 1.53934
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.891     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10307E-03    37.846        .13221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1277        8.0945        .50000       -.61195    
   3  Normalizat    .44174        .14684E-01    .13760E-04   -1.1520    
   4  Prefactor     1.5393        .16625E-01    .43745E-04   -.76444    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.4286e-08
Minuit parameter uncertainties:
  1  0.0215817
  2  219.04
  3  0.0146837
  4  0.0166254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778540': 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) = 6328.89125455
delta logL = 1.68038786796e-06

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.031e-04  2.158e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.128e+00  2.190e+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.539e+00  1.663e-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:  4.417e-01  1.468e-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/778540/cmap_HighResolution_259286401_259545601_4FGL_J1125.9+2005_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-03', job_status='DONE', photon_flux_upper_limit='3.83e-08', time_completed='2021-09-03 20:33:00.191848', job_id='778540', GAL2='1.54', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1630726380.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.54', dlogl='1.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='77' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:33:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 778540: <4FGL_J1125.9+2005_daily_bin77> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin77 171.491 20.0912 259286401 259545601 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 :                                   781.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            996 sec.

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

