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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin666
RA = 338.799, Dec = -6.3955
tmin = 411955201, tmax = 412214401
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='375510', job_status='RUN', time_executed='2021-09-28 15:34:00.916477', time_epoch_executed='1632868440.92' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375510/ft1_4FGL_J2235.1-0623_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375510/ft2_4FGL_J2235.1-0623_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375510/ft1_4FGL_J2235.1-0623_daily_bin666.fits outfile=/scratch/kocevski/375510/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin666.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=411955201.0 tmax=412214401.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 5.58
user 5.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375510/ft2_4FGL_J2235.1-0623_daily_bin666.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/375510/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/375510/ft1_filtered_4FGL_J2235.1-0623_daily_bin666.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/375510/ft1_filtered_4FGL_J2235.1-0623_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/375510/ft2_4FGL_J2235.1-0623_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/375510/ltcube_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.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/375510/ft2_4FGL_J2235.1-0623_daily_bin666.fits
.....................!
real 13.76
user 13.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375510/ft1_filtered_4FGL_J2235.1-0623_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/375510/ft2_4FGL_J2235.1-0623_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/375510/ltcube_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.fits outfile=/scratch/kocevski/375510/expmap_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.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/375510/ltcube_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.fits
.....................!
real 194.30
user 188.55
sys 5.45

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/375510/ft1_filtered_4FGL_J2235.1-0623_daily_bin666.fits scfile=/scratch/kocevski/375510/ft2_4FGL_J2235.1-0623_daily_bin666.fits outfile=/scratch/kocevski/375510/cmap_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375510/ft1_filtered_4FGL_J2235.1-0623_daily_bin666.fits scfile=/scratch/kocevski/375510/ft2_4FGL_J2235.1-0623_daily_bin666.fits outfile=/scratch/kocevski/375510/cmap_HighResolution_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.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.55
user 0.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375510/ft1_filtered_4FGL_J2235.1-0623_daily_bin666.fits', '/scratch/kocevski/375510/ft2_4FGL_J2235.1-0623_daily_bin666.fits', expMap='/scratch/kocevski/375510/expmap_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.fits', expCube='/scratch/kocevski/375510/ltcube_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375510/Model_4FGL_J2235.1-0623_daily_bin666.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/375510/ft1_filtered_4FGL_J2235.1-0623_daily_bin666.fits
Spacecraft file(s): /scratch/kocevski/375510/ft2_4FGL_J2235.1-0623_daily_bin666.fits
Exposure map: /scratch/kocevski/375510/expmap_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.fits
Exposure cube: /scratch/kocevski/375510/ltcube_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375510/Model_4FGL_J2235.1-0623_daily_bin666.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) = 2200.29014701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3347       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7240       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13629E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    76.954       1.0000         .10000E-03   10000.    
    10 'norm      '    20.830       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.160       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7547       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    94.905       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.016       1.0000         .10000E-03   10000.    
    18 'norm      '    23.295       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .41761E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2200.223     FROM MIGRAD    STATUS=CONVERGED     82 CALLS     2367 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3365        1.0093       -.14396E-07    .30703E-03
   2  Prefactor     .10000E-03    7.0756       -.80444E-06** at limit **
   3  Prefactor     .10000E-03    8.3583       -.84156E-06** at limit **
   4  Prefactor     .10000E-03    12.183       -.16523E-05** at limit **
   5  Prefactor     22.767        1.9119       -.78915E-07   -.10213E-04
   6  Prefactor     .10000E-03    11.444       -.29158E-05** at limit **
   7  Prefactor     2.7277        1.2098       -.67914E-07   -.27621E-03
   8  Prefactor     .10943E-01    4.6995        .74302E-06    .11655E-02
   9  Prefactor     76.952        1.0844        .75790E-08    .11167E-02
  10  norm          20.828        1.0114       -.23408E-07    .10808E-03
  11  Prefactor     47.159        1.0118        .41467E-08    .14255E-03
  12  norm          1.7544        2.1569       -.13000E-06    .55199E-05
  13  Prefactor     .10000E-03    34.594       -.11555E-05** at limit **
  14  norm          .10000E-03    1.4907       -.20791E-07** at limit **
  15  Prefactor     94.907        1.0810       -.94644E-08   -.96517E-03
  16  Prefactor     .10002E-03    13.679       -.51182E-05** at limit **
  17  Prefactor     49.020        1.2969       -.25526E-07   -.67752E-03
  18  norm          23.304        1.7645       -.65773E-07   -.42566E-03
  19  Prefactor     .10075E-03    260.22        .70614E-05** at limit **
  20  Prefactor     .10002E-03    12.973       -.50922E-05** at limit **
  21  Normalizat    .41502E-01    1.2995       -.57581E-04    .36808E-06
  22  Prefactor     1.3074        .25746        .34315E-05    .26006E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.3365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.767
  Prefactor  = 0.0001
  Prefactor  = 2.72774
  Prefactor  = 0.0109431
  Prefactor  = 76.9518
  norm       = 20.8285
  Prefactor  = 47.1588
  norm       = 1.7544
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 94.9068
  Prefactor  = 0.00010002
  Prefactor  = 49.0203
  norm       = 23.3041
  Prefactor  = 0.000100751
  Prefactor  = 0.000100019
  Normalizat = 0.0415016
  Prefactor  = 1.30735
 **********
 **   18 **HESSE 
 **********

 FCN=   2200.223     FROM HESSE     STATUS=NOT POSDEF   396 CALLS     2763 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3365        39.080        .32793E-02   -1.5097    
   2  Prefactor     .10000E-03    5.7892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.8286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.767        74.778        .20992E-02   -1.4753    
   6  Prefactor     .10000E-03    9.4195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7277        6389.5        .61684E-02   -1.5378    
   8  Prefactor     .10943E-01    20.210        .75845E-01   -1.5687    
   9  Prefactor     76.952        180.40        .11444E-02   -1.3951    
  10  norm          20.828        14.828        .21940E-02   -1.4795    
  11  Prefactor     47.159        165.60        .14597E-02   -1.4333    
  12  norm          1.7544        2.1384        .79110E-02   -1.5443    
  13  Prefactor     .10000E-03    28.196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     94.907        212.25        .10314E-02   -1.3756    
  16  Prefactor     .10002E-03    21.375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.020        53.915        .14319E-02   -1.4307    
  18  norm          23.304        88.816        .20748E-02   -1.4742    
  19  Prefactor     .10075E-03    215.00        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    21.717        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .41502E-01    9.8831        .21554       -1.4584    
  22  Prefactor     1.3074        1.2069        .32486E-01   -.83089    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4136e-07
