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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1540
RA = 338.971, Dec = -36.4605
tmin = 638496001, tmax = 638755201
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='394994', job_status='RUN', time_executed='2021-09-28 16:32:15.341534', time_epoch_executed='1632871935.34' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394994/ft1_4FGL_J2235.8-3627_daily_bin1540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394994/ft2_4FGL_J2235.8-3627_daily_bin1540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394994/ft1_4FGL_J2235.8-3627_daily_bin1540.fits outfile=/scratch/kocevski/394994/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1540.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=638496001.0 tmax=638755201.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 4.63
user 4.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394994/ft2_4FGL_J2235.8-3627_daily_bin1540.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/394994/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1540.fits evtable="EVENTS" outfile="/scratch/kocevski/394994/ft1_filtered_4FGL_J2235.8-3627_daily_bin1540.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.53
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394994/ft1_filtered_4FGL_J2235.8-3627_daily_bin1540.fits" evtable="EVENTS" scfile=/scratch/kocevski/394994/ft2_4FGL_J2235.8-3627_daily_bin1540.fits sctable="SC_DATA" outfile=/scratch/kocevski/394994/ltcube_638496001_638755201_4FGL_J2235.8-3627_daily_bin1540.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/394994/ft2_4FGL_J2235.8-3627_daily_bin1540.fits
.....................!
real 11.97
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394994/ft1_filtered_4FGL_J2235.8-3627_daily_bin1540.fits evtable="EVENTS" scfile=/scratch/kocevski/394994/ft2_4FGL_J2235.8-3627_daily_bin1540.fits sctable="SC_DATA" expcube=/scratch/kocevski/394994/ltcube_638496001_638755201_4FGL_J2235.8-3627_daily_bin1540.fits outfile=/scratch/kocevski/394994/expmap_638496001_638755201_4FGL_J2235.8-3627_daily_bin1540.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/394994/ltcube_638496001_638755201_4FGL_J2235.8-3627_daily_bin1540.fits
.....................!
real 189.98
user 185.26
sys 4.22

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/394994/ft1_filtered_4FGL_J2235.8-3627_daily_bin1540.fits scfile=/scratch/kocevski/394994/ft2_4FGL_J2235.8-3627_daily_bin1540.fits outfile=/scratch/kocevski/394994/cmap_638496001_638755201_4FGL_J2235.8-3627_daily_bin1540.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394994/ft1_filtered_4FGL_J2235.8-3627_daily_bin1540.fits scfile=/scratch/kocevski/394994/ft2_4FGL_J2235.8-3627_daily_bin1540.fits outfile=/scratch/kocevski/394994/cmap_HighResolution_638496001_638755201_4FGL_J2235.8-3627_daily_bin1540.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394994/ft1_filtered_4FGL_J2235.8-3627_daily_bin1540.fits evtable="EVENTS" scfile=/scratch/kocevski/394994/ft2_4FGL_J2235.8-3627_daily_bin1540.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394994/Model_4FGL_J2235.8-3627_daily_bin1540.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/394994/ft1_filtered_4FGL_J2235.8-3627_daily_bin1540.fits.....................!
real 50.10
user 48.65
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75337E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2799       1.0000         .10000E-03   10000.    
     3 'norm      '    13.090       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8130       1.0000         .10000E-03   10000.    
     5 'norm      '    .62554       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8651       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.573       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1548       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10997E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.364       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7875       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8926       1.0000         .10000E-03   10000.    
    22 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.0644       1.0000         .10000E-03   10000.    
    24 'norm      '    8.5972       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.1117       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4143       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2296       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60616       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=   6414.196     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3153 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99499E-01    6.1789       -.17554E-06    .11382E-04
   2  Prefactor     7.2731        7.8251        .46335E-07    .28312E-04
   3  norm          13.086        7.8660        .23187E-08    .22076E-04
   4  norm          6.8145        5.3374       -.30433E-07    .16722E-04
   5  norm          .62555        .30688        .29948E-08   -.22726E-05
   6  Prefactor     8.5613        8.2655        .76157E-06   -.39556E-05
   7  Prefactor     .10000E-03    1.0003       -.42430E-07** at limit **
   8  norm          .10000E-03    7.8739       -.35048E-07** at limit **
   9  Prefactor     .10000E-03    11.998        .19254E-07** at limit **
  10  Prefactor     6.8727        14.911        .41520E-06   -.22404E-05
  11  Prefactor     .10000E-03    4.0865       -.34564E-07** at limit **
  12  norm          .10000E-03    .75256       -.20093E-07** at limit **
  13  Prefactor     .10000E-03    24.661        .75544E-07** at limit **
  14  Prefactor     23.579        11.114        .42217E-07    .14384E-04
  15  Prefactor     4.1563        6.6300        .18331E-06   -.33042E-06
  16  norm          1.0779        3.8730        .47957E-06   -.20217E-04
  17  Prefactor     .10000E-03    14.419       -.24740E-06** at limit **
  18  Prefactor     19.365        13.816       -.25601E-06    .58883E-04
  19  norm          2.7862        1.0287       -.52779E-07    .32996E-03
  20  Prefactor     .10000E-03    17.502        .20566E-06** at limit **
  21  Prefactor     3.9013        8.4330        .28393E-05   -.72154E-05
  22  norm          .10000E-03    13.533        .75859E-07** at limit **
  23  norm          5.0646        5.0013       -.16839E-06    .23835E-04
  24  norm          8.6009        9.4042        .57768E-06    .70408E-04
  25  Prefactor     .10000E-03    16.561       -.14336E-06** at limit **
  26  Prefactor     7.1349        81.978       -.62753E-05    .29624E-05
  27  norm          1.4145        2.5650        .14533E-06    .14042E-04
  28  Normalizat    1.2291        .17540       -.97777E-06    .21566E-04
  29  Prefactor     .60656        .15562        .99042E-06    .65590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0994994
  Prefactor  = 7.27308
  norm       = 13.0864
  norm       = 6.81454
  norm       = 0.62555
  Prefactor  = 8.56128
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.87271
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5794
  Prefactor  = 4.15628
  norm       = 1.07791
  Prefactor  = 0.0001
  Prefactor  = 19.3652
  norm       = 2.78616
  Prefactor  = 0.0001
  Prefactor  = 3.90128
  norm       = 0.0001
  norm       = 5.06457
  norm       = 8.60088
  Prefactor  = 0.0001
  Prefactor  = 7.13494
  norm       = 1.41445
  Normalizat = 1.2291
  Prefactor  = 0.606557
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.196     FROM HESSE     STATUS=OK           569 CALLS     3722 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99499E-01    8.1120        .55691E-01   -1.5645    
   2  Prefactor     7.2731        7.8369        .14866E-03   -1.5169    
   3  norm          13.086        7.8658        .11071E-03   -1.4984    
   4  norm          6.8145        5.3352        .14916E-03   -1.5186    
   5  norm          .62555        .30895        .28858E-04   -1.5550    
   6  Prefactor     8.5613        8.2618        .68507E-03   -1.5123    
   7  Prefactor     .10000E-03    1.0063        .78205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.8828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8727        14.916        .15313E-03   -1.5184    
  11  Prefactor     .10000E-03    4.0876        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .75889        .67835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.579        11.139        .82502E-04   -1.4736    
  15  Prefactor     4.1563        6.6272        .19774E-03   -1.5300    
  16  norm          1.0779        3.7647        .26400E-03   -1.5500    
  17  Prefactor     .10000E-03    14.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.365        14.161        .91018E-04   -1.4828    
  19  norm          2.7862        1.0616        .37673E-04   -1.5374    
  20  Prefactor     .10000E-03    17.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9013        8.5160        .10225E-02   -1.5313    
  22  norm          .10000E-03    13.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.0646        5.0010        .16294E-03   -1.5258    
  24  norm          8.6009        9.4139        .13671E-03   -1.5121    
  25  Prefactor     .10000E-03    16.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.1349        82.751        .15042E-03   -1.5174    
  27  norm          1.4145        2.5267        .15804E-03   -1.5470    
  28  Normalizat    1.2291        .20701        .22171E-03   -.85708    
  29  Prefactor     .60656        .18285        .28658E-03   -1.0731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1042e-10
