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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin130
RA = 171.491, Dec = 20.0912
tmin = 273024001, tmax = 273283201
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='778622', job_status='RUN', time_executed='2021-09-03 20:19:47.353700', time_epoch_executed='1630725587.35' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778622

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778622/ft1_4FGL_J1125.9+2005_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778622/ft2_4FGL_J1125.9+2005_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778622/ft1_4FGL_J1125.9+2005_daily_bin130.fits outfile=/scratch/kocevski/778622/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin130.fits ra=171.491 dec=20.0912 rad=12.0 tmin=273024001.0 tmax=273283201.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.91
user 2.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778622/ft1_filtered_4FGL_J1125.9+2005_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/778622/ft2_4FGL_J1125.9+2005_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/778622/ltcube_273024001_273283201_4FGL_J1125.9+2005_daily_bin130.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/778622/ft2_4FGL_J1125.9+2005_daily_bin130.fits
.....................!
real 15.08
user 14.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778622/ft1_filtered_4FGL_J1125.9+2005_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/778622/ft2_4FGL_J1125.9+2005_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/778622/ltcube_273024001_273283201_4FGL_J1125.9+2005_daily_bin130.fits outfile=/scratch/kocevski/778622/expmap_273024001_273283201_4FGL_J1125.9+2005_daily_bin130.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/778622/ltcube_273024001_273283201_4FGL_J1125.9+2005_daily_bin130.fits
.....................!
real 191.66
user 186.02
sys 5.24

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/778622/ft1_filtered_4FGL_J1125.9+2005_daily_bin130.fits scfile=/scratch/kocevski/778622/ft2_4FGL_J1125.9+2005_daily_bin130.fits outfile=/scratch/kocevski/778622/cmap_273024001_273283201_4FGL_J1125.9+2005_daily_bin130.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=171.491 yref=20.0912 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778622/ft1_filtered_4FGL_J1125.9+2005_daily_bin130.fits scfile=/scratch/kocevski/778622/ft2_4FGL_J1125.9+2005_daily_bin130.fits outfile=/scratch/kocevski/778622/cmap_HighResolution_273024001_273283201_4FGL_J1125.9+2005_daily_bin130.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30262E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0151       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16611E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20293E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.068       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17504E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7422       1.0000         .10000E-03   10000.    
    12 'norm      '    .12641E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.950       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15494E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61368E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46558       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7363       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7039       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .48492       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92620       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5257.808     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     3176 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7579       -.58183E-05** at limit **
   2  Prefactor     2.0200        2.0345       -.52024E-07   -.53786E-03
   3  Prefactor     .10000E-03    13.446       -.22516E-05** at limit **
   4  Prefactor     .10000E-03    7.1888        .69312E-07** at limit **
   5  Prefactor     8.7300        1.5854       -.15593E-05   -.28833E-02
   6  Prefactor     1.4848        1.9179        .97557E-05    .20793E-02
   7  Prefactor     23.135        11.487       -.55482E-05   -.28566E-02
   8  norm          1.1193        1.0511       -.71278E-07    .10950E-03
   9  Prefactor     .10000E-03    5.0294        .12386E-06** at limit **
  10  Prefactor     .10000E-03    2.0711        .36031E-06** at limit **
  11  norm          3.7415        1.0916       -.11096E-05   -.47520E-03
  12  norm          .10000E-03    11.482        .20245E-06** at limit **
  13  Prefactor     .10000E-03    5.9028        .46924E-06** at limit **
  14  Prefactor     41.050        17.985       -.99274E-05    .24011E-02
  15  Prefactor     35.254        40.466        .26558E-04   -.45833E-03
  16  Prefactor     .10000E-03    5.1337        .60423E-06** at limit **
  17  Prefactor     10.531        14.312        .22532E-04   -.31821E-04
  18  Prefactor     .10000E-03    47.906        .24613E-04** at limit **
  19  Prefactor     .46463        1.0747       -.65211E-06   -.79597E-04
  20  norm          .10000E-03    .31158       -.10881E-06** at limit **
  21  Prefactor     5.7244        7.8675       -.18263E-04    .17602E-03
  22  Prefactor     1.7072        2.6882       -.43894E-06   -.17006E-03
  23  Prefactor     .48769        3.6604        .13072E-05   -.13244E-03
  24  Normalizat    .92565        .22029       -.29895E-05    .10791E-03
  25  Prefactor     1.1543        .22997        .73216E-06    .17474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.02003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.73003
  Prefactor  = 1.4848
  Prefactor  = 23.1352
  norm       = 1.11934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.74149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0496
  Prefactor  = 35.2538
  Prefactor  = 0.0001
  Prefactor  = 10.5311
  Prefactor  = 0.000100004
  Prefactor  = 0.464626
  norm       = 0.0001
  Prefactor  = 5.72443
  Prefactor  = 1.70715
  Prefactor  = 0.487692
  Normalizat = 0.925651
  Prefactor  = 1.15425
 **********
 **   18 **HESSE 
 **********

 FCN=   5257.808     FROM HESSE     STATUS=OK           507 CALLS     3683 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5112        .10693E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.0200        2.0479        .72897E-02   -1.5424    
   3  Prefactor     .10000E-03    13.007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.1416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.7300        8.4475        .33915E-02   -1.5117    
   6  Prefactor     1.4848        9.8226        .88005E-02   -1.5464    
   7  Prefactor     23.135        19.177        .20850E-02   -1.4746    
   8  norm          1.1193        1.0584        .11109E-01   -1.5496    
   9  Prefactor     .10000E-03    2.2766        .34213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0694        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7415        5.8002        .52181E-02   -1.5321    
  12  norm          .10000E-03    4.4808        .58428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.050        21.360        .15660E-02   -1.4426    
  15  Prefactor     35.254        40.916        .16905E-02   -1.4520    
  16  Prefactor     .10000E-03    5.1269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.531        16.939        .30951E-02   -1.5059    
  18  Prefactor     .10000E-03    9.1524        .77600E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .46463        1.2726        .26489E-01   -1.5572    
  20  norm          .10000E-03    .31118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7244        17.289        .41926E-02   -1.5229    
  22  Prefactor     1.7072        2.7579        .80545E-02   -1.5447    
  23  Prefactor     .48769        2.1769        .36292E-01   -1.5568    
  24  Normalizat    .92565        .19369        .45236E-01   -.95565    
  25  Prefactor     1.1543        .19618        .56095E-01   -.87751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04803e-08
