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


Performing analysis on: 4FGL_J2349.2+4535_daily_bin1249
RA = 357.305, Dec = 45.5979
tmin = 563068801, tmax = 563328001
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='146732', job_status='RUN', time_executed='2021-09-30 06:25:59.407175', time_epoch_executed='1633008359.41' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146732/ft1_4FGL_J2349.2+4535_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146732/ft1_4FGL_J2349.2+4535_daily_bin1249.fits outfile=/scratch/kocevski/146732/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1249.fits ra=357.305 dec=45.5979 rad=12.0 tmin=563068801.0 tmax=563328001.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.28
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.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/146732/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/146732/ltcube_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.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/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits
.....................!
real 12.65
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/146732/ltcube_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.fits outfile=/scratch/kocevski/146732/expmap_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.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/146732/ltcube_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.fits
.....................!
real 191.69
user 186.35
sys 4.87

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 180 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2349.2+4535 @ 357.305 45.5979

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.fits scfile=/scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits outfile=/scratch/kocevski/146732/cmap_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.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=357.305 yref=45.5979 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.fits scfile=/scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits outfile=/scratch/kocevski/146732/cmap_HighResolution_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.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=357.305 yref=45.5979 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146732/Model_4FGL_J2349.2+4535_daily_bin1249.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.fits.....................!
real 133.87
user 132.38
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.fits', '/scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits', expMap='/scratch/kocevski/146732/expmap_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.fits', expCube='/scratch/kocevski/146732/ltcube_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/146732/Model_4FGL_J2349.2+4535_daily_bin1249.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.2+4535'

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  5.568e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/146732/ft1_filtered_4FGL_J2349.2+4535_daily_bin1249.fits
Spacecraft file(s): /scratch/kocevski/146732/ft2_4FGL_J2349.2+4535_daily_bin1249.fits
Exposure map: /scratch/kocevski/146732/expmap_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.fits
Exposure cube: /scratch/kocevski/146732/ltcube_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/146732/Model_4FGL_J2349.2+4535_daily_bin1249.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) = 10687.629372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33603       1.0000         .10000E-03   10000.    
     3 'norm      '    9.5267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11303E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12513       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11264E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4975       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5315       1.0000         .10000E-03   10000.    
    13 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.544       1.0000         .10000E-03   10000.    
    16 'norm      '    13.701       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5743       1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.809       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3885       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10687.62     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2287 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.628       -.10883E-06** at limit **
   2  Prefactor     .30608        15.632        .45184E-06   -.73588E-04
   3  norm          9.4978        23.518       -.69662E-06   -.65871E-04
   4  Prefactor     .10000E-03    15.350       -.74612E-06** at limit **
   5  norm          2.7355        2.1406        .16869E-07   -.41848E-04
   6  Prefactor     .17571        1.7762       -.78170E-07    .48439E-04
   7  Prefactor     .10000E-03    7.8652       -.24304E-08** at limit **
   8  Prefactor     .10000E-03    27.683        .18226E-06** at limit **
   9  Prefactor     .10000E-03    24.857       -.34901E-06** at limit **
  10  Prefactor     4.4971        3.9635       -.98660E-06    .35692E-03
  11  Prefactor     .93464E-02    25.730       -.32564E-06    .16414E-04
  12  Prefactor     7.5622        12.166        .62245E-06    .10719E-03
  13  norm          .10000E-03    3.0334        .86430E-08** at limit **
  14  norm          .10000E-03    .90822        .32072E-07** at limit **
  15  Prefactor     12.536        12.732       -.19352E-06   -.38311E-04
  16  norm          13.704        8.6192       -.42425E-07   -.21232E-04
  17  Prefactor     5.5819        54.479       -.16587E-05   -.28426E-04
  18  Prefactor     58.283        69.528        .11559E-05   -.11817E-05
  19  Prefactor     14.815        11.475       -.84968E-06   -.31877E-03
  20  Normalizat    1.3881        .23324        .52868E-06   -.19582E-04
  21  Prefactor     .82870        .61225E-01   -.14483E-06    .50395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.306081
  norm       = 9.49777
  Prefactor  = 0.0001
  norm       = 2.73555
  Prefactor  = 0.175713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49706
  Prefactor  = 0.00934644
  Prefactor  = 7.56216
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.536
  norm       = 13.7043
  Prefactor  = 5.58186
  Prefactor  = 58.2834
  Prefactor  = 14.8149
  Normalizat = 1.38807
  Prefactor  = 0.8287
 **********
 **   18 **HESSE 
 **********

 FCN=   10687.62     FROM HESSE     STATUS=OK           339 CALLS     2626 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .30608        18.513        .11886       -1.5597    
   3  norm          9.4978        23.523        .12984E-03   -1.5091    
   4  Prefactor     .10000E-03    15.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7355        2.1397        .12972E-03   -1.5377    
   6  Prefactor     .17571        20.382        .26007E-02   -1.5624    
   7  Prefactor     .10000E-03    7.8720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4971        4.1069        .94925E-03   -1.5284    
  11  Prefactor     .93464E-02    25.544        .16343       -1.5689    
  12  Prefactor     7.5622        12.336        .14613E-03   -1.5158    
  13  norm          .10000E-03    3.0355        .17584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .92180        .96158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.536        12.746        .11310E-03   -1.5000    
  16  norm          13.704        8.6213        .10821E-03   -1.4967    
  17  Prefactor     5.5819        55.233        .17016E-03   -1.5235    
  18  Prefactor     58.283        70.117        .52543E-04   -1.4180    
  19  Prefactor     14.815        11.885        .10408E-03   -1.4938    
  20  Normalizat    1.3881        .26232        .40724E-03   -.80974    
  21  Prefactor     .82870        .68436E-01    .14398E-03   -.98679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24179e-10
