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


Performing analysis on: 4FGL_J1125.5-3557_daily_bin507
RA = 171.393, Dec = -35.9581
tmin = 370742401, tmax = 371001601
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='772062', job_status='RUN', time_executed='2021-09-03 19:57:09.571897', time_epoch_executed='1630724229.57' WHERE source_name='4FGL J1125.5-3557' and cadence='daily' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772062

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772062/ft1_4FGL_J1125.5-3557_daily_bin507.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772062/ft1_4FGL_J1125.5-3557_daily_bin507.fits outfile=/scratch/kocevski/772062/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin507.fits ra=171.393 dec=-35.9581 rad=12.0 tmin=370742401.0 tmax=371001601.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 5.50
user 5.18
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.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/772062/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.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.53
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/772062/ltcube_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.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/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits
.....................!
real 15.91
user 15.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/772062/ltcube_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.fits outfile=/scratch/kocevski/772062/expmap_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.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/772062/ltcube_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.fits
.....................!
real 193.81
user 187.91
sys 5.22

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Added 188 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1125.5-3557 @ 171.393 -35.9581

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.fits scfile=/scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits outfile=/scratch/kocevski/772062/cmap_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.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.393 yref=-35.9581 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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.fits scfile=/scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits outfile=/scratch/kocevski/772062/cmap_HighResolution_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.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.393 yref=-35.9581 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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/772062/Model_4FGL_J1125.5-3557_daily_bin507.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 G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.fits.....................!
real 91.50
user 89.97
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.fits', '/scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits', expMap='/scratch/kocevski/772062/expmap_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.fits', expCube='/scratch/kocevski/772062/ltcube_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/772062/Model_4FGL_J1125.5-3557_daily_bin507.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.5-3557'

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  7.579e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/772062/ft1_filtered_4FGL_J1125.5-3557_daily_bin507.fits
Spacecraft file(s): /scratch/kocevski/772062/ft2_4FGL_J1125.5-3557_daily_bin507.fits
Exposure map: /scratch/kocevski/772062/expmap_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.fits
Exposure cube: /scratch/kocevski/772062/ltcube_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/772062/Model_4FGL_J1125.5-3557_daily_bin507.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) = 9342.79154025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.827       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21922       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5630       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3741       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.195       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3361       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.464       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9342.786     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1859 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.827        26.420        .35864E-05    .37856E-03
   2  Prefactor     .21113        2.1763       -.18242E-05    .53444E-03
   3  Prefactor     .10000E-03    3.4214       -.24096E-05** at limit **
   4  Prefactor     6.5624        5.7933       -.59203E-06   -.19484E-02
   5  norm          2.3742        1.9702       -.43935E-06   -.63395E-03
   6  norm          .10000E-03    6.7083        .12000E-05** at limit **
   7  Prefactor     .10000E-03    14.499       -.88349E-06** at limit **
   8  Prefactor     6.4222        13.106       -.32623E-05   -.32030E-04
   9  Prefactor     22.150        44.064       -.84029E-04    .68316E-05
  10  norm          .10000E-03    18.762        .38978E-05** at limit **
  11  Prefactor     .10000E-03    3.4917        .46183E-05** at limit **
  12  norm          1.3364        3.2287       -.82265E-06   -.10365E-02
  13  Prefactor     4.4118        4.3965       -.60212E-06   -.38468E-03
  14  Prefactor     .10000E-03    7.4578       -.13851E-05** at limit **
  15  Prefactor     14.463        23.453       -.28652E-05   -.18498E-06
  16  norm          .10000E-03    19.835       -.23458E-05** at limit **
  17  Prefactor     .10000E-03    3.6345       -.20285E-05** at limit **
  18  Normalizat    1.0328        .20805        .57344E-05    .31728E-03
  19  Prefactor     .99914        .86068E-01    .10298E-05    .55932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8271
  Prefactor  = 0.211127
  Prefactor  = 0.0001
  Prefactor  = 6.56239
  norm       = 2.37423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42224
  Prefactor  = 22.1495
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33642
  Prefactor  = 4.4118
  Prefactor  = 0.0001
  Prefactor  = 14.4627
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03276
  Prefactor  = 0.999145
 **********
 **   18 **HESSE 
 **********

 FCN=   9342.786     FROM HESSE     STATUS=OK           268 CALLS     2127 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.827        27.240        .94859E-04   -1.4863    
   2  Prefactor     .21113        23.349        .24857E-02   -1.5616    
   3  Prefactor     .10000E-03    3.4339        .17451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5624        5.8067        .78324E-03   -1.5196    
   5  norm          2.3742        1.9659        .11821E-03   -1.5400    
   6  norm          .10000E-03    6.7146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4222        13.218        .15835E-03   -1.5201    
   9  Prefactor     22.150        43.897        .85020E-04   -1.4766    
  10  norm          .10000E-03    18.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5061        .17660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3364        3.1846        .26195E-03   -1.5477    
  13  Prefactor     4.4118        4.3923        .19172E-03   -1.5288    
  14  Prefactor     .10000E-03    7.4845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.463        23.431        .10531E-03   -1.4947    
  16  norm          .10000E-03    19.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6442        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0328        .25159        .36289E-03   -.91941    
  19  Prefactor     .99914        .10414        .15761E-03   -.92758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70448e-09
