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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1078
RA = 338.971, Dec = -36.4605
tmin = 518745601, tmax = 519004801
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='393544', job_status='RUN', time_executed='2021-09-28 16:28:26.692223', time_epoch_executed='1632871706.69' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393544/ft1_4FGL_J2235.8-3627_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393544/ft2_4FGL_J2235.8-3627_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393544/ft1_4FGL_J2235.8-3627_daily_bin1078.fits outfile=/scratch/kocevski/393544/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1078.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=518745601.0 tmax=519004801.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.30
user 4.10
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/393544/ft2_4FGL_J2235.8-3627_daily_bin1078.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/393544/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1078.fits evtable="EVENTS" outfile="/scratch/kocevski/393544/ft1_filtered_4FGL_J2235.8-3627_daily_bin1078.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/393544/ft1_filtered_4FGL_J2235.8-3627_daily_bin1078.fits" evtable="EVENTS" scfile=/scratch/kocevski/393544/ft2_4FGL_J2235.8-3627_daily_bin1078.fits sctable="SC_DATA" outfile=/scratch/kocevski/393544/ltcube_518745601_519004801_4FGL_J2235.8-3627_daily_bin1078.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/393544/ft2_4FGL_J2235.8-3627_daily_bin1078.fits
.....................!
real 11.91
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393544/ft1_filtered_4FGL_J2235.8-3627_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/393544/ft2_4FGL_J2235.8-3627_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/393544/ltcube_518745601_519004801_4FGL_J2235.8-3627_daily_bin1078.fits outfile=/scratch/kocevski/393544/expmap_518745601_519004801_4FGL_J2235.8-3627_daily_bin1078.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/393544/ltcube_518745601_519004801_4FGL_J2235.8-3627_daily_bin1078.fits
.....................!
real 190.98
user 186.18
sys 4.47

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/393544/ft1_filtered_4FGL_J2235.8-3627_daily_bin1078.fits scfile=/scratch/kocevski/393544/ft2_4FGL_J2235.8-3627_daily_bin1078.fits outfile=/scratch/kocevski/393544/cmap_518745601_519004801_4FGL_J2235.8-3627_daily_bin1078.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/393544/ft1_filtered_4FGL_J2235.8-3627_daily_bin1078.fits scfile=/scratch/kocevski/393544/ft2_4FGL_J2235.8-3627_daily_bin1078.fits outfile=/scratch/kocevski/393544/cmap_HighResolution_518745601_519004801_4FGL_J2235.8-3627_daily_bin1078.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/393544/ft1_filtered_4FGL_J2235.8-3627_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/393544/ft2_4FGL_J2235.8-3627_daily_bin1078.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/393544/Model_4FGL_J2235.8-3627_daily_bin1078.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/393544/ft1_filtered_4FGL_J2235.8-3627_daily_bin1078.fits.....................!
real 39.92
user 38.50
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11267E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.485       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8697       1.0000         .10000E-03   10000.    
     4 'norm      '    13.917       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5183       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17181E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.044       1.0000         .10000E-03   10000.    
     8 'norm      '    32.056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20962E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46441E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.306       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5337       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19494E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3482       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8539       1.0000         .10000E-03   10000.    
    16 'norm      '    5.7314       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.715       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.011       1.0000         .10000E-03   10000.    
    19 'norm      '    .64092       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39997E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.187       1.0000         .10000E-03   10000.    
    22 'norm      '    36.296       1.0000         .10000E-03   10000.    
    23 'norm      '    14.113       1.0000         .10000E-03   10000.    
    24 'norm      '    17.883       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .27888E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9291       1.0000         .10000E-03   10000.    
    27 'norm      '    .76823E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.7042       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .18440       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=   4668.827     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     3295 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0985        .24634E-07** at limit **
   2  Prefactor     11.409        9.6072       -.12718E-06    .12572E-05
   3  norm          6.8765        6.5613       -.94794E-07   -.16083E-04
   4  norm          13.861        7.9758       -.79727E-07   -.52681E-04
   5  norm          1.5188        .54153       -.17457E-07   -.33741E-04
   6  Prefactor     .10000E-03    10.158       -.35340E-07** at limit **
   7  Prefactor     11.040        5.4667       -.47564E-07   -.27945E-04
   8  norm          31.785        23.122       -.26788E-06   -.23557E-06
   9  Prefactor     .10000E-03    25.456       -.19178E-06** at limit **
  10  Prefactor     .10000E-03    8.9149       -.88473E-07** at limit **
  11  Prefactor     15.247        36.405       -.17448E-05   -.43217E-04
  12  norm          1.5346        1.6783       -.56399E-07    .83428E-04
  13  Prefactor     .10000E-03    25.926        .27303E-06** at limit **
  14  Prefactor     9.1031        15.264       -.17875E-05   -.10146E-03
  15  Prefactor     5.9116        10.036        .75202E-07   -.16145E-04
  16  norm          5.6754        5.3629       -.18447E-06    .15496E-03
  17  Prefactor     15.589        36.020       -.27261E-05    .11707E-03
  18  Prefactor     12.601        25.692        .69040E-05   -.33561E-03
  19  norm          .63449        1.5990       -.15248E-05   -.12292E-02
  20  Prefactor     .10000E-03    32.544       -.29683E-06** at limit **
  21  Prefactor     9.4985        16.202        .17048E-07    .12990E-03
  22  norm          36.183        27.561        .13842E-05    .17997E-03
  23  norm          14.097        7.8565       -.13385E-06    .69967E-05
  24  norm          17.701        13.120       -.22568E-06   -.18923E-04
  25  Prefactor     .10000E-03    28.723        .11795E-06** at limit **
  26  Prefactor     2.7947        373.57       -.93405E-06   -.14970E-05
  27  norm          .10000E-03    3.5476        .16340E-06** at limit **
  28  Normalizat    1.7047        .32194       -.16546E-05    .37335E-05
  29  Prefactor     .18601        .27958        .51922E-05    .57850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.4088
  norm       = 6.87655
  norm       = 13.8613
  norm       = 1.51876
  Prefactor  = 0.0001
  Prefactor  = 11.0396
  norm       = 31.7852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2472
  norm       = 1.53457
  Prefactor  = 0.0001
  Prefactor  = 9.10312
  Prefactor  = 5.91161
  norm       = 5.67538
  Prefactor  = 15.5891
  Prefactor  = 12.6006
  norm       = 0.634489
  Prefactor  = 0.0001
  Prefactor  = 9.49852
  norm       = 36.1832
  norm       = 14.0974
  norm       = 17.7009
  Prefactor  = 0.0001
  Prefactor  = 2.79466
  norm       = 0.000100001
  Normalizat = 1.70472
  Prefactor  = 0.18601
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.827     FROM HESSE     STATUS=OK           567 CALLS     3862 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1126        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.409        9.5485        .11821E-03   -1.5032    
   3  norm          6.8765        6.5399        .15307E-03   -1.5183    
   4  norm          13.861        8.0262        .10737E-03   -1.4963    
   5  norm          1.5188        .54418        .27316E-04   -1.5461    
   6  Prefactor     .10000E-03    10.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.040        5.4850        .10715E-03   -1.5043    
   8  norm          31.785        23.078        .70771E-04   -1.4580    
   9  Prefactor     .10000E-03    25.462        .20186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9183        .19924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.247        36.918        .99186E-04   -1.4927    
  12  norm          1.5346        1.6832        .90013E-04   -1.5460    
  13  Prefactor     .10000E-03    25.941        .20252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1031        15.216        .13108E-03   -1.5104    
  15  Prefactor     5.9116        10.001        .16598E-03   -1.5222    
  16  norm          5.6754        5.3262        .13692E-03   -1.5231    
  17  Prefactor     15.589        35.680        .95158E-04   -1.4918    
  18  Prefactor     12.601        26.314        .60369E-03   -1.4998    
  19  norm          .63449        1.5268        .74118E-04   -1.5549    
  20  Prefactor     .10000E-03    32.561        .21264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.4985        16.014        .12554E-03   -1.5091    
  22  norm          36.183        27.699        .33261E-03   -1.4504    
  23  norm          14.097        7.6507        .10662E-03   -1.4957    
  24  norm          17.701        13.103        .94710E-04   -1.4866    
  25  Prefactor     .10000E-03    28.783        .19906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.7947        377.98        .20352E-03   -1.5374    
  27  norm          .10000E-03    12.538        .24142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.7047        .29201        .21386E-03   -.72177    
  29  Prefactor     .18601        .23909        .52550E-03   -1.2972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35557e-09
