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


Performing analysis on: 4FGL_J1433.0-1801_daily_bin345
RA = 218.253, Dec = -18.0196
tmin = 328752001, tmax = 329011201
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='603130', job_status='RUN', time_executed='2021-09-09 23:53:20.077413', time_epoch_executed='1631256800.08' WHERE source_name='4FGL J1433.0-1801' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603130/ft1_4FGL_J1433.0-1801_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603130/ft1_4FGL_J1433.0-1801_daily_bin345.fits outfile=/scratch/kocevski/603130/ft1_filteredMKT_4FGL_J1433.0-1801_daily_bin345.fits ra=218.253 dec=-18.0196 rad=12.0 tmin=328752001.0 tmax=329011201.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 3.47
user 3.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.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/603130/ft1_filteredMKT_4FGL_J1433.0-1801_daily_bin345.fits evtable="EVENTS" outfile="/scratch/kocevski/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/603130/ltcube_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.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/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits
.....................!
real 11.89
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/603130/ltcube_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.fits outfile=/scratch/kocevski/603130/expmap_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.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/603130/ltcube_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.fits
.....................!
real 190.35
user 185.18
sys 4.71

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

Setting source of interest to:
4FGL J1433.0-1801 @ 218.253 -18.0196

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.fits scfile=/scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits outfile=/scratch/kocevski/603130/cmap_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.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=218.253 yref=-18.0196 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.fits scfile=/scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits outfile=/scratch/kocevski/603130/cmap_HighResolution_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.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=218.253 yref=-18.0196 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603130/Model_4FGL_J1433.0-1801_daily_bin345.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/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.fits.....................!
real 80.55
user 79.00
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.fits', '/scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits', expMap='/scratch/kocevski/603130/expmap_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.fits', expCube='/scratch/kocevski/603130/ltcube_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603130/Model_4FGL_J1433.0-1801_daily_bin345.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1433.0-1801'

4FGL J1433.0-1801
   Spectrum: LogParabola
293         norm:  2.612e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
294        alpha:  2.395e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
295         beta:  3.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
296           Eb:  5.808e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/603130/ft1_filtered_4FGL_J1433.0-1801_daily_bin345.fits
Spacecraft file(s): /scratch/kocevski/603130/ft2_4FGL_J1433.0-1801_daily_bin345.fits
Exposure map: /scratch/kocevski/603130/expmap_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.fits
Exposure cube: /scratch/kocevski/603130/ltcube_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603130/Model_4FGL_J1433.0-1801_daily_bin345.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) = 9916.32154628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1449       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10571E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.964       1.0000         .10000E-03   10000.    
     7 'norm      '    11.884       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .85653E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3322       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12105E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50472E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2857       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88505       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9916.277     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1419 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1422        4.3213       -.44200E-07   -.10529E-03
   2  Prefactor     .10000E-03    32.143       -.43985E-05** at limit **
   3  norm          .10000E-03    2.0009       -.63467E-08** at limit **
   4  Prefactor     .10000E-03    22.307        .37321E-05** at limit **
   5  norm          .10000E-03    1.6030       -.65320E-07** at limit **
   6  Prefactor     15.958        14.293       -.32437E-06   -.74680E-05
   7  norm          11.889        7.3373       -.33275E-06   -.13392E-03
   8  Prefactor     .10000E-03    11.317        .98174E-05** at limit **
   9  Prefactor     .10000E-03    15.558       -.82414E-06** at limit **
  10  norm          .10007E-03    3.7580       -.86274E-06** at limit **
  11  Prefactor     3.3377        2.2122        .57009E-06   -.30515E-02
  12  Prefactor     .10000E-03    11.270       -.94713E-05** at limit **
  13  Prefactor     .10000E-03    50.773        .13052E-05** at limit **
  14  Prefactor     .10025E-03    18.540       -.10996E-05** at limit **
  15  Prefactor     .10000E-03    8.7931       -.23437E-07** at limit **
  16  Normalizat    1.2859        .20456        .40229E-07    .67922E-04
  17  Prefactor     .88507        .81926E-01    .14071E-08    .17590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.14218
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9583
  norm       = 11.8889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100071
  Prefactor  = 3.33773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100247
  Prefactor  = 0.0001
  Normalizat = 1.28594
  Prefactor  = 0.885068
 **********
 **   18 **HESSE 
 **********

 FCN=   9916.277     FROM HESSE     STATUS=OK           227 CALLS     1646 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1422        4.3135        .22858E-03   -1.5353    
   2  Prefactor     .10000E-03    32.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0023        .13756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6575        .24605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.958        14.300        .10024E-03   -1.4909    
   7  norm          11.889        7.3452        .11620E-03   -1.5018    
   8  Prefactor     .10000E-03    11.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10007E-03    27.458        .37155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3377        5.1817        .11087E-02   -1.5343    
  12  Prefactor     .10000E-03    11.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10025E-03    20.674        .13257       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2859        .24548        .34767E-03   -.83987    
  17  Prefactor     .88507        .98444E-01    .16524E-03   -.96665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05164e-08
