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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1131
RA = 338.971, Dec = -36.4605
tmin = 532483201, tmax = 532742401
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='393629', job_status='RUN', time_executed='2021-09-28 16:29:47.338465', time_epoch_executed='1632871787.34' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393629/ft1_4FGL_J2235.8-3627_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393629/ft1_4FGL_J2235.8-3627_daily_bin1131.fits outfile=/scratch/kocevski/393629/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1131.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=532483201.0 tmax=532742401.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.45
user 3.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.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/393629/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1131.fits evtable="EVENTS" outfile="/scratch/kocevski/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.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.85
user 0.33
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/393629/ltcube_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.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/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits
.....................!
real 11.98
user 11.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/393629/ltcube_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.fits outfile=/scratch/kocevski/393629/expmap_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.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/393629/ltcube_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.fits
.....................!
real 192.13
user 186.80
sys 4.91

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

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.fits scfile=/scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits outfile=/scratch/kocevski/393629/cmap_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.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.971 yref=-36.4605 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.fits scfile=/scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits outfile=/scratch/kocevski/393629/cmap_HighResolution_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.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.971 yref=-36.4605 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/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393629/Model_4FGL_J2235.8-3627_daily_bin1131.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/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.fits.....................!
real 44.64
user 43.18
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.fits', '/scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits', expMap='/scratch/kocevski/393629/expmap_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.fits', expCube='/scratch/kocevski/393629/ltcube_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/393629/Model_4FGL_J2235.8-3627_daily_bin1131.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/393629/ft1_filtered_4FGL_J2235.8-3627_daily_bin1131.fits
Spacecraft file(s): /scratch/kocevski/393629/ft2_4FGL_J2235.8-3627_daily_bin1131.fits
Exposure map: /scratch/kocevski/393629/expmap_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.fits
Exposure cube: /scratch/kocevski/393629/ltcube_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/393629/Model_4FGL_J2235.8-3627_daily_bin1131.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) = 5190.61922575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.282       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6557       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.683       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1671       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.716       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .58321       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1789       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.415       1.0000         .10000E-03   10000.    
    19 'norm      '    5.7091       1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.713       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.928       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.6518       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .23648E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.8748       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .51423       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5190.552     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3761 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.275        15.646       -.30730E-05    .18109E-04
   2  Prefactor     .10000E-03    17.194       -.41964E-06** at limit **
   3  norm          .10000E-03    2.2634        .24820E-06** at limit **
   4  norm          .10000E-03    3.0289       -.34617E-06** at limit **
   5  norm          2.6557        .63309        .30471E-07    .19717E-03
   6  Prefactor     8.5785        8.9959       -.61846E-06   -.10032E-04
   7  Prefactor     .10000E-03    3.1143       -.38851E-06** at limit **
   8  norm          10.679        25.418       -.42280E-05    .22372E-04
   9  Prefactor     .10000E-03    66.795        .88932E-05** at limit **
  10  Prefactor     .10000E-03    22.111        .11685E-04** at limit **
  11  Prefactor     3.1832        94.753       -.10202E-04   -.89092E-05
  12  norm          2.2034        3.4833       -.13831E-04   -.13502E-02
  13  Prefactor     13.868        115.52        .26916E-03    .10819E-03
  14  Prefactor     .10000E-03    9.2421        .27862E-06** at limit **
  15  Prefactor     .50517        11.110       -.18728E-05    .17571E-03
  16  norm          1.1800        3.8592       -.34600E-06   -.53206E-03
  17  Prefactor     .10000E-03    8.7374       -.11004E-06** at limit **
  18  Prefactor     12.430        22.068       -.29886E-04    .10126E-03
  19  norm          5.7077        1.6701        .15945E-05   -.27100E-02
  20  Prefactor     43.719        69.284        .60006E-05    .13200E-04
  21  Prefactor     .10001E-03    35.748       -.29003E-06** at limit **
  22  norm          11.931        22.598       -.59761E-06   -.10487E-05
  23  norm          .10000E-03    2.7778       -.15669E-07** at limit **
  24  norm          8.6501        11.517       -.18130E-05   -.35594E-04
  25  Prefactor     .10000E-03    308.45        .11647E-04** at limit **
  26  Prefactor     .10000E-03    21.545       -.91527E-05** at limit **
  27  norm          .10000E-03    6.1422       -.18767E-06** at limit **
  28  Normalizat    1.8747        .26148        .20826E-05    .10147E-03
  29  Prefactor     .51445        .22776       -.31211E-05    .12046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2747
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.65567
  Prefactor  = 8.57849
  Prefactor  = 0.0001
  norm       = 10.6787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.18316
  norm       = 2.20342
  Prefactor  = 13.8685
  Prefactor  = 0.0001
  Prefactor  = 0.505173
  norm       = 1.17996
  Prefactor  = 0.0001
  Prefactor  = 12.4302
  norm       = 5.70772
  Prefactor  = 43.7191
  Prefactor  = 0.000100012
  norm       = 11.9309
  norm       = 0.0001
  norm       = 8.65008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.87474
  Prefactor  = 0.514454
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.552     FROM HESSE     STATUS=OK           549 CALLS     4310 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.275        15.609        .81290E-04   -1.4722    
   2  Prefactor     .10000E-03    17.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2642        .10586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0546        .12240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6557        .63402        .27079E-04   -1.5382    
   6  Prefactor     8.5785        9.0147        .13686E-03   -1.5122    
   7  Prefactor     .10000E-03    3.1659        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.679        25.376        .12258E-03   -1.5054    
   9  Prefactor     .10000E-03    66.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1832        94.822        .22774E-03   -1.5351    
  12  norm          2.2034        3.4711        .14482E-03   -1.5411    
  13  Prefactor     13.868        115.45        .10815E-03   -1.4963    
  14  Prefactor     .10000E-03    9.2664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50517        62.616        .44105E-02   -1.5566    
  16  norm          1.1800        3.7635        .24149E-03   -1.5491    
  17  Prefactor     .10000E-03    8.7393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.430        22.584        .11369E-03   -1.5003    
  19  norm          5.7077        1.7146        .37585E-04   -1.5230    
  20  Prefactor     43.719        69.378        .60637E-04   -1.4385    
  21  Prefactor     .10001E-03    36.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.931        22.595        .11599E-03   -1.5017    
  23  norm          .10000E-03    2.7845        .11726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.6501        11.523        .13628E-03   -1.5120    
  25  Prefactor     .10000E-03    315.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.2966        .34843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.8747        .30580        .24505E-03   -.67728    
  29  Prefactor     .51445        .26000        .38846E-03   -1.1132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59772e-09
