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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1008
RA = 342.606, Dec = -42.1095
tmin = 500601601, tmax = 500860801
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='514380', job_status='RUN', time_executed='2021-09-28 22:41:47.237768', time_epoch_executed='1632894107.24' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514380/ft1_4FGL_J2250.4-4206_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514380/ft2_4FGL_J2250.4-4206_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514380/ft1_4FGL_J2250.4-4206_daily_bin1008.fits outfile=/scratch/kocevski/514380/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1008.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.11
user 4.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514380/ft1_filtered_4FGL_J2250.4-4206_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/514380/ft2_4FGL_J2250.4-4206_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/514380/ltcube_500601601_500860801_4FGL_J2250.4-4206_daily_bin1008.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/514380/ft2_4FGL_J2250.4-4206_daily_bin1008.fits
.....................!
real 12.01
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514380/ft1_filtered_4FGL_J2250.4-4206_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/514380/ft2_4FGL_J2250.4-4206_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/514380/ltcube_500601601_500860801_4FGL_J2250.4-4206_daily_bin1008.fits outfile=/scratch/kocevski/514380/expmap_500601601_500860801_4FGL_J2250.4-4206_daily_bin1008.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/514380/ltcube_500601601_500860801_4FGL_J2250.4-4206_daily_bin1008.fits
.....................!
real 190.59
user 185.19
sys 5.10

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/514380/ft1_filtered_4FGL_J2250.4-4206_daily_bin1008.fits scfile=/scratch/kocevski/514380/ft2_4FGL_J2250.4-4206_daily_bin1008.fits outfile=/scratch/kocevski/514380/cmap_500601601_500860801_4FGL_J2250.4-4206_daily_bin1008.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514380/ft1_filtered_4FGL_J2250.4-4206_daily_bin1008.fits scfile=/scratch/kocevski/514380/ft2_4FGL_J2250.4-4206_daily_bin1008.fits outfile=/scratch/kocevski/514380/cmap_HighResolution_500601601_500860801_4FGL_J2250.4-4206_daily_bin1008.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514380/ft1_filtered_4FGL_J2250.4-4206_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/514380/ft2_4FGL_J2250.4-4206_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514380/Model_4FGL_J2250.4-4206_daily_bin1008.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/514380/ft1_filtered_4FGL_J2250.4-4206_daily_bin1008.fits....................!
real 29.88
user 28.65
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2819       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.371       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10838E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22255E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9905       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12625E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.0332       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .78295       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95127       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=   2834.134     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     3550 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2740        154.29       -.39196E-05   -.35483E-04
   2  Prefactor     10.373        12.244        .88294E-07   -.19380E-03
   3  Prefactor     .10000E-03    127.26        .24959E-04** at limit **
   4  norm          .10000E-03    3.8970        .48964E-08** at limit **
   5  Prefactor     .10000E-03    3.0267        .13778E-07** at limit **
   6  Prefactor     .10036E-03    4.4947        .30220E-05** at limit **
   7  Prefactor     .10000E-03    68.588       -.27843E-04** at limit **
   8  Prefactor     .10000E-03    4.8072       -.72633E-07** at limit **
   9  Prefactor     20.838        36.888        .11820E-06   -.50515E-04
  10  Prefactor     8.9804        30.715        .12777E-05   -.82129E-04
  11  Prefactor     .10000E-03    20.596       -.14606E-04** at limit **
  12  Prefactor     .10000E-03    17.759        .27516E-05** at limit **
  13  Prefactor     .10000E-03    362.34       -.69489E-04** at limit **
  14  Prefactor     .10000E-03    5.7907        .42002E-06** at limit **
  15  Prefactor     .10000E-03    5.0395        .49748E-07** at limit **
  16  Prefactor     55.756        49.757        .16690E-05   -.18466E-04
  17  Prefactor     .10000E-03    305.33        .29446E-04** at limit **
  18  Prefactor     .10000E-03    11.668       -.39413E-07** at limit **
  19  norm          .10000E-03    6.2638        .55647E-06** at limit **
  20  norm          8.0336        9.2285       -.78818E-06   -.80148E-03
  21  norm          .10000E-03    3.7832       -.54080E-08** at limit **
  22  norm          .10000E-03    5.4115       -.20367E-06** at limit **
  23  Prefactor     .10000E-03    6.1331       -.80872E-06** at limit **
  24  Prefactor     .10000E-03    49.140        .17596E-04** at limit **
  25  Prefactor     .10000E-03    35.157       -.13274E-04** at limit **
  26  norm          .10000E-03    2.5695        .44554E-08** at limit **
  27  Prefactor     .10000E-03    43.043        .78201E-05** at limit **
  28  norm          .10000E-03    .88424        .35624E-07** at limit **
  29  norm          .10000E-03    2.8266        .57588E-08** at limit **
  30  Normalizat    .78259        .23984       -.14978E-05   -.50323E-03
  31  Prefactor     .95141        .22724        .33645E-06   -.50533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27398
  Prefactor  = 10.3727
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8383
  Prefactor  = 8.98044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.7557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.03356
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.782594
  Prefactor  = 0.951409
 **********
 **   18 **HESSE 
 **********

 FCN=   2834.134     FROM HESSE     STATUS=OK           604 CALLS     4154 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2740        152.00        .22351E-03   -1.5346    
   2  Prefactor     10.373        12.153        .12442E-03   -1.5064    
   3  Prefactor     .10000E-03    127.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.9049        .10264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0302        .90447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10036E-03    22.093        .20604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    68.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8306        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.838        36.794        .87751E-04   -1.4795    
  10  Prefactor     8.9804        30.608        .13367E-03   -1.5109    
  11  Prefactor     .10000E-03    20.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    362.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7943        .12513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0531        .11670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     55.756        49.774        .53725E-04   -1.4213    
  17  Prefactor     .10000E-03    308.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.681        .17761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.2643        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.0336        9.2680        .70731E-03   -1.5141    
  21  norm          .10000E-03    3.7880        .10113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.4165        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.1491        .12865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    49.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    35.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.5748        .83336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    43.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.1809        .97088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.8341        .87407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .78259        .28754        .24197E-03   -1.0072    
  31  Prefactor     .95141        .27816        .21288E-03   -.94367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72383e-08