Minuit parameter uncertainties:
  1  27.2587
  2  4.44127
  3  6.24745e-06
  4  5.80718
  5  1.96597
  6  1.00051e-05
  7  7.26473e-06
  8  13.2242
  9  43.9612
  10  3.08849e-05
  11  6.63895e-05
  12  3.185
  13  4.3926
  14  1.3159e-05
  15  23.4458
  16  5.88656e-05
  17  1.25176e-05
  18  0.251875
  19  0.104158
Done.

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

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  2.215e+01  4.396e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  9.991e-01  1.042e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.033e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 171.393 -35.958
Photon Flux Upper Limit: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772062/likelihoodResults_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.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) = 9342.33514229
delta logL = 0.450623387971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9342.31184538
delta logL = 0.473920304747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1970       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9244       1.0000          .0000       10.000    
     3 'Normalizat'    .98996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+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=   9342.312     FROM MIGRAD    STATUS=FAILED        87 CALLS      376 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1939        318.99        .14952E-03   -.35040E-02
   2  Index         2.9247        6.4610        .46182E-02   -.18705E-02
   3  Normalizat    .98899        .24953        .36983E-03   -.12939E-02
   4  Prefactor     1.0078        .10390        .15694E-03   -.27388E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9342.312     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      461 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1939        318.99        .29801E-03   -.35040E-02
   2  Index         2.9247        6.4610        .77894E-03   -.18705E-02
   3  Normalizat    .98899        .24953        .20376E-03   -.12939E-02
   4  Prefactor     1.0078        .10390        .91989E-04   -.27388E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9342.312     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      494 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1904        21.959        .59808E-05   -.22582E-03
   2  Index         2.9249        1.1399        .18473E-03   -.72129E-04
   3  Normalizat    .98898        .24216        .73965E-04   -.86074E-05
   4  Prefactor     1.0078        .10257        .31388E-04   -.56214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.1904
  Index      = 2.92494
  Normalizat = 0.988983
  Prefactor  = 1.00785
 **********
 **   18 **HESSE 
 **********

 FCN=   9342.312     FROM HESSE     STATUS=OK            23 CALLS      517 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1904        21.505        .11962E-05   -1.5172    
   2  Index         2.9249        1.1167        .73891E-05   -.42796    
   3  Normalizat    .98898        .24223        .29586E-05   -.93400    
   4  Prefactor     1.0078        .10261        .62775E-05   -.92468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74216e-11
Minuit parameter uncertainties:
  1  21.5286
  2  1.12821
  3  0.242498
  4  0.102625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772062': 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) = 9342.31183671
delta logL = 0.47392897598

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  7.190e+00  2.153e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.925e+00  1.128e+00  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  1.008e+00  1.026e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.890e-01  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 171.393 -35.958
Photon Index (Free Index): 2.92 +/- 1.13
Photon Flux (Free Index): 5.39e-08 +/- 5.47e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/772062/cmap_HighResolution_370742401_371001601_4FGL_J1125.5-3557_daily_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='4.74e-01', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-03 20:10:58.506167', photon_index_error2='1.13', photon_index2='2.92', ts='0.30', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='1.16e-05', EG='1.03', time_epoch_completed='1630725058.51', return_code='0', job_id='772062', GAL2='1.01', EG2='0.99', return_code2='0', photon_flux_error2='5.47e-08', ts2='1.27', photon_index='2.01' WHERE bin_id='507' AND source_name='4FGL J1125.5-3557' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:10:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 772062: <4FGL_J1125.5-3557_daily_bin507> in cluster <slac> Done

Job <4FGL_J1125.5-3557_daily_bin507> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 19:56:30 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:56:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 19:56:58 2021
Terminated at Fri Sep  3 20:10:59 2021
Results reported at Fri Sep  3 20:10:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.5-3557_daily_bin507 171.393 -35.9581 370742401 371001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.5-3557 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   824.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            869 sec.

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

