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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin431
RA = 171.491, Dec = 20.0912
tmin = 351043201, tmax = 351302401
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='781390', job_status='RUN', time_executed='2021-09-03 20:26:27.213724', time_epoch_executed='1630725987.21' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781390

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781390/ft1_4FGL_J1125.9+2005_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781390/ft2_4FGL_J1125.9+2005_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781390/ft1_4FGL_J1125.9+2005_daily_bin431.fits outfile=/scratch/kocevski/781390/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin431.fits ra=171.491 dec=20.0912 rad=12.0 tmin=351043201.0 tmax=351302401.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.86
user 2.63
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781390/ft2_4FGL_J1125.9+2005_daily_bin431.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/781390/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin431.fits evtable="EVENTS" outfile="/scratch/kocevski/781390/ft1_filtered_4FGL_J1125.9+2005_daily_bin431.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.46
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781390/ft1_filtered_4FGL_J1125.9+2005_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/781390/ft2_4FGL_J1125.9+2005_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/781390/ltcube_351043201_351302401_4FGL_J1125.9+2005_daily_bin431.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/781390/ft2_4FGL_J1125.9+2005_daily_bin431.fits
.....................!
real 13.79
user 13.46
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781390/ft1_filtered_4FGL_J1125.9+2005_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/781390/ft2_4FGL_J1125.9+2005_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/781390/ltcube_351043201_351302401_4FGL_J1125.9+2005_daily_bin431.fits outfile=/scratch/kocevski/781390/expmap_351043201_351302401_4FGL_J1125.9+2005_daily_bin431.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/781390/ltcube_351043201_351302401_4FGL_J1125.9+2005_daily_bin431.fits
.....................!
real 155.59
user 151.72
sys 3.45

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/781390/ft1_filtered_4FGL_J1125.9+2005_daily_bin431.fits scfile=/scratch/kocevski/781390/ft2_4FGL_J1125.9+2005_daily_bin431.fits outfile=/scratch/kocevski/781390/cmap_351043201_351302401_4FGL_J1125.9+2005_daily_bin431.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.53
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781390/ft1_filtered_4FGL_J1125.9+2005_daily_bin431.fits scfile=/scratch/kocevski/781390/ft2_4FGL_J1125.9+2005_daily_bin431.fits outfile=/scratch/kocevski/781390/cmap_HighResolution_351043201_351302401_4FGL_J1125.9+2005_daily_bin431.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.50
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9407       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11565E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9178       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9684       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28788E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8814       1.0000         .10000E-03   10000.    
    15 'Prefactor '    71.157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.627       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2478       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5879       1.0000         .10000E-03   10000.    
    20 'norm      '    .19984       1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.404       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3393       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .45254       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78384       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76326       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=   4558.914     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     3214 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1949        .46236E-06** at limit **
   2  Prefactor     4.9401        2.4209       -.35172E-07    .22223E-03
   3  Prefactor     10.033        1.7250        .74420E-07    .16774E-02
   4  Prefactor     .10002E-03    3.5990       -.48774E-06** at limit **
   5  Prefactor     .10000E-03    12.007        .15834E-05** at limit **
   6  Prefactor     .10000E-03    3.5927       -.49376E-06** at limit **
   7  Prefactor     .10001E-03    7.3251       -.12256E-05** at limit **
   8  norm          .10000E-03    .49499       -.54535E-07** at limit **
   9  Prefactor     6.1248        3.0195       -.31022E-06   -.31691E-03
  10  Prefactor     3.9189        4.4866       -.16271E-06   -.64912E-02
  11  norm          2.9661        5.0202        .61696E-06   -.56292E-03
  12  norm          .10001E-03    5.4321       -.46442E-06** at limit **
  13  Prefactor     .11760E-03    1049.6       -.54870E-05** at limit **
  14  Prefactor     5.8554        8.2188        .57229E-06   -.57277E-02
  15  Prefactor     71.157        1.0267       -.83090E-08    .15615E-02
  16  Prefactor     16.636        2.1767        .67284E-07    .16849E-02
  17  Prefactor     9.2459        1.2791        .50027E-07   -.47966E-03
  18  Prefactor     .10000E-03    5.2928        .75782E-06** at limit **
  19  Prefactor     3.5877        1.7828       -.72074E-07    .10380E-03
  20  norm          .19800        2.1351        .47913E-06    .32600E-03
  21  Prefactor     35.401        1.2969        .13274E-07   -.11772E-02
  22  Prefactor     5.3388        1.4662       -.65212E-07    .34919E-02
  23  Prefactor     .45019        2.5188       -.44674E-06   -.41650E-03
  24  Normalizat    .78400        .19024        .41186E-05    .77591E-03
  25  Prefactor     .76317        .19692       -.18413E-05    .51097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.94007
  Prefactor  = 10.0329
  Prefactor  = 0.000100019
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 6.12484
  Prefactor  = 3.91893
  norm       = 2.96608
  norm       = 0.000100009
  Prefactor  = 0.0001176
  Prefactor  = 5.8554
  Prefactor  = 71.1567
  Prefactor  = 16.6358
  Prefactor  = 9.24586
  Prefactor  = 0.0001
  Prefactor  = 3.58768
  norm       = 0.198004
  Prefactor  = 35.401
  Prefactor  = 5.33877
  Prefactor  = 0.450191
  Normalizat = 0.784
  Prefactor  = 0.763171
 **********
 **   18 **HESSE 
 **********

 FCN=   4558.914     FROM HESSE     STATUS=OK           495 CALLS     3709 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9401        2.4366        .45235E-02   -1.5263    
   3  Prefactor     10.033        7.1176        .31625E-02   -1.5074    
   4  Prefactor     .10002E-03    4.0001        .47755E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5912        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    7.5183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .48551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1248        3.0378        .40554E-02   -1.5213    
  10  Prefactor     3.9189        6.2937        .50956E-02   -1.5312    
  11  norm          2.9661        11.227        .58919E-02   -1.5364    
  12  norm          .10001E-03    8.0072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11760E-03    8.4186        .91660E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8554        26.735        .41398E-02   -1.5224    
  15  Prefactor     71.157        46.447        .11897E-02   -1.4019    
  16  Prefactor     16.636        15.875        .24556E-02   -1.4892    
  17  Prefactor     9.2459        14.408        .32947E-02   -1.5100    
  18  Prefactor     .10000E-03    5.2624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5877        1.8181        .53335E-02   -1.5329    
  20  norm          .19800        1.2431        .25934E-01   -1.5619    
  21  Prefactor     35.401        19.693        .16838E-02   -1.4517    
  22  Prefactor     5.3388        4.0654        .43482E-02   -1.5246    
  23  Prefactor     .45019        2.8039        .11075E-01   -1.5574    
  24  Normalizat    .78400        .18551        .43399E-01   -1.0066    
  25  Prefactor     .76317        .17416        .43237E-01   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58793e-07
