/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 232 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2350.6-3005_daily_bin122
RA = 357.665, Dec = -30.087
tmin = 270950401, tmax = 271209601
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='156681', job_status='RUN', time_executed='2021-09-30 07:04:38.661926', time_epoch_executed='1633010678.66' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156681/ft1_4FGL_J2350.6-3005_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156681/ft1_4FGL_J2350.6-3005_daily_bin122.fits outfile=/scratch/kocevski/156681/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin122.fits ra=357.665 dec=-30.087 rad=12.0 tmin=270950401.0 tmax=271209601.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 1.62
user 1.43
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.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/156681/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin122.fits evtable="EVENTS" outfile="/scratch/kocevski/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/156681/ltcube_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.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/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits
.....................!
real 17.46
user 17.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/156681/ltcube_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.fits outfile=/scratch/kocevski/156681/expmap_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.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/156681/ltcube_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.fits
.....................!
real 191.60
user 186.16
sys 5.13

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

Setting source of interest to:
4FGL J2350.6-3005 @ 357.665 -30.087

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.fits scfile=/scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits outfile=/scratch/kocevski/156681/cmap_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.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.665 yref=-30.087 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.fits scfile=/scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits outfile=/scratch/kocevski/156681/cmap_HighResolution_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.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.665 yref=-30.087 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/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156681/Model_4FGL_J2350.6-3005_daily_bin122.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/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.fits.....................!
real 40.91
user 39.63
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.fits', '/scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits', expMap='/scratch/kocevski/156681/expmap_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.fits', expCube='/scratch/kocevski/156681/ltcube_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/156681/Model_4FGL_J2350.6-3005_daily_bin122.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2350.6-3005'

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  8.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.022e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/156681/ft1_filtered_4FGL_J2350.6-3005_daily_bin122.fits
Spacecraft file(s): /scratch/kocevski/156681/ft2_4FGL_J2350.6-3005_daily_bin122.fits
Exposure map: /scratch/kocevski/156681/expmap_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.fits
Exposure cube: /scratch/kocevski/156681/ltcube_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/156681/Model_4FGL_J2350.6-3005_daily_bin122.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) = 5052.78134713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.083       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2674       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.964       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.772       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0224       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6803       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4400       1.0000         .10000E-03   10000.    
    15 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    152.97       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .41835       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.234       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90842       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+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=   5052.774     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     2834 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.034        34.929        .32907E-03    .32820E-04
   2  Prefactor     .10000E-03    29.604        .18142E-02** at limit **
   3  Prefactor     .10000E-03    4.9139        .21335E-02** at limit **
   4  Prefactor     .10000E-03    6.4050        .17566E-02** at limit **
   5  Prefactor     .10000E-03    8.3365        .18142E-02** at limit **
   6  norm          .10000E-03    1.6844        .90010E-03** at limit **
   7  norm          1.2675        .76431        .47159E-04   -.29869E-03
   8  Prefactor     .10000E-03    4.9563        .15433E-02** at limit **
   9  norm          10.969        9.0978        .12099E-03   -.61356E-04
  10  norm          2.8215        6.4531        .24213E-03   -.16095E-03
  11  Prefactor     22.786        33.983        .83938E-04   -.10971E-04
  12  norm          3.0151        6.3852        .23343E-03   -.30590E-03
  13  norm          2.6775        3.4843        .13564E-03    .30173E-05
  14  Prefactor     9.4300        31.376        .13043E-03   -.23708E-04
  15  norm          .10000E-03    12.432        .26733E-02** at limit **
  16  Prefactor     153.09        105.02        .16296E-03   -.10185E-04
  17  Prefactor     .28428        59.642        .13972        .71398E-04
  18  Prefactor     .10000E-03    2.9336        .11826E-02** at limit **
  19  Prefactor     19.258        30.742        .91326E-04   -.10581E-04
  20  Normalizat    .90824        .21125        .22465E-03   -.33134E-03
  21  Prefactor     .92314        .23527        .24882E-03   -.12245E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 37.0338
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.26749
  Prefactor  = 0.0001
  norm       = 10.9687
  norm       = 2.82152
  Prefactor  = 22.7861
  norm       = 3.01514
  norm       = 2.67747
  Prefactor  = 9.43
  norm       = 0.000100002
  Prefactor  = 153.09
  Prefactor  = 0.28428
  Prefactor  = 0.0001
  Prefactor  = 19.2583
  Normalizat = 0.908238
  Prefactor  = 0.923143
 **********
 **   18 **HESSE 
 **********

 FCN=   5052.774     FROM HESSE     STATUS=OK           305 CALLS     3139 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.034        34.929        .13163E-04   -1.4490    
   2  Prefactor     .10000E-03    29.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9332        .42670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4052        .35133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6845        .18002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2675        .76431        .18864E-05   -1.5483    
   8  Prefactor     .10000E-03    4.9566        .30866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.969        9.0960        .48397E-05   -1.5045    
  10  norm          2.8215        6.4529        .96854E-05   -1.5372    
  11  Prefactor     22.786        33.996        .33575E-05   -1.4753    
  12  norm          3.0151        6.3764        .93372E-05   -1.5361    
  13  norm          2.6775        3.4834        .54257E-05   -1.5381    
  14  Prefactor     9.4300        31.374        .52174E-05   -1.5094    
  15  norm          .10000E-03    12.556        .53467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     153.09        105.03        .65184E-05   -1.3227    
  17  Prefactor     .28428        58.009        .14222       -1.5601    
  18  Prefactor     .10000E-03    2.9340        .23652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.258        30.745        .36530E-05   -1.4830    
  20  Normalizat    .90824        .21146        .44931E-04   -.96171    
  21  Prefactor     .92314        .23555        .99528E-05   -.95337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04995e-09
