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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1423
RA = 338.971, Dec = -36.4605
tmin = 608169601, tmax = 608428801
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='394809', job_status='RUN', time_executed='2021-09-28 16:32:54.485890', time_epoch_executed='1632871974.49' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394809

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394809/ft1_4FGL_J2235.8-3627_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394809/ft2_4FGL_J2235.8-3627_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394809/ft1_4FGL_J2235.8-3627_daily_bin1423.fits outfile=/scratch/kocevski/394809/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1423.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=608169601.0 tmax=608428801.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.67
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394809/ft1_filtered_4FGL_J2235.8-3627_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/394809/ft2_4FGL_J2235.8-3627_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/394809/ltcube_608169601_608428801_4FGL_J2235.8-3627_daily_bin1423.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/394809/ft2_4FGL_J2235.8-3627_daily_bin1423.fits
.....................!
real 12.21
user 11.86
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394809/ft1_filtered_4FGL_J2235.8-3627_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/394809/ft2_4FGL_J2235.8-3627_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/394809/ltcube_608169601_608428801_4FGL_J2235.8-3627_daily_bin1423.fits outfile=/scratch/kocevski/394809/expmap_608169601_608428801_4FGL_J2235.8-3627_daily_bin1423.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/394809/ltcube_608169601_608428801_4FGL_J2235.8-3627_daily_bin1423.fits
.....................!
real 190.86
user 185.64
sys 4.72

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/394809/ft1_filtered_4FGL_J2235.8-3627_daily_bin1423.fits scfile=/scratch/kocevski/394809/ft2_4FGL_J2235.8-3627_daily_bin1423.fits outfile=/scratch/kocevski/394809/cmap_608169601_608428801_4FGL_J2235.8-3627_daily_bin1423.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394809/ft1_filtered_4FGL_J2235.8-3627_daily_bin1423.fits scfile=/scratch/kocevski/394809/ft2_4FGL_J2235.8-3627_daily_bin1423.fits outfile=/scratch/kocevski/394809/cmap_HighResolution_608169601_608428801_4FGL_J2235.8-3627_daily_bin1423.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394809/ft1_filtered_4FGL_J2235.8-3627_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/394809/ft2_4FGL_J2235.8-3627_daily_bin1423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394809/Model_4FGL_J2235.8-3627_daily_bin1423.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/394809/ft1_filtered_4FGL_J2235.8-3627_daily_bin1423.fits.....................!
real 51.11
user 49.73
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1518       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3358       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6499       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2132       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6679       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52010       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74921       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7455       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.599       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2514       1.0000         .10000E-03   10000.    
    13 'Prefactor '    95.905       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14794E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.065       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .87499       1.0000         .10000E-03   10000.    
    24 'norm      '    8.6557       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.052       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97089       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93676       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=   6771.786     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3742 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1515        4.0826        .51068E-06   -.17918E-02
   2  Prefactor     3.3358        5.6896       -.35512E-06   -.12663E-03
   3  norm          .10000E-03    1.3372       -.33998E-07** at limit **
   4  norm          2.6497        2.6859        .17789E-06   -.14101E-02
   5  norm          1.2132        .34808       -.81032E-08    .62452E-04
   6  Prefactor     3.6663        4.4361        .11749E-05   -.25816E-02
   7  Prefactor     .51980        1.4804        .20491E-06   -.28117E-03
   8  norm          .10000E-03    13.965       -.22385E-05** at limit **
   9  Prefactor     .67575        21.212       -.15749E-05    .42862E-04
  10  Prefactor     1.7442        26.497       -.90773E-06   -.53436E-04
  11  Prefactor     13.587        19.410        .30376E-05    .14576E-03
  12  norm          2.2514        2.1646       -.67033E-08   -.72329E-04
  13  Prefactor     95.905        58.471        .63696E-07   -.13901E-04
  14  Prefactor     .10000E-03    4.6995        .28350E-06** at limit **
  15  Prefactor     .10000E-03    3.1298        .13660E-06** at limit **
  16  norm          .10000E-03    1.2394       -.22036E-07** at limit **
  17  Prefactor     .10000E-03    3.9455        .46726E-07** at limit **
  18  Prefactor     .10000E-03    3.3850        .81910E-07** at limit **
  19  norm          1.3633        .51317       -.29204E-07   -.11210E-02
  20  Prefactor     39.045        43.122       -.13412E-04   -.27159E-03
  21  Prefactor     .10001E-03    4.5238        .95738E-06** at limit **
  22  norm          .10000E-03    13.439        .22307E-05** at limit **
  23  norm          .87771        2.6986        .29582E-06   -.19702E-03
  24  norm          8.6551        7.7385        .26018E-06   -.19586E-03
  25  Prefactor     .10000E-03    9.7154       -.58576E-06** at limit **
  26  Prefactor     34.048        41.015       -.25046E-05   -.54472E-04
  27  norm          .10000E-03    1.4658        .31614E-08** at limit **
  28  Normalizat    .97098        .16410        .52816E-06   -.76904E-04
  29  Prefactor     .93671        .15611       -.22687E-06    .68961E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15149
  Prefactor  = 3.33576
  norm       = 0.0001
  norm       = 2.64974
  norm       = 1.21315
  Prefactor  = 3.66635
  Prefactor  = 0.519804
  norm       = 0.0001
  Prefactor  = 0.675752
  Prefactor  = 1.74416
  Prefactor  = 13.5874
  norm       = 2.25141
  Prefactor  = 95.9048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36325
  Prefactor  = 39.0455
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 0.877712
  norm       = 8.65512
  Prefactor  = 0.0001
  Prefactor  = 34.0485
  norm       = 0.0001
  Normalizat = 0.970978
  Prefactor  = 0.936711
 **********
 **   18 **HESSE 
 **********

 FCN=   6771.786     FROM HESSE     STATUS=OK           561 CALLS     4303 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1515        4.3824        .97616E-03   -1.5353    
   2  Prefactor     3.3358        5.6701        .22161E-03   -1.5343    
   3  norm          .10000E-03    1.3384        .92930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6497        2.7369        .66219E-03   -1.5382    
   5  norm          1.2132        .34867        .24851E-04   -1.5488    
   6  Prefactor     3.6663        6.2614        .10545E-02   -1.5325    
   7  Prefactor     .51980        1.2924        .16352E-02   -1.5564    
   8  norm          .10000E-03    14.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .67575        144.25        .72657E-02   -1.5544    
  10  Prefactor     1.7442        26.438        .31744E-03   -1.5444    
  11  Prefactor     13.587        19.374        .10862E-03   -1.4971    
  12  norm          2.2514        2.1660        .10430E-03   -1.5408    
  13  Prefactor     95.905        58.774        .41043E-04   -1.3746    
  14  Prefactor     .10000E-03    29.916        .34061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1795        .14213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2506        .89433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9526        .15959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4198        .14754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3633        .50457        .34483E-04   -1.5474    
  20  Prefactor     39.045        43.885        .64129E-04   -1.4457    
  21  Prefactor     .10001E-03    12.158        .33399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .87771        2.4601        .23172E-02   -1.5521    
  24  norm          8.6551        7.7569        .68123E-03   -1.5119    
  25  Prefactor     .10000E-03    9.7244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.048        41.115        .68672E-04   -1.4540    
  27  norm          .10000E-03    1.4790        .97196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97098        .19429        .23689E-03   -.94009    
  29  Prefactor     .93671        .18543        .23689E-03   -.94870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22761e-08
