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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1400
RA = 338.971, Dec = -36.4605
tmin = 602208001, tmax = 602467201
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='394774', job_status='RUN', time_executed='2021-09-28 16:31:31.322094', time_epoch_executed='1632871891.32' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394774/ft1_4FGL_J2235.8-3627_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394774/ft1_4FGL_J2235.8-3627_daily_bin1400.fits outfile=/scratch/kocevski/394774/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1400.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=602208001.0 tmax=602467201.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.23
user 4.95
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.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/394774/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1400.fits evtable="EVENTS" outfile="/scratch/kocevski/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.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/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/394774/ltcube_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.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/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits
.....................!
real 12.34
user 11.78
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/394774/ltcube_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.fits outfile=/scratch/kocevski/394774/expmap_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.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/394774/ltcube_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.fits
.....................!
real 191.30
user 186.16
sys 4.75

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/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.fits scfile=/scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits outfile=/scratch/kocevski/394774/cmap_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.fits scfile=/scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits outfile=/scratch/kocevski/394774/cmap_HighResolution_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.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/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394774/Model_4FGL_J2235.8-3627_daily_bin1400.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/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.fits.....................!
real 45.90
user 44.56
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.fits', '/scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits', expMap='/scratch/kocevski/394774/expmap_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.fits', expCube='/scratch/kocevski/394774/ltcube_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394774/Model_4FGL_J2235.8-3627_daily_bin1400.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/394774/ft1_filtered_4FGL_J2235.8-3627_daily_bin1400.fits
Spacecraft file(s): /scratch/kocevski/394774/ft2_4FGL_J2235.8-3627_daily_bin1400.fits
Exposure map: /scratch/kocevski/394774/expmap_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.fits
Exposure cube: /scratch/kocevski/394774/ltcube_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394774/Model_4FGL_J2235.8-3627_daily_bin1400.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) = 6023.06555509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .51850E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.3345       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .60575       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19281E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.759       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10863E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.193       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1425       1.0000         .10000E-03   10000.    
    16 'norm      '    .56581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5459       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3269       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7506       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5018       1.0000         .10000E-03   10000.    
    24 'norm      '    11.316       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54886       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1421       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=   6022.934     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3193 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1409       -.67875E-07** at limit **
   2  Prefactor     .10048E-03    7.6515       -.18840E-05** at limit **
   3  norm          8.3358        7.4244       -.63389E-07    .13471E-05
   4  norm          .10000E-03    1.3461        .10606E-07** at limit **
   5  norm          .60580        .26345       -.45490E-08   -.12849E-03
   6  Prefactor     .10000E-03    5.9051        .18745E-05** at limit **
   7  Prefactor     .10000E-03    1.3413       -.73072E-08** at limit **
   8  norm          .10000E-03    11.950       -.21260E-05** at limit **
   9  Prefactor     .10000E-03    8.6624       -.29374E-05** at limit **
  10  Prefactor     27.738        21.799       -.66385E-05   -.67601E-03
  11  Prefactor     .10000E-03    11.810       -.13107E-05** at limit **
  12  norm          .10000E-03    1.1129       -.87958E-07** at limit **
  13  Prefactor     .10000E-03    32.552        .35737E-05** at limit **
  14  Prefactor     20.193        11.160        .17619E-06   -.10232E-03
  15  Prefactor     5.1426        5.3072        .68239E-06   -.19323E-02
  16  norm          .56488        5.5707       -.93102E-06   -.55801E-03
  17  Prefactor     .10000E-03    10.559        .24957E-05** at limit **
  18  Prefactor     5.5560        7.9876        .16985E-05   -.17179E-02
  19  norm          1.3271        .68074       -.98962E-07   -.61170E-04
  20  Prefactor     .10000E-03    27.979       -.23826E-05** at limit **
  21  Prefactor     8.7501        9.1522       -.38717E-06   -.48638E-04
  22  norm          .10000E-03    9.5576        .12549E-05** at limit **
  23  norm          1.5019        1.9189       -.11312E-07    .82559E-05
  24  norm          11.316        6.8624       -.68418E-07   -.25383E-04
  25  Prefactor     .10000E-03    7.1613        .86552E-06** at limit **
  26  Prefactor     .10000E-03    11.297        .12319E-05** at limit **
  27  norm          .10000E-03    .73956        .31193E-08** at limit **
  28  Normalizat    .54918        .16412        .10244E-05   -.10809E-03
  29  Prefactor     1.1418        .16231       -.60810E-07    .15771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100479
  norm       = 8.33576
  norm       = 0.0001
  norm       = 0.605801
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.7384
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1933
  Prefactor  = 5.14259
  norm       = 0.564881
  Prefactor  = 0.0001
  Prefactor  = 5.55602
  norm       = 1.32709
  Prefactor  = 0.0001
  Prefactor  = 8.75008
  norm       = 0.0001
  norm       = 1.50195
  norm       = 11.3165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.549178
  Prefactor  = 1.14175
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.934     FROM HESSE     STATUS=OK           553 CALLS     3746 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10048E-03    65.233        .40338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.3358        7.4295        .13886E-03   -1.5130    
   4  norm          .10000E-03    1.3547        .87891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .60580        .26492        .25516E-04   -1.5552    
   6  Prefactor     .10000E-03    35.313        .34924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3872        .17544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.738        22.373        .76039E-04   -1.4654    
  11  Prefactor     .10000E-03    11.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9403        .15822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.193        11.185        .89131E-04   -1.4809    
  15  Prefactor     5.1426        6.1568        .88642E-03   -1.5254    
  16  norm          .56488        5.0761        .30853E-03   -1.5558    
  17  Prefactor     .10000E-03    10.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5560        10.089        .85301E-03   -1.5236    
  19  norm          1.3271        .72898        .37824E-04   -1.5478    
  20  Prefactor     .10000E-03    28.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.7501        9.2379        .13550E-03   -1.5116    
  22  norm          .10000E-03    9.5875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5019        1.9063        .11863E-03   -1.5463    
  24  norm          11.316        6.8588        .11909E-03   -1.5035    
  25  Prefactor     .10000E-03    7.1667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .74115        .65163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .54918        .19220        .27520E-03   -1.1019    
  29  Prefactor     1.1418        .19131        .20090E-03   -.88143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54044e-08