Minuit parameter uncertainties:
  1  4.3139
  2  9.52352e-05
  3  7.88813e-08
  4  7.17832e-05
  5  1.00259e-06
  6  14.303
  7  7.3458
  8  0.000128108
  9  4.83418e-06
  10  0.00278646
  11  5.18236
  12  0.000129832
  13  5.48187e-05
  14  0.00451938
  15  1.94627e-06
  16  0.245701
  17  0.098464
Done.

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

Extracting fit parameters...

4FGL J1433.0-1801
   Spectrum: LogParabola
293         norm:  1.001e-04  2.786e-03  1.000e-04  1.000e+04 ( 1.000e-12)
294        alpha:  2.395e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
295         beta:  3.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
296           Eb:  5.808e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  8.851e-01  9.846e-02  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.286e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 218.253 -18.020
Photon Flux Upper Limit: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603130/likelihoodResults_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.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) = 9916.27712132
delta logL = -0.000171303496245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9916.27695057
delta logL = -5.45363946003e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13781E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4315       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88508       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+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=   9916.277     FROM MIGRAD    STATUS=FAILED        98 CALLS      258 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10192E-03    1742.7        .38799E-02** at limit **
   2  alpha         2.6910        3.7929        .16468       -.49469E-06
   3  Normalizat    1.2859        .40079E-01    .34767E-03   -.19489E-04
   4  Prefactor     .88507        .16243E-01    .16524E-03   -.57423E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9916.277     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      412 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10192E-03    1742.7        .88486E-03** at limit **
   2  alpha         2.6910        3.7929        .14717E-04   -.49469E-06
   3  Normalizat    1.2859        .40079E-01    .25237E-06   -.19489E-04
   4  Prefactor     .88507        .16243E-01    .14139E-07   -.57423E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9916.277     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      446 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    39.241        .16380E-04** at limit **
   2  alpha         2.7076        3.3829        .16843E-01   -.31759E-07
   3  Normalizat    1.2859        .24265       -.11574E-05   -.40493E-05
   4  Prefactor     .88507        .98427E-01    .65098E-06   -.78519E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.70757
  Normalizat = 1.28594
  Prefactor  = 0.885067
 **********
 **   18 **HESSE 
 **********

 FCN=   9916.277     FROM HESSE     STATUS=OK            23 CALLS      469 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    38.229        .31039E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7076        3.4822        .26350E-02    .83125E-01
   3  Normalizat    1.2859        .24277        .27813E-05   -.83987    
   4  Prefactor     .88507        .98478E-01    .66094E-05   -.96665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57132e-11
Minuit parameter uncertainties:
  1  0.000551456
  2  299.569
  3  0.24299
  4  0.0984982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603130': 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) = 9916.27694954
delta logL = 4.82485120301e-07

Extracting fit parameters...

4FGL J1433.0-1801
   Spectrum: LogParabola
293         norm:  1.000e-04  5.515e-04  1.000e-04  1.000e+04 ( 1.000e-12)
294        alpha:  2.708e+00  2.996e+02  0.000e+00  5.000e+00 ( 1.000e+00)
295         beta:  3.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
296           Eb:  5.808e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  8.851e-01  9.850e-02  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.286e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 218.253 -18.020

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/603130/cmap_HighResolution_328752001_329011201_4FGL_J1433.0-1801_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-10 00:05:04.662895', job_id='603130', GAL2='0.89', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631257504.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='345' AND source_name='4FGL J1433.0-1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 00:05:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 603130: <4FGL_J1433.0-1801_daily_bin345> in cluster <slac> Done

Job <4FGL_J1433.0-1801_daily_bin345> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 23:51:10 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 23:51:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 23:51:12 2021
Terminated at Fri Sep 10 00:05:05 2021
Results reported at Fri Sep 10 00:05:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1433.0-1801_daily_bin345 218.253 -18.0196 328752001 329011201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1433.0-1801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

