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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1492
RA = 342.606, Dec = -42.1095
tmin = 626054401, tmax = 626313601
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='517208', job_status='RUN', time_executed='2021-09-28 22:51:27.239663', time_epoch_executed='1632894687.24' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/517208

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/517208/ft1_4FGL_J2250.4-4206_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/517208/ft1_4FGL_J2250.4-4206_daily_bin1492.fits outfile=/scratch/kocevski/517208/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1492.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=626054401.0 tmax=626313601.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.13
user 3.87
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.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/517208/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1492.fits evtable="EVENTS" outfile="/scratch/kocevski/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/517208/ltcube_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.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/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits
.....................!
real 11.97
user 11.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/517208/ltcube_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.fits outfile=/scratch/kocevski/517208/expmap_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.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/517208/ltcube_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.fits
.....................!
real 190.96
user 185.43
sys 5.21

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/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.fits scfile=/scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits outfile=/scratch/kocevski/517208/cmap_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.fits scfile=/scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits outfile=/scratch/kocevski/517208/cmap_HighResolution_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/517208/Model_4FGL_J2250.4-4206_daily_bin1492.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/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.fits.....................!
real 49.93
user 48.62
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.fits', '/scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits', expMap='/scratch/kocevski/517208/expmap_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.fits', expCube='/scratch/kocevski/517208/ltcube_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/517208/Model_4FGL_J2250.4-4206_daily_bin1492.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/517208/ft1_filtered_4FGL_J2250.4-4206_daily_bin1492.fits
Spacecraft file(s): /scratch/kocevski/517208/ft2_4FGL_J2250.4-4206_daily_bin1492.fits
Exposure map: /scratch/kocevski/517208/expmap_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.fits
Exposure cube: /scratch/kocevski/517208/ltcube_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/517208/Model_4FGL_J2250.4-4206_daily_bin1492.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) = 7072.97775532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3328       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49913E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1263       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4275       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.201       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.196       1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.019       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8487       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.830       1.0000         .10000E-03   10000.    
    26 'norm      '    1.2393       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .33478E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .14432       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .49404       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2541       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=   7072.896     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     3615 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.729        25.034       -.82944E-06   -.35198E-04
   2  Prefactor     .10000E-03    2.0470       -.25481E-06** at limit **
   3  Prefactor     .10000E-03    22.416       -.30905E-05** at limit **
   4  norm          .10000E-03    5.1857        .16476E-05** at limit **
   5  Prefactor     .10000E-03    1.5603       -.40430E-07** at limit **
   6  Prefactor     3.3319        2.5847       -.36108E-08    .30501E-03
   7  Prefactor     .10000E-03    7.3011        .80583E-07** at limit **
   8  Prefactor     .82914E-01    2.3239       -.20307E-06    .44684E-03
   9  Prefactor     13.287        13.527        .28644E-06    .70575E-04
  10  Prefactor     1.4922        29.669       -.10446E-05    .82999E-04
  11  Prefactor     1.0440        59.146       -.95596E-05    .19876E-03
  12  Prefactor     2.4482        13.127        .11333E-05    .58217E-04
  13  Prefactor     .10000E-03    31.994        .56931E-05** at limit **
  14  Prefactor     21.203        11.486        .86842E-07    .12520E-03
  15  Prefactor     3.9283        3.9449       -.75245E-08    .96288E-04
  16  Prefactor     .10000E-03    9.5204        .62834E-06** at limit **
  17  Prefactor     2.2384        197.41       -.12457E-04   -.15697E-04
  18  Prefactor     10.199        11.189        .48622E-06    .11646E-03
  19  norm          .10000E-03    10.211       -.10479E-05** at limit **
  20  norm          .10000E-03    1.6027       -.66989E-07** at limit **
  21  norm          .10000E-03    2.1830       -.63359E-07** at limit **
  22  norm          10.021        6.0610        .26571E-08    .75174E-04
  23  Prefactor     2.8466        4.0983       -.23243E-06   -.16765E-03
  24  Prefactor     .10000E-03    30.241        .24371E-05** at limit **
  25  Prefactor     16.838        20.965        .79841E-07    .14159E-04
  26  norm          1.2399        2.3191       -.38635E-06    .13802E-03
  27  Prefactor     .10001E-03    16.732       -.50500E-05** at limit **
  28  norm          .14414        .57364       -.20291E-06    .92942E-03
  29  norm          .10000E-03    1.8794       -.10964E-06** at limit **
  30  Normalizat    .49390        .15251        .52955E-06    .20215E-03
  31  Prefactor     1.2541        .15620        .82594E-06    .12365E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.7295
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.33191
  Prefactor  = 0.0001
  Prefactor  = 0.0829142
  Prefactor  = 13.2872
  Prefactor  = 1.4922
  Prefactor  = 1.04398
  Prefactor  = 2.44824
  Prefactor  = 0.000100003
  Prefactor  = 21.2028
  Prefactor  = 3.92831
  Prefactor  = 0.0001
  Prefactor  = 2.23836
  Prefactor  = 10.1992
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.021
  Prefactor  = 2.84656
  Prefactor  = 0.000100001
  Prefactor  = 16.8375
  norm       = 1.23993
  Prefactor  = 0.000100008
  norm       = 0.144138
  norm       = 0.0001
  Normalizat = 0.493898
  Prefactor  = 1.25407
 **********
 **   18 **HESSE 
 **********

 FCN=   7072.896     FROM HESSE     STATUS=OK           634 CALLS     4249 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.729        25.033        .69009E-04   -1.4546    
   2  Prefactor     .10000E-03    2.0588        .11751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    26.907        .32785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5698        .10259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3319        2.5795        .11322E-03   -1.5343    
   7  Prefactor     .10000E-03    7.3017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .82914E-01    62.038        .22736E-02   -1.5650    
   9  Prefactor     13.287        13.495        .10989E-03   -1.4979    
  10  Prefactor     1.4922        30.743        .35199E-03   -1.5464    
  11  Prefactor     1.0440        193.91        .62252E-02   -1.5504    
  12  Prefactor     2.4482        15.175        .26266E-03   -1.5395    
  13  Prefactor     .10000E-03    32.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.203        11.555        .86990E-04   -1.4787    
  15  Prefactor     3.9283        3.9430        .16206E-03   -1.5312    
  16  Prefactor     .10000E-03    9.5303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2384        198.96        .27496E-03   -1.5409    
  18  Prefactor     10.199        11.047        .12549E-03   -1.5069    
  19  norm          .10000E-03    10.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6036        .10397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2060        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.021        6.0657        .12659E-03   -1.5075    
  23  Prefactor     2.8466        3.7847        .17932E-03   -1.5371    
  24  Prefactor     .10000E-03    30.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.838        20.968        .97628E-04   -1.4887    
  26  norm          1.2399        2.2908        .16885E-03   -1.5485    
  27  Prefactor     .10001E-03    21.436        .39637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .14414        .86912        .11389E-02   -1.5632    
  29  norm          .10000E-03    1.9171        .11245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .49390        .17554        .28116E-03   -1.1270    
  31  Prefactor     1.2541        .17824        .19801E-03   -.84683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46232e-09