Minuit parameter uncertainties:
  1  4.38288
  2  5.67099
  3  8.24062e-07
  4  2.73706
  5  0.348666
  6  6.26247
  7  1.29249
  8  8.59632e-05
  9  19.7934
  10  13.5879
  11  19.3833
  12  2.16606
  13  58.8098
  14  1.37113e-05
  15  9.0664e-07
  16  9.71536e-07
  17  4.30403e-07
  18  1.45938e-06
  19  0.504568
  20  43.9217
  21  0.000555884
  22  7.16564e-05
  23  2.46038
  24  7.75779
  25  1.95306e-05
  26  41.1489
  27  7.53824e-07
  28  0.194427
  29  0.185551
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.744e+00  1.359e+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:  9.367e-01  1.856e-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:  9.710e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394809/likelihoodResults_608169601_608428801_4FGL_J2235.8-3627_daily_bin1423.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) = 6771.59002865
delta logL = 0.195618076068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6771.57830987
delta logL = 0.207336854046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8816       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4145       1.0000          .0000       10.000    
     3 'Normalizat'    .94711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94935       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=   6771.578     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      249 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8813        26.557        .17750E-03   -.59810E-03
   2  Index         3.4146        3.6316        .83969E-02   -.14586E-03
   3  Normalizat    .94710        .19193        .23952E-03   -.29900E-03
   4  Prefactor     .94935        .18614        .23546E-03   -.21529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88129
  Index      = 3.41464
  Normalizat = 0.947102
  Prefactor  = 0.949346
 **********
 **   18 **HESSE 
 **********

 FCN=   6771.578     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8813        6.3631        .70999E-05   -1.5434    
   2  Index         3.4146        1.8115        .33588E-03   -.32264    
   3  Normalizat    .94710        .19055        .47904E-04   -.94824    
   4  Prefactor     .94935        .18496        .47092E-04   -.94438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56121e-09
Minuit parameter uncertainties:
  1  6.36535
  2  1.85874
  3  0.190682
  4  0.185087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394809': 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) = 6771.57830986
delta logL = 0.20733686748

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.881e+00  6.365e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.415e+00  1.859e+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:  9.493e-01  1.851e-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:  9.471e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/394809/cmap_HighResolution_608169601_608428801_4FGL_J2235.8-3627_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-28 16:47:01.270042', job_id='394809', GAL2='0.95', fit_tolerance='1e-08', EG2='0.95', EG='0.97', time_epoch_completed='1632872821.27', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.07e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1423' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:47:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 394809: <4FGL_J2235.8-3627_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1423 338.971 -36.4605 608169601 608428801 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 :                                   843.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