Minuit parameter uncertainties:
  1  1.79617
  2  7.83802
  3  7.86643
  4  5.33557
  5  0.308954
  6  8.26294
  7  1.26949e-06
  8  2.752e-06
  9  4.39589e-06
  10  14.924
  11  2.17108e-06
  12  6.52338e-07
  13  1.35709e-05
  14  11.1403
  15  6.62834
  16  3.7655
  17  9.26824e-06
  18  14.1638
  19  1.06162
  20  7.10248e-06
  21  8.51869
  22  8.28038e-06
  23  5.00145
  24  9.41557
  25  1.07814e-05
  26  48.6818
  27  2.52692
  28  0.207146
  29  0.183028
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  6.873e+00  1.492e+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:  6.066e-01  1.830e-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.229e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394994/likelihoodResults_638496001_638755201_4FGL_J2235.8-3627_daily_bin1540.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) = 6413.90216065
delta logL = 0.293468834261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6413.89604728
delta logL = 0.299582202784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2332       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1844       1.0000          .0000       10.000    
     3 'Normalizat'    1.2049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61870       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=   6413.896     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      294 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2319        12.859        .19131E-03   -.58093E-03
   2  Index         3.1848        1.7124        .85824E-02   -.11960E-03
   3  Normalizat    1.2049        .19319        .22354E-03   -.44824E-03
   4  Prefactor     .61871        .17883        .28390E-03   -.27658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23189
  Index      = 3.18477
  Normalizat = 1.20487
  Prefactor  = 0.618708
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.896     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2319        9.2262        .76526E-05   -1.5297    
   2  Index         3.1848        1.2409        .34330E-03   -.37153    
   3  Normalizat    1.2049        .19298        .44709E-04   -.86452    
   4  Prefactor     .61871        .17868        .11356E-04   -1.0680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0471e-10
Minuit parameter uncertainties:
  1  9.22927
  2  1.25603
  3  0.193091
  4  0.178841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394994': 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) = 6413.89604723
delta logL = 0.299582253059

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.232e+00  9.229e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.185e+00  1.256e+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:  6.187e-01  1.788e-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.205e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/394994/cmap_HighResolution_638496001_638755201_4FGL_J2235.8-3627_daily_bin1540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-28 16:45:13.787962', job_id='394994', GAL2='0.62', fit_tolerance='1e-08', EG2='1.20', EG='1.23', time_epoch_completed='1632872713.79', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='3.00e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1540' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 394994: <4FGL_J2235.8-3627_daily_bin1540> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1540 338.971 -36.4605 638496001 638755201 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 :                                   770.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

