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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1601
RA = 171.491, Dec = 20.0912
tmin = 654307201, tmax = 654566401
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='541373', job_status='RUN', time_executed='2021-09-29 00:15:08.118206', time_epoch_executed='1632899708.12' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541373

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541373/ft1_4FGL_J1125.9+2005_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541373/ft2_4FGL_J1125.9+2005_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541373/ft1_4FGL_J1125.9+2005_daily_bin1601.fits outfile=/scratch/kocevski/541373/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1601.fits ra=171.491 dec=20.0912 rad=12.0 tmin=654307201.0 tmax=654566401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.21
user 4.00
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541373/ft1_filtered_4FGL_J1125.9+2005_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/541373/ft2_4FGL_J1125.9+2005_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/541373/ltcube_654307201_654566401_4FGL_J1125.9+2005_daily_bin1601.fits outfile=/scratch/kocevski/541373/expmap_654307201_654566401_4FGL_J1125.9+2005_daily_bin1601.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/541373/ltcube_654307201_654566401_4FGL_J1125.9+2005_daily_bin1601.fits
.....................!
real 189.61
user 184.47
sys 4.72

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79419       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.514       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9994       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6410       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8732       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.435       1.0000         .10000E-03   10000.    
    11 'norm      '    .10788E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10460E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3122       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22491E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14881E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.054       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.324       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .57983E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    46.896       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.840       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .55482       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .53235       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2511       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=   6113.714     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2975 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79005        9.4629       -.58707E-06   -.70212E-04
   2  Prefactor     .10000E-03    1.4826       -.14190E-08** at limit **
   3  Prefactor     13.512        8.8661        .11062E-06   -.80948E-05
   4  Prefactor     12.885        10.930        .24833E-06   -.43471E-04
   5  Prefactor     2.0142        14.179       -.20954E-06    .34955E-04
   6  Prefactor     15.522        12.606        .26618E-06    .14194E-04
   7  Prefactor     8.6325        11.510       -.15677E-06   -.39643E-05
   8  norm          2.8738        1.5609       -.23384E-07   -.72635E-05
   9  Prefactor     2.0030        3.3154       -.37790E-06    .83400E-04
  10  Prefactor     17.434        8.6909        .89172E-07   -.10743E-05
  11  norm          .10000E-03    15.918       -.23807E-06** at limit **
  12  norm          .10000E-03    9.4883       -.10965E-08** at limit **
  13  Prefactor     3.3102        10.296       -.52903E-06    .22308E-04
  14  Prefactor     .10000E-03    10.458       -.40161E-06** at limit **
  15  Prefactor     .10000E-03    156.56        .29347E-05** at limit **
  16  Prefactor     .10000E-03    23.280        .75427E-08** at limit **
  17  Prefactor     32.049        23.704       -.14409E-06   -.38823E-05
  18  Prefactor     24.337        15.699        .13245E-05    .90064E-04
  19  Prefactor     .60704E-01    .90328        .42236E-07   -.31206E-03
  20  norm          46.894        5.1317        .66427E-07   -.21810E-04
  21  Prefactor     30.843        25.892       -.31990E-06    .35523E-04
  22  Prefactor     .55159        9.5836        .21399E-05   -.28551E-04
  23  Prefactor     .10000E-03    1.1554        .58321E-07** at limit **
  24  Normalizat    .53253        .20533        .67714E-06    .26947E-04
  25  Prefactor     1.2511        .19951       -.20941E-07    .77914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.790051
  Prefactor  = 0.0001
  Prefactor  = 13.5116
  Prefactor  = 12.8846
  Prefactor  = 2.01419
  Prefactor  = 15.5222
  Prefactor  = 8.63252
  norm       = 2.87384
  Prefactor  = 2.00302
  Prefactor  = 17.4339
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.31017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 32.0488
  Prefactor  = 24.3371
  Prefactor  = 0.0607039
  norm       = 46.8935
  Prefactor  = 30.8426
  Prefactor  = 0.551593
  Prefactor  = 0.0001
  Normalizat = 0.532526
  Prefactor  = 1.25114
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.714     FROM HESSE     STATUS=OK           441 CALLS     3416 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79005        30.593        .43027E-02   -1.5530    
   2  Prefactor     .10000E-03    1.5101        .18500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.512        8.8657        .10896E-03   -1.4973    
   4  Prefactor     12.885        10.937        .11157E-03   -1.4990    
   5  Prefactor     2.0142        14.734        .29291E-03   -1.5424    
   6  Prefactor     15.522        12.510        .10166E-03   -1.4920    
   7  Prefactor     8.6325        11.483        .13636E-03   -1.5120    
   8  norm          2.8738        1.5586        .68569E-04   -1.5369    
   9  Prefactor     2.0030        3.3001        .15951E-03   -1.5425    
  10  Prefactor     17.434        8.6785        .95919E-04   -1.4873    
  11  norm          .10000E-03    16.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3102        10.306        .22244E-03   -1.5344    
  14  Prefactor     .10000E-03    10.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    157.53        .20121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.049        23.639        .70773E-04   -1.4575    
  18  Prefactor     24.337        15.961        .81220E-04   -1.4721    
  19  Prefactor     .60704E-01    2.8950        .14282E-02   -1.5659    
  20  norm          46.894        5.1301        .55775E-04   -1.4337    
  21  Prefactor     30.843        25.955        .36075E-03   -1.4597    
  22  Prefactor     .55159        9.9467        .23680E-02   -1.5559    
  23  Prefactor     .10000E-03    1.1629        .81940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .53253        .23250        .35292E-03   -1.1093    
  25  Prefactor     1.2511        .23049        .25506E-03   -.84772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02766e-07
