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


Performing analysis on: 4FGL_J1957.1-3231_daily_bin1390
RA = 299.286, Dec = -32.5246
tmin = 599616001, tmax = 599875201
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='409140', job_status='RUN', time_executed='2021-09-23 23:54:19.958204', time_epoch_executed='1632466459.96' WHERE source_name='4FGL J1957.1-3231' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409140/ft1_4FGL_J1957.1-3231_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409140/ft1_4FGL_J1957.1-3231_daily_bin1390.fits outfile=/scratch/kocevski/409140/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1390.fits ra=299.286 dec=-32.5246 rad=12.0 tmin=599616001.0 tmax=599875201.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.68
user 2.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.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/409140/ft1_filteredMKT_4FGL_J1957.1-3231_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/409140/ltcube_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.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/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits
.....................!
real 12.30
user 11.87
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/409140/ltcube_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.fits outfile=/scratch/kocevski/409140/expmap_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.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/409140/ltcube_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.fits
.....................!
real 190.94
user 185.18
sys 5.34

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/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.fits scfile=/scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits outfile=/scratch/kocevski/409140/cmap_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.fits scfile=/scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits outfile=/scratch/kocevski/409140/cmap_HighResolution_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409140/Model_4FGL_J1957.1-3231_daily_bin1390.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/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.fits......................!
real 32.30
user 30.75
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.fits', '/scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits', expMap='/scratch/kocevski/409140/expmap_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.fits', expCube='/scratch/kocevski/409140/ltcube_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/409140/Model_4FGL_J1957.1-3231_daily_bin1390.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/409140/ft1_filtered_4FGL_J1957.1-3231_daily_bin1390.fits
Spacecraft file(s): /scratch/kocevski/409140/ft2_4FGL_J1957.1-3231_daily_bin1390.fits
Exposure map: /scratch/kocevski/409140/expmap_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.fits
Exposure cube: /scratch/kocevski/409140/ltcube_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/409140/Model_4FGL_J1957.1-3231_daily_bin1390.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) = 2457.98820172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.349       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9083       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.279       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6467       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.945       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10316E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2934       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8038       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1011       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=   2457.975     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     2106 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.347        35.222       -.13134E-05   -.88921E-06
   2  norm          1.9081        12.352       -.77713E-05   -.26070E-03
   3  Prefactor     .10000E-03    24.534        .61292E-05** at limit **
   4  Prefactor     22.370        1193.0        .71683E-04   -.89251E-06
   5  Prefactor     10.278        26.017       -.42642E-06    .14170E-04
   6  Prefactor     .10000E-03    148.81       -.10944E-04** at limit **
   7  norm          .10000E-03    47.383       -.24832E-04** at limit **
   8  Prefactor     .10025E-03    13.819        .14414E-05** at limit **
   9  norm          3.6467        3.2649       -.17404E-06   -.14420E-03
  10  Prefactor     .10000E-03    41.128        .17716E-04** at limit **
  11  norm          .10000E-03    6.7989       -.11001E-07** at limit **
  12  norm          12.938        50.921       -.10366E-04   -.29823E-05
  13  Prefactor     .10000E-03    75.730        .88797E-06** at limit **
  14  norm          .10000E-03    24.847       -.73702E-05** at limit **
  15  Prefactor     .10000E-03    158.54       -.38532E-04** at limit **
  16  norm          .10000E-03    129.74        .34755E-04** at limit **
  17  Prefactor     1.2916        10.042       -.19259E-05   -.39178E-03
  18  Normalizat    1.8038        .58132        .38042E-06   -.92473E-05
  19  Prefactor     1.1011        .20522        .90872E-06   -.71951E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.3471
  norm       = 1.90809
  Prefactor  = 0.0001
  Prefactor  = 22.3696
  Prefactor  = 10.2783
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100251
  norm       = 3.64667
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.9378
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.29155
  Normalizat = 1.80383
  Prefactor  = 1.10106
 **********
 **   18 **HESSE 
 **********

 FCN=   2457.975     FROM HESSE     STATUS=OK           264 CALLS     2370 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.347        35.230        .81178E-04   -1.4721    
   2  norm          1.9081        12.717        .30097E-03   -1.5432    
   3  Prefactor     .10000E-03    24.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.370        1187.9        .84754E-04   -1.4762    
   5  Prefactor     10.278        26.001        .12498E-03   -1.5067    
   6  Prefactor     .10000E-03    148.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    47.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10025E-03    78.357        .35165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6467        3.2586        .79613E-04   -1.5326    
  10  Prefactor     .10000E-03    40.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.8027        .12627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.938        51.013        .11133E-03   -1.4988    
  13  Prefactor     .10000E-03    75.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    24.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    158.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    129.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2916        10.105        .30479E-03   -1.5481    
  18  Normalizat    1.8038        .66910        .44312E-03   -.69564    
  19  Prefactor     1.1011        .23618        .18710E-03   -.89433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12158e-09
