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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin25
RA = 171.491, Dec = 20.0912
tmin = 245808001, tmax = 246067201
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='778459', job_status='RUN', time_executed='2021-09-03 20:18:44.744055', time_epoch_executed='1630725524.74' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778459

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778459/ft1_4FGL_J1125.9+2005_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778459/ft2_4FGL_J1125.9+2005_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778459/ft1_4FGL_J1125.9+2005_daily_bin25.fits outfile=/scratch/kocevski/778459/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin25.fits ra=171.491 dec=20.0912 rad=12.0 tmin=245808001.0 tmax=246067201.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 1.73
user 1.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778459/ft1_filtered_4FGL_J1125.9+2005_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/778459/ft2_4FGL_J1125.9+2005_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/778459/ltcube_245808001_246067201_4FGL_J1125.9+2005_daily_bin25.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/778459/ft2_4FGL_J1125.9+2005_daily_bin25.fits
.....................!
real 19.31
user 18.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778459/ft1_filtered_4FGL_J1125.9+2005_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/778459/ft2_4FGL_J1125.9+2005_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/778459/ltcube_245808001_246067201_4FGL_J1125.9+2005_daily_bin25.fits outfile=/scratch/kocevski/778459/expmap_245808001_246067201_4FGL_J1125.9+2005_daily_bin25.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/778459/ltcube_245808001_246067201_4FGL_J1125.9+2005_daily_bin25.fits
.....................!
real 194.36
user 187.70
sys 5.42

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/778459/ft1_filtered_4FGL_J1125.9+2005_daily_bin25.fits scfile=/scratch/kocevski/778459/ft2_4FGL_J1125.9+2005_daily_bin25.fits outfile=/scratch/kocevski/778459/cmap_245808001_246067201_4FGL_J1125.9+2005_daily_bin25.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5419       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2482       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9152       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.927       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.517       1.0000         .10000E-03   10000.    
    11 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26228E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60453       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.560       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31577       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25052E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1007       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2774       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4969       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60675       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3709       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=   6455.133     FROM MIGRAD    STATUS=CONVERGED   1063 CALLS     3451 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5412        15.664        .34331E-03   -.90635E-04
   2  Prefactor     1.2475        1.9514        .13204E-03   -.78152E-03
   3  Prefactor     5.9152        6.9339        .16511E-03   -.18653E-03
   4  Prefactor     2.3276        9.8050        .26887E-03   -.16389E-03
   5  Prefactor     16.926        12.205        .97348E-04   -.37224E-03
   6  Prefactor     .10000E-03    5.1883        .17838E-02** at limit **
   7  Prefactor     .10000E-03    6.3722        .18142E-02** at limit **
   8  norm          .10000E-03    .46672        .10509E-03** at limit **
   9  Prefactor     .84429        2.2224        .18691E-03    .23965E-03
  10  Prefactor     10.514        6.8117        .12355E-03    .41786E-03
  11  norm          .10000E-03    6.0545        .18142E-02** at limit **
  12  norm          .10000E-03    13.019        .36285E-03** at limit **
  13  Prefactor     .10000E-03    17.140        .36576E-02** at limit **
  14  Prefactor     .62250        219.27        .55341E-02    .30301E-04
  15  Prefactor     27.547        34.731        .76312E-04   -.28651E-03
  16  Prefactor     14.143        15.556        .10657E-03    .41264E-03
  17  Prefactor     .18394        23.533        .77950E-01    .37055E-03
  18  Prefactor     .10002E-03    73.539        .34675E-02** at limit **
  19  Prefactor     2.1029        1.6860        .86860E-04    .72013E-03
  20  norm          2.2785        1.3259        .67873E-04    .51305E-03
  21  Prefactor     .10017E-03    53.051        .49921E-02** at limit **
  22  Prefactor     .10000E-03    1.4556        .93687E-03** at limit **
  23  Prefactor     1.4967        1.7004        .10901E-03   -.20859E-05
  24  Normalizat    .60690        .20653        .29138E-03    .12638E-03
  25  Prefactor     1.3707        .20832        .22258E-03    .22287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54119
  Prefactor  = 1.24752
  Prefactor  = 5.9152
  Prefactor  = 2.32756
  Prefactor  = 16.9259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.844286
  Prefactor  = 10.5136
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.622496
  Prefactor  = 27.5474
  Prefactor  = 14.1431
  Prefactor  = 0.183939
  Prefactor  = 0.000100023
  Prefactor  = 2.10292
  norm       = 2.27853
  Prefactor  = 0.000100173
  Prefactor  = 0.0001
  Prefactor  = 1.49669
  Normalizat = 0.606898
  Prefactor  = 1.3707
 **********
 **   18 **HESSE 
 **********

 FCN=   6455.133     FROM HESSE     STATUS=OK           413 CALLS     3864 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5412        15.614        .13733E-04   -1.5460    
   2  Prefactor     1.2475        1.9501        .52817E-05   -1.5485    
   3  Prefactor     5.9152        6.9285        .66044E-05   -1.5221    
   4  Prefactor     2.3276        9.7623        .10755E-04   -1.5403    
   5  Prefactor     16.926        12.192        .19470E-04   -1.4885    
   6  Prefactor     .10000E-03    5.1887        .35675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .46672        .21017E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84429        2.2216        .74763E-05   -1.5524    
  10  Prefactor     10.514        6.8093        .49418E-05   -1.5059    
  11  norm          .10000E-03    6.0562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.020        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.305        .73153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .62250        193.25        .22136E-03   -1.5550    
  15  Prefactor     27.547        34.692        .15262E-04   -1.4658    
  16  Prefactor     14.143        14.554        .42627E-05   -1.4956    
  17  Prefactor     .18394        19.483        .86938E-01   -1.5622    
  18  Prefactor     .10002E-03    75.174        .69351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1029        1.6818        .34744E-05   -1.5418    
  20  norm          2.2785        1.3249        .13575E-04   -1.5406    
  21  Prefactor     .10017E-03    53.958        .99841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.4559        .18737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4967        1.7001        .43602E-05   -1.5463    
  24  Normalizat    .60690        .20537        .11655E-04   -1.0769    
  25  Prefactor     1.3707        .20829        .44515E-04   -.81228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35828e-09
