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


Performing analysis on: 4FGL_J2030.2-0620_daily_bin861
RA = 307.564, Dec = -6.3432
tmin = 462499201, tmax = 462758401
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='979457', job_status='RUN', time_executed='2021-09-25 08:21:08.477092', time_epoch_executed='1632583268.48' WHERE source_name='4FGL J2030.2-0620' and cadence='daily' and bin_id='861'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979457/ft1_4FGL_J2030.2-0620_daily_bin861.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979457/ft1_4FGL_J2030.2-0620_daily_bin861.fits outfile=/scratch/kocevski/979457/ft1_filteredMKT_4FGL_J2030.2-0620_daily_bin861.fits ra=307.564 dec=-6.3432 rad=12.0 tmin=462499201.0 tmax=462758401.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.56
user 3.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.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/979457/ft1_filteredMKT_4FGL_J2030.2-0620_daily_bin861.fits evtable="EVENTS" outfile="/scratch/kocevski/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.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/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.fits" evtable="EVENTS" scfile=/scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits sctable="SC_DATA" outfile=/scratch/kocevski/979457/ltcube_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.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/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits
.....................!
real 15.92
user 15.51
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits sctable="SC_DATA" expcube=/scratch/kocevski/979457/ltcube_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.fits outfile=/scratch/kocevski/979457/expmap_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.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/979457/ltcube_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.fits
.....................!
real 191.06
user 185.46
sys 5.27

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

Setting source of interest to:
4FGL J2030.2-0620 @ 307.564 -6.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.fits scfile=/scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits outfile=/scratch/kocevski/979457/cmap_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.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=307.564 yref=-6.3432 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.fits scfile=/scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits outfile=/scratch/kocevski/979457/cmap_HighResolution_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.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=307.564 yref=-6.3432 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/979457/Model_4FGL_J2030.2-0620_daily_bin861.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/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.fits.....................!
real 97.14
user 95.72
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.fits', '/scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits', expMap='/scratch/kocevski/979457/expmap_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.fits', expCube='/scratch/kocevski/979457/ltcube_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/979457/Model_4FGL_J2030.2-0620_daily_bin861.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2030.2-0620'

4FGL J2030.2-0620
   Spectrum: PowerLaw
340    Prefactor:  2.050e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/979457/ft1_filtered_4FGL_J2030.2-0620_daily_bin861.fits
Spacecraft file(s): /scratch/kocevski/979457/ft2_4FGL_J2030.2-0620_daily_bin861.fits
Exposure map: /scratch/kocevski/979457/expmap_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.fits
Exposure cube: /scratch/kocevski/979457/ltcube_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/979457/Model_4FGL_J2030.2-0620_daily_bin861.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) = 9982.33486344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7422       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.910       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.6236       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .77753       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3120       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0490       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0721       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99628       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9982.296     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2037 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5430        30.591        .66453E-05    .18642E-03
   2  Prefactor     1.7413        2.2335        .16638E-06   -.12730E-03
   3  Prefactor     .10000E-03    18.895       -.79741E-06** at limit **
   4  Prefactor     26.905        33.516       -.11299E-05   -.17215E-03
   5  Prefactor     .10000E-03    10.378       -.13849E-06** at limit **
   6  norm          9.6240        7.9230        .99872E-06   -.48389E-03
   7  Prefactor     .10000E-03    17.338       -.68276E-06** at limit **
   8  Prefactor     .10000E-03    95.093       -.17646E-05** at limit **
   9  norm          .10000E-03    6.1420        .62107E-08** at limit **
  10  norm          .10000E-03    15.683        .10085E-05** at limit **
  11  Prefactor     .10000E-03    10.149        .28769E-06** at limit **
  12  norm          11.082        2.1622       -.66531E-08   -.17026E-03
  13  Prefactor     .77846        5.8570        .19208E-06   -.11425E-03
  14  norm          2.3122        2.7250        .11916E-06   -.82826E-04
  15  Prefactor     2.0495        2.8916        .29391E-06   -.20528E-03
  16  Prefactor     1.0737        4.1619        .23315E-05   -.46650E-03
  17  Prefactor     .10000E-03    11.283       -.23555E-06** at limit **
  18  Prefactor     .10000E-03    20.626        .69688E-06** at limit **
  19  Normalizat    .99577        .23967       -.59945E-06   -.12357E-03
  20  Prefactor     .92431        .79783E-01   -.40780E-06   -.15486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54305
  Prefactor  = 1.74132
  Prefactor  = 0.000100001
  Prefactor  = 26.9047
  Prefactor  = 0.0001
  norm       = 9.62403
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 11.0817
  Prefactor  = 0.778462
  norm       = 2.31216
  Prefactor  = 2.04952
  Prefactor  = 1.07373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.995766
  Prefactor  = 0.924308
 **********
 **   18 **HESSE 
 **********

 FCN=   9982.296     FROM HESSE     STATUS=OK           291 CALLS     2328 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5430        34.014        .25427E-03   -1.5389    
   2  Prefactor     1.7413        2.2137        .16267E-03   -1.5444    
   3  Prefactor     .10000E-03    19.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.905        33.821        .77226E-04   -1.4670    
   5  Prefactor     .10000E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.6240        8.0704        .64589E-03   -1.5087    
   7  Prefactor     .10000E-03    17.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    95.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.1525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    15.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.082        2.1328        .58957E-04   -1.5042    
  13  Prefactor     .77846        24.454        .44297E-02   -1.5532    
  14  norm          2.3122        2.7165        .17365E-03   -1.5404    
  15  Prefactor     2.0495        2.8838        .19583E-03   -1.5422    
  16  Prefactor     1.0737        4.4874        .39838E-03   -1.5501    
  17  Prefactor     .10000E-03    11.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99577        .26960        .43791E-03   -.93172    
  20  Prefactor     .92431        .90708E-01    .15204E-03   -.95297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34914e-08
