/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 189 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2235.1-0623_daily_bin368
RA = 338.799, Dec = -6.3955
tmin = 334713601, tmax = 334972801
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='374273', job_status='RUN', time_executed='2021-09-28 15:28:44.979626', time_epoch_executed='1632868124.98' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374273

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374273/ft1_4FGL_J2235.1-0623_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374273/ft1_4FGL_J2235.1-0623_daily_bin368.fits outfile=/scratch/kocevski/374273/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin368.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=334713601.0 tmax=334972801.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.54
user 3.33
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.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/374273/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin368.fits evtable="EVENTS" outfile="/scratch/kocevski/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/374273/ltcube_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.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/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits
.....................!
real 11.91
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/374273/ltcube_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.fits outfile=/scratch/kocevski/374273/expmap_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.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/374273/ltcube_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.fits
.....................!
real 191.10
user 185.05
sys 5.67

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

Setting source of interest to:
4FGL J2235.1-0623 @ 338.799 -6.3955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.fits scfile=/scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits outfile=/scratch/kocevski/374273/cmap_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.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.799 yref=-6.3955 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.fits scfile=/scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits outfile=/scratch/kocevski/374273/cmap_HighResolution_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.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.799 yref=-6.3955 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/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374273/Model_4FGL_J2235.1-0623_daily_bin368.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/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.fits.....................!
real 47.90
user 46.55
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.fits', '/scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits', expMap='/scratch/kocevski/374273/expmap_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.fits', expCube='/scratch/kocevski/374273/ltcube_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/374273/Model_4FGL_J2235.1-0623_daily_bin368.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.1-0623'

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/374273/ft1_filtered_4FGL_J2235.1-0623_daily_bin368.fits
Spacecraft file(s): /scratch/kocevski/374273/ft2_4FGL_J2235.1-0623_daily_bin368.fits
Exposure map: /scratch/kocevski/374273/expmap_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.fits
Exposure cube: /scratch/kocevski/374273/ltcube_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/374273/Model_4FGL_J2235.1-0623_daily_bin368.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) = 4825.81204522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .84463E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.716       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.038       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3442       1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.149       1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.817       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6404       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97779E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10886E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71768       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0990       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4825.772     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2028 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.650        1.3229       -.29403E-06    .13499E-02
   2  Prefactor     .10000E-03    381.88        .59199E-05** at limit **
   3  Prefactor     .10000E-03    8.1603        .13849E-04** at limit **
   4  Prefactor     30.724        1.4450        .59620E-09    .18990E-03
   5  Prefactor     .10000E-03    5.2456        .38490E-06** at limit **
   6  Prefactor     10.035        1.4499       -.32187E-06    .12442E-02
   7  Prefactor     .10000E-03    47.728        .11753E-04** at limit **
   8  Prefactor     .10000E-03    2.0806       -.32473E-06** at limit **
   9  Prefactor     .10001E-03    36.641       -.10828E-04** at limit **
  10  norm          8.3423        5.0725       -.32413E-05   -.13096E-03
  11  Prefactor     55.125        2.6614       -.63258E-06    .69099E-02
  12  norm          .10000E-03    1.7661        .44887E-06** at limit **
  13  Prefactor     .10000E-03    6.6984       -.11199E-05** at limit **
  14  norm          .10000E-03    .38721        .61635E-06** at limit **
  15  Prefactor     56.823        1.0822       -.45944E-07    .39128E-03
  16  Prefactor     6.6375        1.0958        .30013E-06   -.82411E-04
  17  Prefactor     .10000E-03    8.1810       -.15287E-04** at limit **
  18  norm          .10000E-03    3.8295       -.41835E-06** at limit **
  19  Prefactor     .11327E-03    3.9179       -.16905E-05** at limit **
  20  Prefactor     .10001E-03    29.091        .37799E-05** at limit **
  21  Normalizat    .71745        .26451        .27072E-05   -.17733E-04
  22  Prefactor     1.0993        .17527       -.19419E-06    .36866E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.65
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 30.7238
  Prefactor  = 0.0001
  Prefactor  = 10.0355
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 8.34225
  Prefactor  = 55.1247
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 56.8231
  Prefactor  = 6.63753
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000113273
  Prefactor  = 0.000100007
  Normalizat = 0.71745
  Prefactor  = 1.09929
 **********
 **   18 **HESSE 
 **********

 FCN=   4825.772     FROM HESSE     STATUS=OK           390 CALLS     2418 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.650        10.251        .29340E-02   -1.5025    
   2  Prefactor     .10000E-03    10.398        .94369E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.724        20.443        .18074E-02   -1.4599    
   5  Prefactor     .10000E-03    5.2423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.035        10.766        .31618E-02   -1.5074    
   7  Prefactor     .10000E-03    48.073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    36.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3423        5.1784        .34696E-02   -1.5130    
  11  Prefactor     55.125        90.308        .13504E-02   -1.4222    
  12  norm          .10000E-03    .86784        .21720E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .38800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.823        40.125        .13305E-02   -1.4199    
  16  Prefactor     6.6375        13.775        .38931E-02   -1.5193    
  17  Prefactor     .10000E-03    8.1577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.8244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11327E-03    464.94        .10389E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    28.667        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71745        .24350        .75540E-01   -1.0321    
  22  Prefactor     1.0993        .15388        .37623E-01   -.89489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41073e-07