Minuit parameter uncertainties:
  1  2.52763e-05
  2  4.7616
  3  23.546
  4  9.90712e-05
  5  2.13971
  6  3.78513
  7  6.09596e-07
  8  3.56004e-05
  9  5.43156e-05
  10  4.10719
  11  0.972414
  12  12.3397
  13  5.73455e-07
  14  8.28009e-07
  15  12.7491
  16  8.62211
  17  35.1591
  18  70.2162
  19  11.8865
  20  0.262569
  21  0.0684428
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  5.582e+00  3.516e+01  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.287e-01  6.844e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.388e+00  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 357.305 45.598
Photon Flux Upper Limit: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146732/likelihoodResults_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.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) = 10687.6218252
delta logL = 0.00307038122628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10687.6215268
delta logL = 0.00336876822803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8979       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3314       1.0000          .0000       10.000    
     3 'Normalizat'    1.3866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   10687.62     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      305 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7227        59.271        .90873E-03    .20257E-04
   2  Index         2.3576        2.2186        .44990E-02    .13507E-04
   3  Normalizat    1.3870        .23738        .40737E-03    .78141E-06
   4  Prefactor     .82883        .67023E-01    .14397E-03   -.15793E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72274
  Index      = 2.35757
  Normalizat = 1.387
  Prefactor  = 0.828832
 **********
 **   18 **HESSE 
 **********

 FCN=   10687.62     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .59E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7227        53.513        .18175E-03   -1.5273    
   2  Index         2.3576        2.1188        .89979E-03   -.55682    
   3  Normalizat    1.3870        .23752        .16295E-04   -.81005    
   4  Prefactor     .82883        .67058E-01    .57588E-05   -.98674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92147e-14
Minuit parameter uncertainties:
  1  31.8305
  2  2.21844
  3  0.237709
  4  0.0670651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146732': 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) = 10687.6214501
delta logL = 0.00344547055647

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  4.723e+00  3.183e+01  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.358e+00  2.218e+00  0.000e+00  1.000e+01 (-1.000e+00)
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.288e-01  6.707e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.387e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 357.305 45.598

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/146732/cmap_HighResolution_563068801_563328001_4FGL_J2349.2+4535_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.54e-08', time_completed='2021-09-30 06:42:07.788213', job_id='146732', GAL2='0.83', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1633009327.79', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.45e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1249' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:42:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 146732: <4FGL_J2349.2+4535_daily_bin1249> in cluster <slac> Done

Job <4FGL_J2349.2+4535_daily_bin1249> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:25:47 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:25:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:25:49 2021
Terminated at Thu Sep 30 06:42:08 2021
Results reported at Thu Sep 30 06:42:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin1249 357.305 45.5979 563068801 563328001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.2+4535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   950.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