Minuit parameter uncertainties:
  1  18.6135
  2  2.21381
  3  0.000255033
  4  33.845
  5  3.13323e-05
  6  8.07129
  7  0.000143443
  8  0.000820205
  9  2.32627e-06
  10  0.000215165
  11  5.61521e-05
  12  2.13281
  13  8.72956
  14  2.71661
  15  2.88397
  16  4.39046
  17  3.00282e-05
  18  0.000169809
  19  0.269971
  20  0.0907232
Done.

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

Extracting fit parameters...

4FGL J2030.2-0620
   Spectrum: PowerLaw
340    Prefactor:  7.785e-01  8.730e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.243e-01  9.072e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  9.958e-01  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 307.564 -6.343
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/979457/likelihoodResults_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.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) = 9981.80018027
delta logL = 0.49576748994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9981.79512817
delta logL = 0.500819586316

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9981.795     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      256 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34832        3.3126        .10651E-01   -.98559E-03
   2  Index         4.4110        1.6083        .15160       -.81650E-04
   3  Normalizat    .90766        .38734E-01    .10282       -.14316E-03
   4  Prefactor     .94068        .13089E-01    .34110E-01   -.37561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.348316
  Index      = 4.41096
  Normalizat = 0.907659
  Prefactor  = 0.940678
 **********
 **   18 **HESSE 
 **********

 FCN=   9981.795     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34832        16.942        .57161E-04   -1.5590    
   2  Index         4.4110        7.1440        .51797E-02   -.11808    
   3  Normalizat    .90766        .22711        .45566E-03   -.96192    
   4  Prefactor     .94068        .74547E-01    .15072E-03   -.94734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54934e-09
Minuit parameter uncertainties:
  1  4.85916
  2  6.10919
  3  0.227345
  4  0.0745553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979457': 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): 102
logL (Free Index) = 9981.79512448
delta logL = 0.500823282708

Extracting fit parameters...

4FGL J2030.2-0620
   Spectrum: PowerLaw
340    Prefactor:  3.483e-01  4.859e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  4.411e+00  6.109e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.407e-01  7.456e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  9.077e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 307.564 -6.343
Photon Index (Free Index): 4.41 +/- 6.11
Photon Flux (Free Index): 9.38e-08 +/- 9.51e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.57e-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/979457/cmap_HighResolution_462499201_462758401_4FGL_J2030.2-0620_daily_bin861.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='5.01e-01', photon_flux2='9.38e-08', job_status='DONE', time_completed='2021-09-25 08:35:13.950446', photon_index_error2='6.11', photon_index2='4.41', ts='0.01', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.57e-05', EG='1.00', time_epoch_completed='1632584113.95', return_code='0', job_id='979457', GAL2='0.94', EG2='0.91', return_code2='102', photon_flux_error2='9.51e-08', ts2='1.11', photon_index='2.40' WHERE bin_id='861' AND source_name='4FGL J2030.2-0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 08:35:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 979457: <4FGL_J2030.2-0620_daily_bin861> in cluster <slac> Done

Job <4FGL_J2030.2-0620_daily_bin861> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 08:20:21 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 08:20:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 08:20:52 2021
Terminated at Sat Sep 25 08:35:14 2021
Results reported at Sat Sep 25 08:35:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2030.2-0620_daily_bin861 307.564 -6.3432 462499201 462758401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2030.2-0620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   842.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            893 sec.

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

