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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1007
RA = 342.606, Dec = -42.1095
tmin = 500342401, tmax = 500601601
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='514378', job_status='RUN', time_executed='2021-09-28 22:42:22.139622', time_epoch_executed='1632894142.14' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514378/ft1_4FGL_J2250.4-4206_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514378/ft1_4FGL_J2250.4-4206_daily_bin1007.fits outfile=/scratch/kocevski/514378/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1007.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=500342401.0 tmax=500601601.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.65
user 4.39
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.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/514378/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/514378/ltcube_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.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/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits
.....................!
real 11.90
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/514378/ltcube_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.fits outfile=/scratch/kocevski/514378/expmap_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.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/514378/ltcube_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.fits
.....................!
real 191.92
user 187.02
sys 4.60

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

Setting source of interest to:
4FGL J2250.4-4206 @ 342.606 -42.1095

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.fits scfile=/scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits outfile=/scratch/kocevski/514378/cmap_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.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=342.606 yref=-42.1095 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/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.fits scfile=/scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits outfile=/scratch/kocevski/514378/cmap_HighResolution_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.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=342.606 yref=-42.1095 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/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514378/Model_4FGL_J2250.4-4206_daily_bin1007.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/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.fits.....................!
real 33.05
user 31.77
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.fits', '/scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits', expMap='/scratch/kocevski/514378/expmap_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.fits', expCube='/scratch/kocevski/514378/ltcube_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514378/Model_4FGL_J2250.4-4206_daily_bin1007.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.4-4206'

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.312e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/514378/ft1_filtered_4FGL_J2250.4-4206_daily_bin1007.fits
Spacecraft file(s): /scratch/kocevski/514378/ft2_4FGL_J2250.4-4206_daily_bin1007.fits
Exposure map: /scratch/kocevski/514378/expmap_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.fits
Exposure cube: /scratch/kocevski/514378/ltcube_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514378/Model_4FGL_J2250.4-4206_daily_bin1007.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) = 3497.33660637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    145.37       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11566E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12778E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11189E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.786       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24885E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.744       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .38393E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4348       1.0000         .10000E-03   10000.    
    28 'norm      '    .39235       1.0000         .10000E-03   10000.    
    29 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .63005       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4235       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3497.294     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     4161 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     145.40        68.219       -.19644E-05   -.13095E-04
   2  Prefactor     .10000E-03    10.025        .90948E-06** at limit **
   3  Prefactor     .10000E-03    70.595       -.49739E-05** at limit **
   4  norm          .10001E-03    7.3371       -.56043E-06** at limit **
   5  Prefactor     .10000E-03    16.466        .34478E-06** at limit **
   6  Prefactor     .10000E-03    2.8797        .30423E-06** at limit **
   7  Prefactor     .10000E-03    20.675       -.44399E-06** at limit **
   8  Prefactor     .10000E-03    2.7985        .18242E-08** at limit **
   9  Prefactor     10.756        32.423        .19905E-05    .22051E-05
  10  Prefactor     .10000E-03    99.331       -.18067E-05** at limit **
  11  Prefactor     .10000E-03    25.144       -.33968E-06** at limit **
  12  Prefactor     .10000E-03    10.886       -.20525E-06** at limit **
  13  Prefactor     .10000E-03    114.44        .39514E-05** at limit **
  14  Prefactor     39.563        27.392       -.69021E-07   -.34309E-05
  15  Prefactor     .10000E-03    4.5085       -.31305E-07** at limit **
  16  Prefactor     .10000E-03    24.507       -.48566E-06** at limit **
  17  Prefactor     .10000E-03    45.203        .91398E-06** at limit **
  18  Prefactor     .10000E-03    42.648        .91421E-06** at limit **
  19  norm          .10000E-03    12.339       -.39106E-06** at limit **
  20  norm          .10000E-03    4.6185       -.26905E-07** at limit **
  21  norm          .10000E-03    2.8339        .69342E-07** at limit **
  22  norm          .10000E-03    9.1315       -.20585E-06** at limit **
  23  Prefactor     .10000E-03    5.5106        .41113E-06** at limit **
  24  Prefactor     38.764        47.676       -.17212E-05   -.83471E-05
  25  Prefactor     .10000E-03    172.46        .12975E-05** at limit **
  26  norm          .10000E-03    2.6016        .15439E-06** at limit **
  27  Prefactor     2.4431        21.356        .42764E-05   -.12798E-04
  28  norm          .39138        1.1349        .29324E-06    .34113E-03
  29  norm          .10000E-03    2.6031        .65447E-07** at limit **
  30  Normalizat    .63032        .26741       -.15734E-05   -.25834E-04
  31  Prefactor     1.4236        .25564        .10914E-05   -.52880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 145.4
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.5633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7645
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.44307
  norm       = 0.391381
  norm       = 0.0001
  Normalizat = 0.630317
  Prefactor  = 1.42361
 **********
 **   18 **HESSE 
 **********

 FCN=   3497.294     FROM HESSE     STATUS=OK           612 CALLS     4773 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     145.40        67.913        .16710E-03   -1.3290    
   2  Prefactor     .10000E-03    10.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    46.036        .30815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.779        .19056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8055        .96600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.756        32.483        .12199E-03   -1.5052    
  10  Prefactor     .10000E-03    100.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    114.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.563        27.381        .63724E-04   -1.4449    
  15  Prefactor     .10000E-03    4.5185        .12263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.6285        .12412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8346        .97223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.1625        .17453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.5435        .13558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.764        47.682        .64393E-04   -1.4462    
  25  Prefactor     .10000E-03    172.76        .21282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.6052        .93107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.4431        21.513        .13112E-02   -1.5395    
  28  norm          .39138        1.0183        .10444E-02   -1.5583    
  29  norm          .10000E-03    2.6063        .93168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .63032        .31685        .31758E-03   -1.0671    
  31  Prefactor     1.4236        .30920        .21927E-03   -.79702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28714e-10