Minuit parameter uncertainties:
  1  15.6115
  2  0.000238315
  3  2.07271e-06
  4  9.1881e-07
  5  0.634024
  6  9.01609
  7  8.93982e-06
  8  25.4013
  9  0.000138598
  10  4.48923e-05
  11  34.807
  12  3.47145
  13  80.2376
  14  3.34226e-05
  15  11.2594
  16  3.76429
  17  7.72744e-05
  18  22.5994
  19  1.71466
  20  69.506
  21  0.00132089
  22  22.6113
  23  4.56899e-07
  24  11.5264
  25  0.000225034
  26  1.49841e-05
  27  3.03401e-06
  28  0.306117
  29  0.260602
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  4.489e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  5.145e-01  2.606e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.875e+00  3.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393629/likelihoodResults_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.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) = 5190.55239857
delta logL = -0.000214977077121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5190.55218392
delta logL = -3.29550857714e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1432       1.0000          .0000       10.000    
     3 'Normalizat'    1.8747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   5190.552     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6935.0        .18142E-02** at limit **
   2  Index         2.1781        5.9698        .50000       -.15522E-04
   3  Normalizat    1.8747        .17043        .24505E-03    .54140E-04
   4  Prefactor     .51445        .15261        .38847E-03    .49810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.17807
  Normalizat = 1.87474
  Prefactor  = 0.514452
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.552     FROM HESSE     STATUS=OK            29 CALLS      309 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1781        6.0842        .50000       -.59969    
   3  Normalizat    1.8747        .28093        .98022E-05   -.67728    
   4  Prefactor     .51445        .25144        .15539E-04   -1.1132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93463e-10
Minuit parameter uncertainties:
  1  0.000653824
  2  4.26493
  3  0.281175
  4  0.251981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393629': 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) = 5190.55218379
delta logL = -1.96222572413e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  6.538e-04  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.178e+00  4.265e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  5.145e-01  2.520e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.875e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

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/393629/cmap_HighResolution_532483201_532742401_4FGL_J2235.8-3627_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 16:41:39.188394', job_id='393629', GAL2='0.51', fit_tolerance='1e-08', EG2='1.87', EG='1.87', time_epoch_completed='1632872499.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='-1.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1131' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:41:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 393629: <4FGL_J2235.8-3627_daily_bin1131> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1131> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:39 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:25:41 2021
Terminated at Tue Sep 28 16:41:39 2021
Results reported at Tue Sep 28 16:41:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1131 338.971 -36.4605 532483201 532742401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

