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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1662
RA = 299.286, Dec = -32.5246
tmin = 670118401, tmax = 670377601
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='122482', job_status='RUN', time_executed='2022-03-31 00:32:00.156433', time_epoch_executed='1648711920.16' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122482

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122482/ft1_4FGL_J1957.1-3231_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122482/ft1_4FGL_J1957.1-3231_daily_bin1662.fits outfile=/scratch/kocevski/122482/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1662.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=670118401.0 tmax=670377601.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.58
user 2.36
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.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/122482/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1662.fits evtable="EVENTS" outfile="/scratch/kocevski/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.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.43
user 0.27
sys 0.14

Number of photons that the gtmktime cut: 1020

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/122482/ltcube_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.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/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits
.....................!
real 8.49
user 8.20
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/122482/ltcube_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.fits outfile=/scratch/kocevski/122482/expmap_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.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/122482/ltcube_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.fits
.....................!
real 140.02
user 136.20
sys 3.55

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1957.1-3231 @ 299.286 -32.5246

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.fits scfile=/scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits outfile=/scratch/kocevski/122482/cmap_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.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=299.286 yref=-32.5246 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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.fits scfile=/scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits outfile=/scratch/kocevski/122482/cmap_HighResolution_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.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=299.286 yref=-32.5246 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.46
user 0.28
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122482/Model_4FGL_J1957.1-3231_daily_bin1662.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/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.fits....................!
real 69.07
user 67.91
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.fits', '/scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits', expMap='/scratch/kocevski/122482/expmap_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.fits', expCube='/scratch/kocevski/122482/ltcube_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122482/Model_4FGL_J1957.1-3231_daily_bin1662.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1957.1-3231'

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.079e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.579e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/122482/ft1_filtered_4FGL_J1957.1-3231_daily_bin1662.fits
Spacecraft file(s): /scratch/kocevski/122482/ft2_4FGL_J1957.1-3231_daily_bin1662.fits
Exposure map: /scratch/kocevski/122482/expmap_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.fits
Exposure cube: /scratch/kocevski/122482/ltcube_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122482/Model_4FGL_J1957.1-3231_daily_bin1662.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) = 10751.4936112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3550       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7315       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6978       1.0000         .10000E-03   10000.    
     9 'norm      '    20.646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.7746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.453       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.956       1.0000         .10000E-03   10000.    
    16 'norm      '    .18581E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0754       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .40318       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10751.45     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     1942 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0638        .11921E-07** at limit **
   2  norm          2.3550        2.0362       -.52553E-08    .10395E-03
   3  Prefactor     2.7319        3.3589        .20115E-06   -.52685E-04
   4  Prefactor     .10000E-03    233.45        .18746E-05** at limit **
   5  Prefactor     2.9110        9.1871        .12540E-05   -.56930E-04
   6  Prefactor     .10000E-03    16.874        .11846E-08** at limit **
   7  norm          .10000E-03    11.669       -.33822E-07** at limit **
   8  Prefactor     6.6994        4.9861        .12468E-05   -.17885E-02
   9  norm          20.647        2.4659        .10427E-06    .44047E-03
  10  Prefactor     .10000E-03    18.366       -.31279E-08** at limit **
  11  norm          .10000E-03    9.6419        .23798E-06** at limit **
  12  norm          9.7665        16.156        .15521E-06    .12143E-04
  13  Prefactor     59.470        52.781        .22420E-05    .37042E-04
  14  norm          .10000E-03    6.7471        .11271E-06** at limit **
  15  Prefactor     33.892        75.199       -.54040E-05   -.23600E-04
  16  norm          .10001E-03    8.2680        .26189E-06** at limit **
  17  Prefactor     7.0863        9.5754        .21917E-05    .11739E-03
  18  Normalizat    .40260        .34184       -.18922E-04   -.76407E-04
  19  Prefactor     1.3028        .10403        .30457E-05    .11930E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.35499
  Prefactor  = 2.73191
  Prefactor  = 0.0001
  Prefactor  = 2.91102
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.69936
  norm       = 20.6467
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.76653
  Prefactor  = 59.4702
  norm       = 0.0001
  Prefactor  = 33.8919
  norm       = 0.000100007
  Prefactor  = 7.08633
  Normalizat = 0.402596
  Prefactor  = 1.30284
 **********
 **   18 **HESSE 
 **********

 FCN=   10751.45     FROM HESSE     STATUS=OK           268 CALLS     2210 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0665        .14547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3550        2.0431        .13415E-03   -1.5401    
   3  Prefactor     2.7319        3.3565        .20414E-03   -1.5377    
   4  Prefactor     .10000E-03    234.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9110        9.1952        .23838E-03   -1.5367    
   6  Prefactor     .10000E-03    16.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6994        5.0023        .77523E-03   -1.5190    
   9  norm          20.647        2.4618        .53244E-04   -1.4799    
  10  Prefactor     .10000E-03    18.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.9087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.7665        16.158        .12817E-03   -1.5083    
  13  Prefactor     59.470        52.908        .52033E-04   -1.4164    
  14  norm          .10000E-03    6.7841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.892        74.218        .68768E-04   -1.4543    
  16  norm          .10001E-03    80.989        .58143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0863        9.6113        .15081E-03   -1.5176    
  18  Normalizat    .40260        .33075        .83753E-03   -1.1717    
  19  Prefactor     1.3028        .10118        .15635E-03   -.83223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55669e-09