Minuit parameter uncertainties:
  1  67.9491
  2  4.75945e-05
  3  1.93e-05
  4  0.00154985
  5  4.61684e-05
  6  0.000267522
  7  4.82432e-06
  8  9.3835e-07
  9  32.5369
  10  0.000260851
  11  3.36821e-06
  12  2.09243e-06
  13  9.33524e-06
  14  27.3897
  15  1.68957e-06
  16  5.53283e-06
  17  3.93179e-06
  18  0.000166832
  19  2.22715e-06
  20  5.60058e-06
  21  3.92074e-06
  22  6.20009e-07
  23  9.22015e-06
  24  47.7284
  25  1.71385e-06
  26  8.61091e-06
  27  14.5059
  28  1.01831
  29  3.78245e-06
  30  0.317768
  31  0.309603
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.690e-06  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.424e+00  3.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  6.303e-01  3.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 7.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514378/likelihoodResults_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.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) = 3497.29532209
delta logL = -0.0010356300163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3497.29428635
delta logL = 1.04951141111e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0639       1.0000          .0000       10.000    
     3 'Normalizat'    .63031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4236       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+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=   3497.294     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10104E-03    48.880        .12513E-02** at limit **
   2  Index         2.0162        5.8339        .50000        .34167E-04
   3  Normalizat    .63032        .19064E-01    .31759E-03    .15285E-04
   4  Prefactor     1.4236        .19114E-01    .21927E-03    .40566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101044
  Index      = 2.01619
  Normalizat = 0.630316
  Prefactor  = 1.42361
 **********
 **   18 **HESSE 
 **********

 FCN=   3497.294     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10104E-03    202.67        .25026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0162        8.7748        .50000       -.63946    
   3  Normalizat    .63032        .40401E-01    .12703E-04   -1.0671    
   4  Prefactor     1.4236        .40505E-01    .43853E-04   -.79702    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57843e-08
Minuit parameter uncertainties:
  1  0.0291859
  2  370.947
  3  0.0404029
  4  0.0405061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514378': 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) = 3497.29428591
delta logL = 5.48456682736e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.010e-04  2.919e-02  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.016e+00  3.709e+02  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.424e+00  4.051e-02  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  6.303e-01  4.040e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.606 -42.109

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/514378/cmap_HighResolution_500342401_500601601_4FGL_J2250.4-4206_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-09-28 22:52:51.779241', job_id='514378', GAL2='1.42', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1632894771.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='5.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1007' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:52:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 514378: <4FGL_J2250.4-4206_daily_bin1007> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1007> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:38 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 22:40:41 2021
Terminated at Tue Sep 28 22:52:52 2021
Results reported at Tue Sep 28 22:52:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1007 342.606 -42.1095 500342401 500601601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.4-4206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   624.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            734 sec.

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