Minuit parameter uncertainties:
  1  35.2598
  2  9.8547
  3  2.36294e-05
  4  333.252
  5  26.03
  6  3.04782e-05
  7  1.36922e-05
  8  0.00887861
  9  3.25877
  10  1.34112e-05
  11  1.07756e-06
  12  51.1854
  13  2.31415e-05
  14  4.59454e-06
  15  8.52526e-05
  16  0.000357777
  17  7.22683
  18  0.67254
  19  0.236404
Done.

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

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  1.003e-04  8.879e-03  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.101e+00  2.364e-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:  1.804e+00  6.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/409140/likelihoodResults_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.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) = 2457.97492422
delta logL = -6.02959735261e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2457.97492417
delta logL = -6.02530099059e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96349E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5790       1.0000          .0000       10.000    
     3 'Normalizat'    1.8038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1010       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=   2457.848     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      284 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1510        17.919         .0000        .30498E-02
   2  Index         1.8024        .88732         .0000       -.27621E-04
   3  Normalizat    1.8481        .57873         .0000        .92359E-04
   4  Prefactor     1.0761        .20181         .0000        .32814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.15096
  Index      = 1.8024
  Normalizat = 1.8481
  Prefactor  = 1.07615
 **********
 **   18 **HESSE 
 **********

 FCN=   2457.848     FROM HESSE     STATUS=OK            27 CALLS      311 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1510        18.106        .14944E-02   -1.5137    
   2  Index         1.8024        .89608        .93067E-03   -.69387    
   3  Normalizat    1.8481        .67223        .43913E-03   -.68415    
   4  Prefactor     1.0761        .23537        .18891E-03   -.90233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72854e-10
Minuit parameter uncertainties:
  1  18.1183
  2  0.904402
  3  0.675652
  4  0.235593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409140': 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) = 2457.84792506
delta logL = 0.126938857091

Extracting fit parameters...

4FGL J1957.1-3231
   Spectrum: PowerLaw
458    Prefactor:  8.151e+00  1.812e+01  1.000e-04  1.000e+04 ( 1.000e-12)
459        Index:  1.802e+00  9.044e-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.076e+00  2.356e-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:  1.848e+00  6.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.286 -32.525

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/409140/cmap_HighResolution_599616001_599875201_4FGL_J1957.1-3231_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-02', job_status='DONE', photon_flux_upper_limit='4.54e-07', time_completed='2021-09-24 00:02:01.191538', job_id='409140', GAL2='1.08', fit_tolerance='1e-08', EG2='1.85', EG='1.80', time_epoch_completed='1632466921.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.27e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1390' AND source_name='4FGL J1957.1-3231' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:02:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 409140: <4FGL_J1957.1-3231_daily_bin1390> in cluster <slac> Done

Job <4FGL_J1957.1-3231_daily_bin1390> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 23 23:52:01 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 23:52:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 23:52:04 2021
Terminated at Fri Sep 24 00:02:01 2021
Results reported at Fri Sep 24 00:02:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1957.1-3231_daily_bin1390 299.286 -32.5246 599616001 599875201 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 :                                   453.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            600 sec.

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