Minuit parameter uncertainties:
  1  10.2528
  2  0.000438837
  3  5.35887e-05
  4  20.4475
  5  4.95054e-05
  6  10.7678
  7  0.000735604
  8  1.34902e-05
  9  0.00146499
  10  5.17867
  11  90.5337
  12  1.50155e-05
  13  0.000177086
  14  1.2084e-05
  15  40.1444
  16  13.7814
  17  0.000108652
  18  3.24123e-05
  19  0.158356
  20  0.000880028
  21  0.243866
  22  0.153944
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  5.512e+01  9.053e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.099e+00  1.539e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  7.175e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374273/likelihoodResults_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.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) = 4825.56178081
delta logL = 0.210143243401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4825.55344045
delta logL = 0.218483595595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.415       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8282       1.0000          .0000       10.000    
     3 'Normalizat'    .68997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1086       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4825.553     FROM MIGRAD    STATUS=FAILED        91 CALLS      313 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.415        83.165        .76513E-04   -.56462E-05
   2  Index         2.8282        1.4249        .66690E-02    .47040E-03
   3  Normalizat    .68952        .26926        .34044E-03   -.40974E-04
   4  Prefactor     1.1089        .17700        .18217E-03   -.37444E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4825.553     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      387 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.415        83.165        .46870E-03   -1.4660    
   2  Index         2.8282        1.4249        .10309E-02   -.44933    
   3  Normalizat    .68952        .26926        .36843E-03   -1.0431    
   4  Prefactor     1.1089        .17700        .22832E-03   -.89183    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4825.553     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      415 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.415        63.609        .30605E-05   -.22288E-05
   2  Index         2.8282        1.0940        .13338E-02    .15001E-05
   3  Normalizat    .68952        .26806        .13618E-04   -.16697E-06
   4  Prefactor     1.1089        .17647        .72868E-05   -.31204E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4151
  Index      = 2.8282
  Normalizat = 0.68952
  Prefactor  = 1.10887
 **********
 **   18 **HESSE 
 **********

 FCN=   4825.553     FROM HESSE     STATUS=OK            23 CALLS      438 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.415        61.569        .61210E-06   -1.4660    
   2  Index         2.8282        1.0557        .53352E-04   -.44933    
   3  Normalizat    .68952        .26753        .27235E-05   -1.0431    
   4  Prefactor     1.1089        .17605        .14574E-05   -.89183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21372e-13
Minuit parameter uncertainties:
  1  61.7117
  2  1.06566
  3  0.268038
  4  0.176139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374273': 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) = 4825.55343887
delta logL = 0.218485180793

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  2.742e+01  6.171e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.828e+00  1.066e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.109e+00  1.761e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  6.895e-01  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
Ra Dec: 338.799 -6.396

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/374273/cmap_HighResolution_334713601_334972801_4FGL_J2235.1-0623_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-28 15:37:34.612597', job_id='374273', GAL2='1.11', fit_tolerance='1e-08', EG2='0.69', EG='0.72', time_epoch_completed='1632868654.61', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.18e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='368' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:37:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 374273: <4FGL_J2235.1-0623_daily_bin368> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin368> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:25:26 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:25:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:25:27 2021
Terminated at Tue Sep 28 15:37:35 2021
Results reported at Tue Sep 28 15:37:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin368 338.799 -6.3955 334713601 334972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.1-0623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   529.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