Minuit parameter uncertainties:
  1  8.1785e-05
  2  2.048
  3  2.65685e-05
  4  3.98861e-05
  5  8.44869
  6  7.63952
  7  19.182
  8  1.05844
  9  2.82865e-05
  10  2.23322e-05
  11  5.80104
  12  8.59776e-06
  13  7.76689e-06
  14  21.3641
  15  40.9487
  16  1.39556e-05
  17  16.9472
  18  0.000379668
  19  1.27263
  20  2.96703e-06
  21  17.3038
  22  2.75812
  23  2.06067
  24  0.19384
  25  0.196304
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.767e-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.154e+00  1.963e-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.257e-01  1.938e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778622/likelihoodResults_273024001_273283201_4FGL_J1125.9+2005_daily_bin130.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) = 5257.80870891
delta logL = -0.000806731836747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5257.80790219
delta logL = -9.45601641433e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2377       1.0000          .0000       10.000    
     3 'Normalizat'    .92566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1543       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=   5257.808     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    247.73        .90712E-02** at limit **
   2  Index         2.2337        5.4572        .50000        .55331E-05
   3  Normalizat    .92565        .31285E-01    .45229E-01   -.67764E-05
   4  Prefactor     1.1542        .34201E-01    .56095E-01   -.73298E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23373
  Normalizat = 0.925652
  Prefactor  = 1.15425
 **********
 **   18 **HESSE 
 **********

 FCN=   5257.808     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.885        .17175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2337        5.9929        .50000       -.58627    
   3  Normalizat    .92565        .20752        .25145E-03   -.95565    
   4  Prefactor     1.1542        .22691        .24804E-03   -.87751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80829e-10
Minuit parameter uncertainties:
  1  1.92966e-06
  2  9.99027
  3  0.207702
  4  0.227099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778622': 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) = 5257.80790217
delta logL = 1.0923940863e-08

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.930e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.234e+00  9.990e+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.154e+00  2.271e-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.257e-01  2.077e-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/778622/cmap_HighResolution_273024001_273283201_4FGL_J1125.9+2005_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-03 20:31:47.244343', job_id='778622', GAL2='1.15', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630726307.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='130' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 778622: <4FGL_J1125.9+2005_daily_bin130> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin130 171.491 20.0912 273024001 273283201 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 :                                   715.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            917 sec.

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

