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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin873
RA = 338.799, Dec = -6.3955
tmin = 465609601, tmax = 465868801
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='376858', job_status='RUN', time_executed='2021-09-28 15:39:18.080000', time_epoch_executed='1632868758.08' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376858

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376858/ft1_4FGL_J2235.1-0623_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376858/ft1_4FGL_J2235.1-0623_daily_bin873.fits outfile=/scratch/kocevski/376858/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin873.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=465609601.0 tmax=465868801.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.53
user 3.31
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.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/376858/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin873.fits evtable="EVENTS" outfile="/scratch/kocevski/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/376858/ltcube_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.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/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits
.....................!
real 12.64
user 12.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/376858/ltcube_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.fits outfile=/scratch/kocevski/376858/expmap_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.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/376858/ltcube_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.fits
.....................!
real 191.51
user 186.01
sys 5.12

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

Setting source of interest to:
4FGL J2235.1-0623 @ 338.799 -6.3955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.fits scfile=/scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits outfile=/scratch/kocevski/376858/cmap_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.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=338.799 yref=-6.3955 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/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.fits scfile=/scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits outfile=/scratch/kocevski/376858/cmap_HighResolution_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.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=338.799 yref=-6.3955 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.56
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376858/Model_4FGL_J2235.1-0623_daily_bin873.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/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.fits.....................!
real 72.08
user 70.67
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.fits', '/scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits', expMap='/scratch/kocevski/376858/expmap_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.fits', expCube='/scratch/kocevski/376858/ltcube_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/376858/Model_4FGL_J2235.1-0623_daily_bin873.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.1-0623'

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/376858/ft1_filtered_4FGL_J2235.1-0623_daily_bin873.fits
Spacecraft file(s): /scratch/kocevski/376858/ft2_4FGL_J2235.1-0623_daily_bin873.fits
Exposure map: /scratch/kocevski/376858/expmap_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.fits
Exposure cube: /scratch/kocevski/376858/ltcube_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/376858/Model_4FGL_J2235.1-0623_daily_bin873.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) = 8190.55957701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5890       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.246       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11677E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.852       1.0000         .10000E-03   10000.    
    10 'norm      '    24.202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4373       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    41.320       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.660       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.392       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64724       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8190.523     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2031 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0808        5.9234        .12920E-05   -.24264E-03
   2  Prefactor     .10000E-03    15.032        .15460E-05** at limit **
   3  Prefactor     2.0063        25.043       -.67085E-05   -.10804E-03
   4  Prefactor     .10000E-03    6.2868        .22441E-06** at limit **
   5  Prefactor     6.5832        7.2580        .23039E-05   -.16797E-03
   6  Prefactor     12.249        12.078        .22950E-05    .72429E-04
   7  Prefactor     .10000E-03    20.595       -.60764E-05** at limit **
   8  Prefactor     2.2516        5.5120       -.21187E-05   -.11057E-02
   9  Prefactor     15.878        42.300        .50055E-04    .21751E-05
  10  norm          24.203        4.8113        .48820E-06    .56327E-04
  11  Prefactor     .10000E-03    26.326        .76815E-05** at limit **
  12  norm          4.4372        1.0232       -.17198E-06   -.16007E-03
  13  Prefactor     .10000E-03    2.0530        .45073E-07** at limit **
  14  norm          .10000E-03    .15843        .27402E-07** at limit **
  15  Prefactor     .10000E-03    3.9594        .82629E-07** at limit **
  16  Prefactor     3.1432        5.8034        .91590E-06   -.34037E-03
  17  Prefactor     .10000E-03    1.9678        .27016E-07** at limit **
  18  norm          41.328        13.539        .51903E-06   -.39025E-05
  19  Prefactor     17.706        55.455        .97190E-04    .21962E-04
  20  Prefactor     13.378        12.223       -.11955E-04   -.23159E-03
  21  Normalizat    .64734        .18575       -.11876E-04    .14886E-03
  22  Prefactor     1.0216        .11879        .19688E-05   -.39015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.08076
  Prefactor  = 0.000100001
  Prefactor  = 2.00631
  Prefactor  = 0.0001
  Prefactor  = 6.58318
  Prefactor  = 12.2494
  Prefactor  = 0.0001
  Prefactor  = 2.25163
  Prefactor  = 15.8781
  norm       = 24.2027
  Prefactor  = 0.0001
  norm       = 4.43717
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.14321
  Prefactor  = 0.0001
  norm       = 41.328
  Prefactor  = 17.7065
  Prefactor  = 13.3782
  Normalizat = 0.647336
  Prefactor  = 1.02158
 **********
 **   18 **HESSE 
 **********

 FCN=   8190.523     FROM HESSE     STATUS=OK           344 CALLS     2375 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0808        5.9171        .15074E-03   -1.5176    
   2  Prefactor     .10000E-03    15.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0063        25.105        .28938E-03   -1.5425    
   4  Prefactor     .10000E-03    6.3028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5832        7.2493        .15634E-03   -1.5195    
   6  Prefactor     12.249        11.735        .11447E-03   -1.5008    
   7  Prefactor     .10000E-03    20.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2516        5.3313        .25574E-03   -1.5408    
   9  Prefactor     15.878        42.154        .10059E-03   -1.4911    
  10  norm          24.203        4.8007        .81424E-04   -1.4724    
  11  Prefactor     .10000E-03    26.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4372        1.0231        .19117E-04   -1.5287    
  13  Prefactor     .10000E-03    2.0569        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .16084        .35152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9630        .17586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1432        5.7855        .22851E-03   -1.5353    
  17  Prefactor     .10000E-03    1.9692        .12398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          41.328        13.537        .62360E-04   -1.4421    
  19  Prefactor     17.706        55.198        .95306E-04   -1.4866    
  20  Prefactor     13.378        12.218        .10946E-03   -1.4976    
  21  Normalizat    .64734        .20976        .34572E-03   -1.0601    
  22  Prefactor     1.0216        .13617        .19157E-03   -.92013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10797e-09
