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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1059
RA = 342.606, Dec = -42.1095
tmin = 513820801, tmax = 514080001
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='515523', job_status='RUN', time_executed='2021-09-28 22:45:29.236967', time_epoch_executed='1632894329.24' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515523

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515523/ft1_4FGL_J2250.4-4206_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515523/ft1_4FGL_J2250.4-4206_daily_bin1059.fits outfile=/scratch/kocevski/515523/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1059.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=513820801.0 tmax=514080001.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.71
user 3.50
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.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/515523/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.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/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/515523/ltcube_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.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/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits
.....................!
real 11.95
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/515523/ltcube_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.fits outfile=/scratch/kocevski/515523/expmap_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.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/515523/ltcube_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.fits
.....................!
real 191.77
user 186.80
sys 4.64

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/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.fits scfile=/scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits outfile=/scratch/kocevski/515523/cmap_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.fits scfile=/scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits outfile=/scratch/kocevski/515523/cmap_HighResolution_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.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/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515523/Model_4FGL_J2250.4-4206_daily_bin1059.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/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.fits.....................!
real 36.08
user 34.82
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.fits', '/scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits', expMap='/scratch/kocevski/515523/expmap_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.fits', expCube='/scratch/kocevski/515523/ltcube_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/515523/Model_4FGL_J2250.4-4206_daily_bin1059.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/515523/ft1_filtered_4FGL_J2250.4-4206_daily_bin1059.fits
Spacecraft file(s): /scratch/kocevski/515523/ft2_4FGL_J2250.4-4206_daily_bin1059.fits
Exposure map: /scratch/kocevski/515523/expmap_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.fits
Exposure cube: /scratch/kocevski/515523/ltcube_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/515523/Model_4FGL_J2250.4-4206_daily_bin1059.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4217.61452631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27742E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.125       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.573       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6551       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5814       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8831       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .30655E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11820E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0521       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.320       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.594       1.0000         .10000E-03   10000.    
    26 'norm      '    8.7241       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3217       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83528       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0376       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=   4217.295     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4297 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.999       -.47380E-07** at limit **
   2  Prefactor     .10001E-03    10.232        .42002E-06** at limit **
   3  Prefactor     45.121        106.79        .12293E-05   -.13321E-04
   4  norm          .10000E-03    3.3605        .18765E-08** at limit **
   5  Prefactor     .10000E-03    7.9112        .17630E-06** at limit **
   6  Prefactor     .10000E-03    4.6304        .12532E-06** at limit **
   7  Prefactor     .10000E-03    15.678        .27478E-06** at limit **
   8  Prefactor     14.059        8.4273        .24819E-06   -.60377E-04
   9  Prefactor     .10000E-03    32.538       -.61711E-06** at limit **
  10  Prefactor     43.576        32.609       -.30050E-06    .37123E-06
  11  Prefactor     16.731        33.939        .70823E-07   -.13225E-04
  12  Prefactor     9.6553        17.941       -.81413E-06   -.29073E-04
  13  Prefactor     9.5252        201.38        .14697E-04   -.22562E-04
  14  Prefactor     .10000E-03    7.4733       -.39312E-06** at limit **
  15  Prefactor     2.8824        8.1411        .35818E-05   -.82852E-04
  16  Prefactor     .10000E-03    23.130        .66408E-06** at limit **
  17  Prefactor     .10000E-03    61.510        .22475E-06** at limit **
  18  Prefactor     .10000E-03    7.3707        .27546E-06** at limit **
  19  norm          .10000E-03    14.738        .69741E-06** at limit **
  20  norm          .10000E-03    6.7937        .12113E-05** at limit **
  21  norm          .10000E-03    3.7204        .25555E-07** at limit **
  22  norm          .10000E-03    22.093       -.81141E-06** at limit **
  23  Prefactor     1.0561        15.165       -.22058E-05   -.36122E-03
  24  Prefactor     18.326        63.118       -.10283E-05    .13899E-05
  25  Prefactor     24.539        85.508        .90246E-05   -.34380E-04
  26  norm          8.7229        9.9860        .16017E-06   -.59393E-05
  27  Prefactor     .10000E-03    18.856        .36372E-06** at limit **
  28  norm          .10000E-03    .57918        .27177E-06** at limit **
  29  norm          1.3220        6.8819        .28961E-06    .67734E-05
  30  Normalizat    .83502        .21723       -.87802E-06   -.11769E-03
  31  Prefactor     1.0379        .20877       -.37806E-06   -.15768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 45.1208
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0595
  Prefactor  = 0.0001
  Prefactor  = 43.576
  Prefactor  = 16.7309
  Prefactor  = 9.65531
  Prefactor  = 9.52517
  Prefactor  = 0.0001
  Prefactor  = 2.88241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.05608
  Prefactor  = 18.3263
  Prefactor  = 24.539
  norm       = 8.72293
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.322
  Normalizat = 0.835019
  Prefactor  = 1.03787
 **********
 **   18 **HESSE 
 **********

 FCN=   4217.295     FROM HESSE     STATUS=OK           620 CALLS     4917 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    48.184        .37783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.121        101.50        .59684E-04   -1.4364    
   4  norm          .10000E-03    3.3635        .11626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0018        .17835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8088        .27241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.059        8.4263        .53411E-03   -1.4958    
   9  Prefactor     .10000E-03    32.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.576        32.648        .60733E-04   -1.4387    
  11  Prefactor     16.731        33.783        .97915E-04   -1.4890    
  12  Prefactor     9.6553        17.768        .12897E-03   -1.5086    
  13  Prefactor     9.5252        192.13        .12946E-03   -1.5091    
  14  Prefactor     .10000E-03    7.5065        .17328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8824        8.1830        .11968E-02   -1.5368    
  16  Prefactor     .10000E-03    23.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.3889        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    85.283        .47329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    19.345        .29865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.7240        .12222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    22.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0561        13.626        .44318E-03   -1.5502    
  24  Prefactor     18.326        63.060        .93575E-04   -1.4852    
  25  Prefactor     24.539        83.649        .80774E-04   -1.4717    
  26  norm          8.7229        9.8362        .13571E-03   -1.5117    
  27  Prefactor     .10000E-03    18.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .88901        .93431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3220        6.4464        .28590E-03   -1.5478    
  30  Normalizat    .83502        .25394        .25433E-03   -.98783    
  31  Prefactor     1.0379        .24491        .23240E-03   -.91478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34413e-10