Minuit parameter uncertainties:
  1  25.0411
  2  4.26272e-06
  3  0.000251967
  4  0.000415007
  5  2.08269e-06
  6  2.57963
  7  2.8445e-06
  8  4.53798
  9  13.4978
  10  13.5538
  11  28.549
  12  12.1947
  13  0.000584897
  14  11.5565
  15  3.94329
  16  3.42484e-05
  17  42.3518
  18  11.0489
  19  5.97341e-05
  20  1.4316e-06
  21  5.28416e-07
  22  6.06602
  23  3.78504
  24  0.000254449
  25  20.9773
  26  2.29098
  27  0.000804235
  28  0.707648
  29  2.65985e-06
  30  0.175741
  31  0.178322
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  3.928e+00  3.943e+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.254e+00  1.783e-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:  4.939e-01  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 342.606 -42.109
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 8.33e-06 +/- 8.36e-06

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

Saving results to:
/scratch/kocevski/517208/likelihoodResults_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.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) = 7072.56079333
delta logL = 0.335260074517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7072.56041503
delta logL = 0.335638378471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2090       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5798       1.0000          .0000       10.000    
     3 'Normalizat'    .50065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2493       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=   7072.560     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      267 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2136        298.12        .40276E-02    .18528E-04
   2  Index         1.5803        5.4365        .19081        .52164E-04
   3  Normalizat    .50068        .10540        .63113E-01    .91432E-04
   4  Prefactor     1.2493        .94493E-01    .33557E-01   -.56207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.21365
  Index      = 1.58035
  Normalizat = 0.500683
  Prefactor  = 1.24925
 **********
 **   18 **HESSE 
 **********

 FCN=   7072.560     FROM HESSE     STATUS=OK            31 CALLS      298 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2136        6.0364        .16110E-03   -1.5209    
   2  Index         1.5803        .55875        .10502E-01   -.75314    
   3  Normalizat    .50068        .16156        .27929E-03   -1.1238    
   4  Prefactor     1.2493        .17614        .19830E-03   -.84829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01449e-11
Minuit parameter uncertainties:
  1  6.037
  2  0.560956
  3  0.16171
  4  0.17622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/517208': 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) = 7072.56041424
delta logL = 0.335639162393

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  6.214e+00  6.037e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.580e+00  5.610e-01  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.249e+00  1.762e-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:  5.007e-01  1.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 1.58 +/- 0.56
Photon Flux (Free Index): 9.98e-09 +/- 1.15e-08
Energy Flux (Free Index): 2.41e-05 +/- 3.79e-05

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/517208/cmap_HighResolution_626054401_626313601_4FGL_J2250.4-4206_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='2.41e-05', photon_flux_error='1.48e-08', dlogl='3.36e-01', energy_flux='8.33e-06', photon_flux2='9.98e-09', job_status='DONE', time_completed='2021-09-28 23:06:44.548624', photon_index_error2='0.56', photon_index2='1.58', ts='2.29', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='5.39e-08', energy_flux_error2='3.79e-05', EG='0.49', time_epoch_completed='1632895604.55', return_code='0', job_id='517208', GAL2='1.25', EG2='0.50', return_code2='0', energy_flux_error='8.36e-06', photon_flux_error2='1.15e-08', ts2='2.96', photon_index='2.09' WHERE bin_id='1492' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 517208: <4FGL_J2250.4-4206_daily_bin1492> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1492> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:50:16 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:50:17 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:50:17 2021
Terminated at Tue Sep 28 23:06:45 2021
Results reported at Tue Sep 28 23:06:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1492 342.606 -42.1095 626054401 626313601 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 :                                   909.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