Minuit parameter uncertainties:
  1  9.81415
  2  1.95023
  3  6.92947
  4  9.53605
  5  12.1934
  6  8.04645e-05
  7  3.33473e-05
  8  5.05976e-07
  9  2.22184
  10  6.80983
  11  8.20033e-06
  12  8.11949e-06
  13  0.00034707
  14  22.006
  15  34.7177
  16  14.5578
  17  3.78631
  18  0.00263499
  19  1.68183
  20  1.32493
  21  0.00611504
  22  3.30471e-06
  23  1.70012
  24  0.205633
  25  0.208418
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.471e-04  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.371e+00  2.084e-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:  6.069e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/778459/likelihoodResults_245808001_246067201_4FGL_J1125.9+2005_daily_bin25.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) = 6455.13372788
delta logL = -0.000276051825495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6455.13345263
delta logL = -8.08020558907e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11668E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2339       1.0000          .0000       10.000    
     3 'Normalizat'    .60677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3709       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=   6455.133     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      233 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .15057        .90712E-01** at limit **
   2  Index         2.2277        8.0032        .50000        .26317E-05
   3  Normalizat    .60690        .73048E-03    .65844E-01    .60692E-04
   4  Prefactor     1.3707        .81049E-03    .50348E-01    .37479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22766
  Normalizat = 0.606899
  Prefactor  = 1.3707
 **********
 **   18 **HESSE 
 **********

 FCN=   6455.133     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.659        .32757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2277        6.9209        .50000       -.58772    
   3  Normalizat    .60690        .62598E-02    .29137E-03   -1.0769    
   4  Prefactor     1.3707        .69567E-02    .22258E-03   -.81228    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.78121e-09
Minuit parameter uncertainties:
  1  0.000149017
  2  116.102
  3  0.0062598
  4  0.00695673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778459': 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) = 6455.13345182
delta logL = 1.03373167804e-08

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.490e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.228e+00  1.161e+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.371e+00  6.957e-03  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:  6.069e-01  6.260e-03  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/778459/cmap_HighResolution_245808001_246067201_4FGL_J1125.9+2005_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-09-03 20:32:45.069763', job_id='778459', GAL2='1.37', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630726365.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.03e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='25' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:32:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 778459: <4FGL_J1125.9+2005_daily_bin25> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin25 171.491 20.0912 245808001 246067201 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 :                                   830.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            986 sec.

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