Minuit parameter uncertainties:
  1  34.9483
  2  2.9332e-05
  3  0.000176471
  4  1.52307e-07
  5  2.30245e-05
  6  3.2755e-06
  7  0.764319
  8  1.05545e-05
  9  9.09716
  10  6.45446
  11  34.0248
  12  6.37783
  13  3.48369
  14  31.4286
  15  0.000352559
  16  105.161
  17  8.12837
  18  3.27623e-07
  19  30.7704
  20  0.211657
  21  0.235808
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  2.843e-01  8.128e+00  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.022e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.231e-01  2.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  9.082e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 357.665 -30.087
Photon Flux Upper Limit: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156681/likelihoodResults_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.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) = 5052.76653972
delta logL = 0.00774331717184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5052.57791191
delta logL = 0.1963711252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3748       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8694       1.0000          .0000       10.000    
     3 'Normalizat'    .88785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5052.578     FROM MIGRAD    STATUS=FAILED       105 CALLS      295 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4003        61.544        .86671E-03   -.56522E-04
   2  Index         2.8688        2.3505        .68918E-02    .45932E-03
   3  Normalizat    .88723        .20923        .22688E-03    .18040E-04
   4  Prefactor     .93231        .23252        .24756E-03    .19288E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5052.578     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      382 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4003        61.544        .23054E-03   -1.5243    
   2  Index         2.8688        2.3505        .92756E-03   -.44033    
   3  Normalizat    .88723        .20923        .33768E-03   -.96910    
   4  Prefactor     .93231        .23252        .40055E-03   -.95021    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5052.578     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      417 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4003        17.800        .34668E-04   -.33121E-04
   2  Index         2.8688        1.1922        .13784E-02   -.33074E-05
   3  Normalizat    .88723        .20954        .90750E-05    .47604E-05
   4  Prefactor     .93231        .23256        .99024E-05    .52811E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.40033
  Index      = 2.86882
  Normalizat = 0.887225
  Prefactor  = 0.932309
 **********
 **   18 **HESSE 
 **********

 FCN=   5052.578     FROM HESSE     STATUS=OK            23 CALLS      440 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4003        16.821        .13867E-05   -1.5243    
   2  Index         2.8688        1.1274        .55134E-04   -.44033    
   3  Normalizat    .88723        .20934        .18150E-05   -.96910    
   4  Prefactor     .93231        .23226        .19805E-05   -.95021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00744e-12
Minuit parameter uncertainties:
  1  16.836
  2  1.13939
  3  0.209528
  4  0.232506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156681': 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) = 5052.57790549
delta logL = 0.196377547674

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  5.400e+00  1.684e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.869e+00  1.139e+00  0.000e+00  1.000e+01 (-1.000e+00)
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.323e-01  2.325e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.872e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 357.665 -30.087

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/156681/cmap_HighResolution_270950401_271209601_4FGL_J2350.6-3005_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-30 07:14:37.610102', job_id='156681', GAL2='0.93', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1633011277.61', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.96e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='122' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:14:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 156681: <4FGL_J2350.6-3005_daily_bin122> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin122> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 07:00:37 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:00:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:00:39 2021
Terminated at Thu Sep 30 07:14:38 2021
Results reported at Thu Sep 30 07:14:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin122 357.665 -30.087 270950401 271209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2350.6-3005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   597.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