Minuit parameter uncertainties:
  1  38.2458
  2  1.19239e-06
  3  1.36282e-06
  4  3.00945e-05
  5  75.0883
  6  2.21343e-05
  7  188.935
  8  0.936563
  9  181.703
  10  14.8309
  11  167.252
  12  2.13847
  13  0.000162484
  14  1.97977e-07
  15  213.981
  16  0.0013229
  17  53.9683
  18  89.3266
  19  0.0254992
  20  0.00127852
  21  1.97433
  22  1.23428
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2200.2232101

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  4.716e+01  1.673e+02  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.307e+00  1.234e+00  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:  4.150e-02  1.974e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375510/likelihoodResults_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.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) = 2200.19796737
delta logL = 0.0252427271803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2200.18862897
delta logL = 0.0345811252409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.847       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7031       1.0000          .0000       10.000    
     3 'Normalizat'    .49991E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3030       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2200.189     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      305 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.993        200.27        .23519E-03    .32870E-05
   2  Index         1.7044        1.3592        .13039E-01   -.18951E-05
   3  Normalizat    .51523E-01    1.3912        .10922E-01   -.83664E-05
   4  Prefactor     1.3019        .30677        .16078E-03    .90871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.993
  Index      = 1.70438
  Normalizat = 0.0515232
  Prefactor  = 1.30195
 **********
 **   18 **HESSE 
 **********

 FCN=   2200.189     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.993        199.11        .94077E-05   -1.3997    
   2  Index         1.7044        1.3506        .52156E-03   -.71965    
   3  Normalizat    .51523E-01    1.0113        .43690E-03   -1.4418    
   4  Prefactor     1.3019        .25977        .32155E-04   -.83249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98697e-10
Minuit parameter uncertainties:
  1  200.973
  2  1.38146
  3  0.418026
  4  0.260025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375510': 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) = 2200.18861947
delta logL = 0.0345906290331

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  7.299e+01  2.010e+02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  1.704e+00  1.381e+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.302e+00  2.600e-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:  5.152e-02  4.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/375510/cmap_HighResolution_411955201_412214401_4FGL_J2235.1-0623_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-09-28 15:41:16.295446', job_id='375510', GAL2='1.30', fit_tolerance='1e-08', EG2='0.05', EG='0.04', time_epoch_completed='1632868876.3', return_code2='0', ts='0.11', comment='SUCCESS', return_code='102', GAL='1.31', dlogl='3.46e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='666' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 375510: <4FGL_J2235.1-0623_daily_bin666> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin666> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:30:38 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:30:40 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:30:40 2021
Terminated at Tue Sep 28 15:41:16 2021
Results reported at Tue Sep 28 15:41:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin666 338.799 -6.3955 411955201 412214401 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 :                                   434.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             220.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            638 sec.

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