Minuit parameter uncertainties:
  1  4.05405e-06
  2  9.54982
  3  6.54055
  4  8.02678
  5  0.544177
  6  1.61461e-05
  7  5.48525
  8  23.0849
  9  1.56807e-05
  10  2.54835e-05
  11  36.9732
  12  1.68329
  13  2.06834e-05
  14  15.2227
  15  10.0039
  16  5.32662
  17  35.7286
  18  26.3386
  19  1.52688
  20  8.92039e-06
  21  16.0215
  22  27.7089
  23  7.65128
  24  13.1046
  25  2.32005e-05
  26  65.427
  27  0.000173159
  28  0.292305
  29  0.240355
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.548e-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:  1.860e-01  2.404e-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.705e+00  2.923e-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: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393544/likelihoodResults_518745601_519004801_4FGL_J2235.8-3627_daily_bin1078.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) = 4668.82724909
delta logL = -0.000524069543644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4668.82672501
delta logL = 8.85211193236e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2227       1.0000          .0000       10.000    
     3 'Normalizat'    1.7047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .18601       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=   4668.827     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10052E-03    239.01        .18142E-02** at limit **
   2  Index         2.1667        5.9120        .50000        .47535E-05
   3  Normalizat    1.7047        .28489E-01    .21386E-03   -.29769E-05
   4  Prefactor     .18601        .25253E-01    .52551E-03   -.10601E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100522
  Index      = 2.16671
  Normalizat = 1.70472
  Prefactor  = 0.186008
 **********
 **   18 **HESSE 
 **********

 FCN=   4668.827     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10052E-03    922.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1667        8.7546        .50000       -.60245    
   3  Normalizat    1.7047        .63727E-01    .85544E-05   -.72177    
   4  Prefactor     .18601        .56469E-01    .21020E-04   -1.2972    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56312e-08
Minuit parameter uncertainties:
  1  0.0445903
  2  2115.13
  3  0.0637298
  4  0.0564857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393544': 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): 102
logL (Free Index) = 4668.82672497
delta logL = 5.58329702471e-08

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.005e-04  4.459e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.167e+00  2.115e+03  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.860e-01  5.649e-02  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.705e+00  6.373e-02  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/393544/cmap_HighResolution_518745601_519004801_4FGL_J2235.8-3627_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-28 16:39:31.147674', job_id='393544', GAL2='0.19', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1632872371.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.19', dlogl='5.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1078' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:39:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 393544: <4FGL_J2235.8-3627_daily_bin1078> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1078> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 16:25:32 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:25:33 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:33 2021
Terminated at Tue Sep 28 16:39:31 2021
Results reported at Tue Sep 28 16:39:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1078 338.971 -36.4605 518745601 519004801 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 :                                   652.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            839 sec.

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