Minuit parameter uncertainties:
  1  1.65583e-06
  2  2.04321
  3  3.35669
  4  0.000217788
  5  9.19967
  6  2.44901e-06
  7  5.90389e-06
  8  5.00262
  9  2.4618
  10  2.44244e-06
  11  1.17181e-05
  12  16.1654
  13  52.9502
  14  3.36831e-05
  15  74.421
  16  0.00153684
  17  9.61337
  18  0.332369
  19  0.101193
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  6.699e+00  5.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  2.579e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  1.303e+00  1.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
753        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
754        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  4.026e-01  3.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 299.286 -32.525
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 7.52e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.50e-05

TS (Fixed Index): 3.24
Ra Dec: 299.286 -32.525
Photon Flux Upper Limit: 2.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122482/likelihoodResults_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.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) = 10750.4186275
delta logL = 1.03400251776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10750.3003318
delta logL = 1.15229827117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8232       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7868       1.0000          .0000       10.000    
     3 'Normalizat'    .44095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2946       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10750.30     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8149        8.8022        .31964E-02    .19122E-02
   2  Index         1.7874        .43037        .25050       -.74339E-04
   3  Normalizat    .44167        .35715        .18130       -.41879E-04
   4  Prefactor     1.2944        .11556        .32705E-01   -.95129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.81485
  Index      = 1.78736
  Normalizat = 0.441669
  Prefactor  = 1.29442
 **********
 **   18 **HESSE 
 **********

 FCN=   10750.30     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8149        7.0971        .12785E-03   -1.5081    
   2  Index         1.7874        .43941        .86891E-02   -.69779    
   3  Normalizat    .44167        .30617        .80257E-03   -1.1520    
   4  Prefactor     1.2944        .99395E-01    .15674E-03   -.83473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14842e-09
Minuit parameter uncertainties:
  1  7.09775
  2  0.440377
  3  0.30734
  4  0.0994091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122482': 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) = 10750.3003257
delta logL = 1.15230438499

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  9.815e+00  7.098e+00  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  1.787e+00  4.404e-01  0.000e+00  1.000e+01 (-1.000e+00)
460        Scale:  7.441e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
752    Prefactor:  1.294e+00  9.941e-02  0.000e+00  1.000e+01 ( 1.000e+00)
753        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
754        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
751   Normalization:  4.417e-01  3.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.55
Ra Dec: 299.286 -32.525
Photon Index (Free Index): 1.79 +/- 0.44
Photon Flux (Free Index): 4.49e-08 +/- 3.96e-08
Energy Flux (Free Index): 5.58e-05 +/- 5.83e-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/122482/cmap_HighResolution_670118401_670377601_4FGL_J1957.1-3231_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='7.52e-08', energy_flux2='5.58e-05', photon_flux_error='5.61e-08', dlogl='1.15e+00', energy_flux='2.01e-05', photon_flux2='4.49e-08', job_status='DONE', time_completed='2022-03-31 00:43:02.344710', photon_index_error2='0.44', photon_index2='1.79', ts='3.24', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='5.83e-05', EG='0.40', time_epoch_completed='1648712582.34', return_code='0', job_id='122482', GAL2='1.29', EG2='0.44', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.96e-08', ts2='5.55', photon_index='2.58' WHERE bin_id='1662' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:43:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 122482: <4FGL_J1957.1-3231_daily_bin1662> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:30:22 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:30:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:30:23 2022
Terminated at Thu Mar 31 00:43:03 2022
Results reported at Thu Mar 31 00:43:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1662 299.286 -32.5246 670118401 670377601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1957.1-3231 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.48 sec.
    Max Memory :                                 1111 MB
    Average Memory :                             297.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