Minuit parameter uncertainties:
  1  9.83736
  2  5.55101e-06
  3  8.86653
  4  10.9389
  5  10.8988
  6  12.5121
  7  11.4861
  8  1.55866
  9  3.30039
  10  8.67917
  11  3.69458e-05
  12  1.06057e-05
  13  10.3119
  14  2.71751e-06
  15  0.000948241
  16  4.09153e-05
  17  23.6463
  18  15.9641
  19  0.83778
  20  5.13017
  21  25.964
  22  4.68515
  23  2.49748e-06
  24  0.232922
  25  0.230677
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.251e+00  2.307e-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:  5.325e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/541373/likelihoodResults_654307201_654566401_4FGL_J1125.9+2005_daily_bin1601.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) = 6113.61477838
delta logL = 0.0989332790432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6113.60574573
delta logL = 0.107965932787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4191       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8853       1.0000          .0000       10.000    
     3 'Normalizat'    .51644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2597       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=   6113.606     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      259 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4182        8.4467        .21640E-03   -.69500E-03
   2  Index         2.8849        1.6794        .78437E-02   -.19557E-03
   3  Normalizat    .51636        .21779        .35817E-03   -.26246E-03
   4  Prefactor     1.2598        .23027        .25426E-03   -.30192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41816
  Index      = 2.88489
  Normalizat = 0.516358
  Prefactor  = 1.25976
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.606     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4182        6.8896        .86559E-05   -1.5397    
   2  Index         2.8849        1.3783        .31375E-03   -.43678    
   3  Normalizat    .51636        .21767        .14327E-04   -1.1166    
   4  Prefactor     1.2598        .23009        .50853E-04   -.84511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94029e-09
Minuit parameter uncertainties:
  1  6.89182
  2  1.40055
  3  0.218032
  4  0.230274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541373': 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) = 6113.6057454
delta logL = 0.107966260313

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.418e+00  6.892e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.885e+00  1.401e+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.260e+00  2.303e-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:  5.164e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/541373/cmap_HighResolution_654307201_654566401_4FGL_J1125.9+2005_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-09-29 00:27:44.173809', job_id='541373', GAL2='1.26', fit_tolerance='1e-08', EG2='0.52', EG='0.53', time_epoch_completed='1632900464.17', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.08e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1601' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 541373: <4FGL_J1125.9+2005_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 00:11:14 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:11:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:11:16 2021
Terminated at Wed Sep 29 00:27:44 2021
Results reported at Wed Sep 29 00:27:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1601 171.491 20.0912 654307201 654566401 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 :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