Minuit parameter uncertainties:
  1  5.91756
  2  0.000178568
  3  14.2011
  4  5.94547e-05
  5  7.25026
  6  11.7376
  7  1.026e-05
  8  5.33241
  9  42.2327
  10  4.80075
  11  5.61554e-05
  12  1.02312
  13  5.64812e-06
  14  1.14237e-06
  15  6.72323e-06
  16  5.7865
  17  3.6508e-06
  18  13.5377
  19  55.3575
  20  12.2198
  21  0.21002
  22  0.136213
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  5.616e-05  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.022e+00  1.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  6.473e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 5.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/376858/likelihoodResults_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.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) = 8190.52306912
delta logL = -0.00018079021811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8190.52288834
delta logL = -1.30148691824e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8190.523     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7475.1        .90712E-02** at limit **
   2  Index         2.1230        6.8563        .50000        .73276E-06
   3  Normalizat    .64733        .12824        .78084E-01    .47556E-03
   4  Prefactor     1.0216        .88131E-01    .41986E-01    .62438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12296
  Normalizat = 0.647333
  Prefactor  = 1.02159
 **********
 **   18 **HESSE 
 **********

 FCN=   8190.523     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1230        5.9965        .50000       -.61310    
   3  Normalizat    .64733        .19346        .34573E-03   -1.0601    
   4  Prefactor     1.0216        .13343        .19157E-03   -.92013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22774e-10
Minuit parameter uncertainties:
  1  0.000260512
  2  4.85058
  3  0.193661
  4  0.133472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376858': 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) = 8190.52288833
delta logL = 5.18411980011e-09

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.605e-04  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.123e+00  4.851e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.022e+00  1.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  6.473e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.799 -6.396

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/376858/cmap_HighResolution_465609601_465868801_4FGL_J2235.1-0623_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2021-09-28 15:50:39.699236', job_id='376858', GAL2='1.02', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632869439.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='873' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:50:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 376858: <4FGL_J2235.1-0623_daily_bin873> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin873> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:35:22 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:35:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:35:24 2021
Terminated at Tue Sep 28 15:50:40 2021
Results reported at Tue Sep 28 15:50:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin873 338.799 -6.3955 465609601 465868801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.1-0623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   678.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