Minuit parameter uncertainties:
  1  8.59387e-06
  2  0.0111897
  3  7.43032
  4  1.35128e-06
  5  0.264916
  6  0.00048827
  7  2.21394e-06
  8  8.90839e-05
  9  9.72654e-05
  10  22.3801
  11  7.82872e-06
  12  5.75039e-06
  13  0.000206306
  14  11.186
  15  6.15752
  16  3.38674
  17  8.36789e-05
  18  10.092
  19  0.728982
  20  0.000135756
  21  9.23939
  22  3.82984e-05
  23  1.90635
  24  6.85927
  25  2.26035e-05
  26  4.25547e-05
  27  4.85738e-07
  28  0.192432
  29  0.191426
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.774e+01  2.238e+01  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:  1.142e+00  1.914e-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:  5.492e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/394774/likelihoodResults_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.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) = 6022.03981103
delta logL = 0.894252401879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6022.03291397
delta logL = 0.901149466769

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.212       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0376       1.0000          .0000       10.000    
     3 'Normalizat'    .50848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1680       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=   6022.033     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      308 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.209        20.052        .11463E-03   -.22662E-03
   2  Index         3.0377        .87327        .44500E-02   -.83725E-04
   3  Normalizat    .50857        .18664        .28524E-03   -.29259E-03
   4  Prefactor     1.1679        .18927        .19882E-03   -.38950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2093
  Index      = 3.03774
  Normalizat = 0.508565
  Prefactor  = 1.16793
 **********
 **   18 **HESSE 
 **********

 FCN=   6022.033     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.209        15.945        .45852E-05   -1.5009    
   2  Index         3.0377        .69525        .17800E-03   -.40330    
   3  Normalizat    .50857        .18669        .11410E-04   -1.1202    
   4  Prefactor     1.1679        .18916        .39765E-04   -.87324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68047e-10
Minuit parameter uncertainties:
  1  15.9501
  2  0.697921
  3  0.186923
  4  0.189266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394774': 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) = 6022.03291383
delta logL = 0.901149608087

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.221e+01  1.595e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.038e+00  6.979e-01  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:  1.168e+00  1.893e-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:  5.086e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 3.04 +/- 0.70
Photon Flux (Free Index): 6.67e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.31e-05 +/- 8.42e-06

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/394774/cmap_HighResolution_602208001_602467201_4FGL_J2235.8-3627_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='1.31e-05', photon_flux_error='3.13e-08', dlogl='9.01e-01', energy_flux='1.65e-05', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-09-28 16:44:01.987148', photon_index_error2='0.70', photon_index2='3.04', ts='2.10', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='8.42e-06', EG='0.55', time_epoch_completed='1632872641.99', return_code='0', job_id='394774', GAL2='1.17', EG2='0.51', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.12e-08', ts2='4.01', photon_index='2.23' WHERE bin_id='1400' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 394774: <4FGL_J2235.8-3627_daily_bin1400> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1400> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:22 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:23 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:30:23 2021
Terminated at Tue Sep 28 16:44:02 2021
Results reported at Tue Sep 28 16:44:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1400 338.971 -36.4605 602208001 602467201 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

