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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin978
RA = 171.491, Dec = 20.0912
tmin = 492825601, tmax = 493084801
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='784357', job_status='RUN', time_executed='2021-09-03 20:39:53.532649', time_epoch_executed='1630726793.53' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784357

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784357/ft1_4FGL_J1125.9+2005_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784357/ft2_4FGL_J1125.9+2005_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784357/ft1_4FGL_J1125.9+2005_daily_bin978.fits outfile=/scratch/kocevski/784357/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin978.fits ra=171.491 dec=20.0912 rad=12.0 tmin=492825601.0 tmax=493084801.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.09
user 3.50
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784357/ft1_filtered_4FGL_J1125.9+2005_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/784357/ft2_4FGL_J1125.9+2005_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/784357/ltcube_492825601_493084801_4FGL_J1125.9+2005_daily_bin978.fits outfile=/scratch/kocevski/784357/expmap_492825601_493084801_4FGL_J1125.9+2005_daily_bin978.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/784357/ltcube_492825601_493084801_4FGL_J1125.9+2005_daily_bin978.fits
.....................!
real 190.88
user 186.31
sys 4.01

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/784357/ft1_filtered_4FGL_J1125.9+2005_daily_bin978.fits scfile=/scratch/kocevski/784357/ft2_4FGL_J1125.9+2005_daily_bin978.fits outfile=/scratch/kocevski/784357/cmap_492825601_493084801_4FGL_J1125.9+2005_daily_bin978.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 1.13
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784357/ft1_filtered_4FGL_J1125.9+2005_daily_bin978.fits scfile=/scratch/kocevski/784357/ft2_4FGL_J1125.9+2005_daily_bin978.fits outfile=/scratch/kocevski/784357/cmap_HighResolution_492825601_493084801_4FGL_J1125.9+2005_daily_bin978.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.87
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8444       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11880E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.951       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.375       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21802E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .57681E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65404       1.0000         .10000E-03   10000.    
    11 'norm      '    62.015       1.0000         .10000E-03   10000.    
    12 'norm      '    .19825E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13122E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8415       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.906       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21748E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6365       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21543E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11895E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4044       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63224       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=   5586.898     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2999 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8407        7.8878       -.43083E-06   -.22764E-03
   2  Prefactor     .10000E-03    .66386       -.58953E-07** at limit **
   3  Prefactor     14.528        8.2674        .53960E-06   -.14650E-03
   4  Prefactor     .10000E-03    5.9819       -.26781E-06** at limit **
   5  Prefactor     13.990        11.326       -.25667E-06   -.13720E-03
   6  Prefactor     12.379        9.3408        .21161E-06   -.42659E-04
   7  Prefactor     .10000E-03    14.173       -.25606E-06** at limit **
   8  norm          .10000E-03    .73460       -.10082E-06** at limit **
   9  Prefactor     .10000E-03    .70979       -.85346E-09** at limit **
  10  Prefactor     .65626        7.5584        .31593E-05   -.22185E-03
  11  norm          62.015        18.527       -.52951E-06   -.37196E-03
  12  norm          .10000E-03    15.359        .96521E-07** at limit **
  13  Prefactor     .10000E-03    3.0711       -.73806E-07** at limit **
  14  Prefactor     7.8498        9.8403        .12073E-06    .24746E-04
  15  Prefactor     28.327        42.036        .46039E-06   -.58336E-05
  16  Prefactor     .10000E-03    6.0995        .81172E-07** at limit **
  17  Prefactor     .10000E-03    4.5104        .76395E-07** at limit **
  18  Prefactor     13.178        11.810        .16882E-06    .81694E-04
  19  Prefactor     .10000E-03    .66027        .11251E-07** at limit **
  20  norm          1.9397        1.4482        .15623E-07   -.16535E-04
  21  Prefactor     1.6990        49.540        .70576E-05    .69247E-04
  22  Prefactor     .48051E-01    2.1757       -.13599E-06    .18556E-03
  23  Prefactor     .10000E-03    2.0682        .71156E-07** at limit **
  24  Normalizat    1.4037        .19526       -.15603E-06   -.61337E-04
  25  Prefactor     .63232        .19427       -.71932E-06   -.37764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84069
  Prefactor  = 0.0001
  Prefactor  = 14.5277
  Prefactor  = 0.0001
  Prefactor  = 13.9904
  Prefactor  = 12.3795
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.656259
  norm       = 62.0147
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.84983
  Prefactor  = 28.3271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1783
  Prefactor  = 0.0001
  norm       = 1.93966
  Prefactor  = 1.69895
  Prefactor  = 0.0480514
  Prefactor  = 0.0001
  Normalizat = 1.4037
  Prefactor  = 0.632323
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.898     FROM HESSE     STATUS=OK           431 CALLS     3430 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8407        7.9990        .16612E-03   -1.5225    
   2  Prefactor     .10000E-03    .66824        .59416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.528        8.3099        .52547E-03   -1.4945    
   4  Prefactor     .10000E-03    6.0178        .17806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.990        11.347        .10723E-03   -1.4960    
   6  Prefactor     12.379        9.3502        .56935E-03   -1.5004    
   7  Prefactor     .10000E-03    14.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8658        .12245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .71308        .61468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .65626        8.4028        .41288E-03   -1.5546    
  11  norm          62.015        18.868        .50954E-04   -1.4131    
  12  norm          .10000E-03    15.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0755        .12794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8498        9.7237        .14319E-03   -1.5148    
  15  Prefactor     28.327        42.121        .75838E-04   -1.4643    
  16  Prefactor     .10000E-03    26.769        .35198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5151        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.178        11.816        .11021E-03   -1.4982    
  19  Prefactor     .10000E-03    .67451        .59274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9397        1.4523        .75205E-04   -1.5429    
  21  Prefactor     1.6990        52.123        .33041E-03   -1.5447    
  22  Prefactor     .48051E-01    60.149        .20527E-02   -1.5664    
  23  Prefactor     .10000E-03    2.1475        .20960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4037        .22994        .21836E-03   -.80522    
  25  Prefactor     .63232        .22624        .32514E-03   -1.0624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99862e-09