Minuit parameter uncertainties:
  1  4.23479e-06
  2  0.00101175
  3  101.889
  4  3.24257e-07
  5  4.49286e-06
  6  2.3494e-06
  7  1.16513e-05
  8  8.427
  9  7.1445e-05
  10  32.6611
  11  33.8213
  12  17.7782
  13  85.8758
  14  1.32291e-05
  15  8.18616
  16  4.02598e-05
  17  2.08484e-05
  18  3.24492e-06
  19  0.000375436
  20  0.000195253
  21  1.64802e-06
  22  0.000169119
  23  7.5886
  24  63.2908
  25  84.0531
  26  9.83805
  27  0.000157334
  28  6.15493e-06
  29  5.83932
  30  0.254304
  31  0.245169
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  2.882e+00  8.186e+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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.038e+00  2.452e-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:  8.350e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/515523/likelihoodResults_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.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) = 4216.27705179
delta logL = 1.01800751994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4216.27402504
delta logL = 1.0210342662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61447       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6329       1.0000          .0000       10.000    
     3 'Normalizat'    .75037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0862       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.

 FCN=   4216.274     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      295 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61562        8.3362        .86290E-02    .73099E-03
   2  Index         3.6321        2.3945        .94153E-01    .13750E-03
   3  Normalizat    .75041        .53063E-01    .42959E-01   -.71475E-05
   4  Prefactor     1.0862        .52904E-01    .38136E-01   -.18956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.615621
  Index      = 3.63205
  Normalizat = 0.750411
  Prefactor  = 1.08617
 **********
 **   18 **HESSE 
 **********

 FCN=   4216.274     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      328 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61562        18.466        .39076E-04   -1.5551    
   2  Index         3.6321        3.9178        .35233E-02   -.27712    
   3  Normalizat    .75041        .24227        .26658E-03   -1.0194    
   4  Prefactor     1.0862        .23934        .22752E-03   -.89910    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.35463e-10
Minuit parameter uncertainties:
  1  6.74504
  2  4.57893
  3  0.242621
  4  0.239575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515523': 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) = 4216.27402473
delta logL = 1.02103457957

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  6.156e-01  6.745e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  3.632e+00  4.579e+00  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.086e+00  2.396e-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:  7.504e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 3.63 +/- 4.58
Photon Flux (Free Index): 8.21e-08 +/- 7.83e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.28e-05

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/515523/cmap_HighResolution_513820801_514080001_4FGL_J2250.4-4206_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='1.02e+00', photon_flux2='8.21e-08', job_status='DONE', time_completed='2021-09-28 22:57:11.675403', photon_index_error2='4.58', photon_index2='3.63', ts='0.15', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.13e-08', energy_flux_error2='1.28e-05', EG='0.84', time_epoch_completed='1632895031.68', return_code='0', job_id='515523', GAL2='1.09', EG2='0.75', return_code2='102', photon_flux_error2='7.83e-08', ts2='2.31', photon_index='2.09' WHERE bin_id='1059' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 515523: <4FGL_J2250.4-4206_daily_bin1059> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1059> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:45:11 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:45:13 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:45:13 2021
Terminated at Tue Sep 28 22:57:12 2021
Results reported at Tue Sep 28 22:57:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1059 342.606 -42.1095 513820801 514080001 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            721 sec.

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