Minuit parameter uncertainties:
  1  3.10594e-05
  2  2.43663
  3  7.11817
  4  0.000552317
  5  0.000193856
  6  3.62863e-05
  7  0.000428948
  8  1.38482e-06
  9  3.03785
  10  6.29474
  11  11.2349
  12  0.000550833
  13  0.0243478
  14  25.0416
  15  46.4709
  16  15.8791
  17  14.4129
  18  7.55259e-05
  19  1.81811
  20  0.992016
  21  19.6965
  22  4.06558
  23  2.24695
  24  0.185656
  25  0.174286
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.176e-04  2.435e-02  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:  7.632e-01  1.743e-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:  7.840e-01  1.857e-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: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781390/likelihoodResults_351043201_351302401_4FGL_J1125.9+2005_daily_bin431.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) = 4558.91405811
delta logL = -4.48432729172e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4557.04606031
delta logL = 1.86799331543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5947       1.0000          .0000       10.000    
     3 'Normalizat'    .69440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82650       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=   4557.046     FROM MIGRAD    STATUS=CONVERGED    206 CALLS      508 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .45024E-02    .27651E-03** at limit **
   2  Index         7.5946        2.5418        .96023E-01    .17571E-03
   3  Normalizat    .69439        .51961E-01    .42216E-01   -.75732E-04
   4  Prefactor     .82655        .54637E-01    .44061E-01   -.12067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.59456
  Normalizat = 0.694394
  Prefactor  = 0.826546
 **********
 **   18 **HESSE 
 **********

 FCN=   4557.046     FROM HESSE     STATUS=OK            35 CALLS      543 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12441E-02    .84067E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5946        .29024        .39876E-02    .54558    
   3  Normalizat    .69439        .19042        .24292E-03   -1.0411    
   4  Prefactor     .82655        .20021        .23709E-03   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62238e-11
Minuit parameter uncertainties:
  1  1.11486e-08
  2  0.290459
  3  0.190599
  4  0.200386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781390': 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) = 4557.04606001
delta logL = 1.86799361459

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.115e-08  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  7.595e+00  2.905e-01  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:  8.265e-01  2.004e-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.944e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 171.491 20.091
Photon Index (Free Index): 7.59 +/- 0.29
Photon Flux (Free Index): 6.08e-08 +/- 4.26e-08
Energy Flux (Free Index): 7.14e-06 +/- 4.97e-06

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/781390/cmap_HighResolution_351043201_351302401_4FGL_J1125.9+2005_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', comment='SUCCESS', energy_flux2='7.14e-06', dlogl='1.87e+00', photon_flux2='6.08e-08', job_status='DONE', time_completed='2021-09-03 20:35:54.370286', photon_index_error2='0.29', photon_index2='7.59', ts='-0.00', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='4.97e-06', EG='0.78', time_epoch_completed='1630726554.37', return_code='0', job_id='781390', GAL2='0.83', EG2='0.69', return_code2='0', photon_flux_error2='4.26e-08', ts2='3.92', photon_index='2.24' WHERE bin_id='431' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 781390: <4FGL_J1125.9+2005_daily_bin431> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin431> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 20:26:12 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:26:17 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:26:17 2021
Terminated at Fri Sep  3 20:35:55 2021
Results reported at Fri Sep  3 20:35:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin431 171.491 20.0912 351043201 351302401 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 :                                   564.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            583 sec.

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