Minuit parameter uncertainties:
  1  8.00046
  2  1.5529e-06
  3  8.3106
  4  1.66085e-05
  5  11.349
  6  9.35126
  7  1.79266e-05
  8  0.000261175
  9  1.44689e-07
  10  4.69701
  11  18.8699
  12  1.53226e-05
  13  4.17747e-06
  14  9.72564
  15  42.1648
  16  1.64609e-05
  17  5.94764e-06
  18  11.8179
  19  6.08898e-07
  20  1.45237
  21  18.8382
  22  3.40003
  23  9.50686e-07
  24  0.230108
  25  0.22657
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.177e-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:  6.323e-01  2.266e-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:  1.404e+00  2.301e-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: 4.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784357/likelihoodResults_492825601_493084801_4FGL_J1125.9+2005_daily_bin978.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) = 5586.89995001
delta logL = -0.0015062706243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5586.89844354
delta logL = 1.98287125386e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2215       1.0000          .0000       10.000    
     3 'Normalizat'    1.4038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63225       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5586.898     FROM MIGRAD    STATUS=FAILED        87 CALLS      241 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10200E-03    47.185        .13013E-02** at limit **
   2  Index         2.1490        5.8522        .50000        .47266E-04
   3  Normalizat    1.4037        .17727E-01    .21836E-03    .37589E-04
   4  Prefactor     .63232        .18524E-01    .32514E-03   -.19790E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5586.898     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      370 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10200E-03    47.185        .27544E-03** at limit **
   2  Index         2.1490        5.8522        .45406E-03    .47266E-04
   3  Normalizat    1.4037        .17727E-01    .35910E-05    .37589E-04
   4  Prefactor     .63232        .18524E-01    .50685E-05   -.19790E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5586.898     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      416 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.855        .26026E-02** at limit **
   2  Index         1.6615        6.1724        .50000        .11210E-07
   3  Normalizat    1.4037        .18905E-01    .43673E-04   -.43941E-04
   4  Prefactor     .63232        .19755E-01    .13006E-04   -.13287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.66146
  Normalizat = 1.4037
  Prefactor  = 0.632323
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.898     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      445 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    286.66        .52052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6615        8.7547        .50000       -.73113    
   3  Normalizat    1.4037        .42856E-01    .87346E-05   -.80522    
   4  Prefactor     .63232        .44782E-01    .26011E-05   -1.0624    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34908e-10
Minuit parameter uncertainties:
  1  0.000115283
  2  905.689
  3  0.0428572
  4  0.0447847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784357': 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) = 5586.89843992
delta logL = 3.82584403269e-06

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.153e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.661e+00  9.057e+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:  6.323e-01  4.478e-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:  1.404e+00  4.286e-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/784357/cmap_HighResolution_492825601_493084801_4FGL_J1125.9+2005_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-09-03 20:52:27.976739', job_id='784357', GAL2='0.63', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630727547.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='978' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:52:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 784357: <4FGL_J1125.9+2005_daily_bin978> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin978 171.491 20.0912 492825601 493084801 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 :                                   748.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            985 sec.

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