Minuit parameter uncertainties:
  1  44.7363
  2  12.1561
  3  1.2217e-05
  4  6.96412e-07
  5  3.51248e-07
  6  0.00565721
  7  6.94239e-05
  8  1.01288e-05
  9  36.834
  10  30.6613
  11  1.05444e-05
  12  3.61864e-05
  13  0.000463056
  14  5.76728e-07
  15  5.72268e-06
  16  49.8112
  17  0.000418092
  18  3.58277e-06
  19  8.40088e-09
  20  9.26968
  21  1.92636e-07
  22  1.49558e-06
  23  8.08177e-06
  24  1.44361e-05
  25  2.32741e-06
  26  2.28276e-08
  27  6.71801e-06
  28  4.47977e-06
  29  5.02934e-07
  30  0.288098
  31  0.278577
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.723e-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:  9.514e-01  2.786e-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.826e-01  2.881e-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: 8.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514380/likelihoodResults_500601601_500860801_4FGL_J2250.4-4206_daily_bin1008.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) = 2834.13505893
delta logL = -0.000939396360081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2834.13411978
delta logL = -2.42892838287e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0767       1.0000          .0000       10.000    
     3 'Normalizat'    .78281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95123       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=   2834.134     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      231 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    88.969        .11714E-02** at limit **
   2  Index         2.0408        5.6526        .50000        .13371E-04
   3  Normalizat    .78260        .23532E-01    .24197E-03   -.49567E-05
   4  Prefactor     .95141        .22765E-01    .21288E-03   -.50733E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100436
  Index      = 2.04084
  Normalizat = 0.782597
  Prefactor  = 0.951408
 **********
 **   18 **HESSE 
 **********

 FCN=   2834.134     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      260 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    372.83        .23427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0408        8.6344        .50000       -.63333    
   3  Normalizat    .78260        .52127E-01    .96790E-05   -1.0072    
   4  Prefactor     .95141        .50396E-01    .85153E-05   -.94367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95184e-08
Minuit parameter uncertainties:
  1  0.0256628
  2  799.315
  3  0.0521303
  4  0.0503985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514380': 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) = 2834.13411942
delta logL = 1.21046014101e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.004e-04  2.566e-02  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.041e+00  7.993e+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:  9.514e-01  5.040e-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:  7.826e-01  5.213e-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/514380/cmap_HighResolution_500601601_500860801_4FGL_J2250.4-4206_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-28 22:50:51.703730', job_id='514380', GAL2='0.95', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632894651.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1008' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 514380: <4FGL_J2250.4-4206_daily_bin1008> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1008> 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) <bullet0158>, 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:50:52 2021
Results reported at Tue Sep 28 22:50:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1008 342.606 -42.1095 500601601 500860801 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 :                                   540.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            614 sec.

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

