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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1028
RA = 342.606, Dec = -42.1095
tmin = 505785601, tmax = 506044801
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='514409', job_status='RUN', time_executed='2021-09-28 22:40:54.885588', time_epoch_executed='1632894054.89' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514409

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514409/ft1_4FGL_J2250.4-4206_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514409/ft2_4FGL_J2250.4-4206_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514409/ft1_4FGL_J2250.4-4206_daily_bin1028.fits outfile=/scratch/kocevski/514409/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1028.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=505785601.0 tmax=506044801.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.59
user 3.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514409/ft1_filtered_4FGL_J2250.4-4206_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/514409/ft2_4FGL_J2250.4-4206_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/514409/ltcube_505785601_506044801_4FGL_J2250.4-4206_daily_bin1028.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/514409/ft2_4FGL_J2250.4-4206_daily_bin1028.fits
.....................!
real 12.72
user 12.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514409/ft1_filtered_4FGL_J2250.4-4206_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/514409/ft2_4FGL_J2250.4-4206_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/514409/ltcube_505785601_506044801_4FGL_J2250.4-4206_daily_bin1028.fits outfile=/scratch/kocevski/514409/expmap_505785601_506044801_4FGL_J2250.4-4206_daily_bin1028.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/514409/ltcube_505785601_506044801_4FGL_J2250.4-4206_daily_bin1028.fits
.....................!
real 191.93
user 185.74
sys 5.79

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/514409/ft1_filtered_4FGL_J2250.4-4206_daily_bin1028.fits scfile=/scratch/kocevski/514409/ft2_4FGL_J2250.4-4206_daily_bin1028.fits outfile=/scratch/kocevski/514409/cmap_505785601_506044801_4FGL_J2250.4-4206_daily_bin1028.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514409/ft1_filtered_4FGL_J2250.4-4206_daily_bin1028.fits scfile=/scratch/kocevski/514409/ft2_4FGL_J2250.4-4206_daily_bin1028.fits outfile=/scratch/kocevski/514409/cmap_HighResolution_505785601_506044801_4FGL_J2250.4-4206_daily_bin1028.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514409/ft1_filtered_4FGL_J2250.4-4206_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/514409/ft2_4FGL_J2250.4-4206_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514409/Model_4FGL_J2250.4-4206_daily_bin1028.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/514409/ft1_filtered_4FGL_J2250.4-4206_daily_bin1028.fits.....................!
real 44.91
user 43.00
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21171E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .82246E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.403       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.989       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7224       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.881       1.0000         .10000E-03   10000.    
    20 'norm      '    13.457       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.2049       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    51.494       1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.0700       1.0000         .10000E-03   10000.    
    29 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3978       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .62145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5704.400     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     3455 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10360E-03    139.17        .39515E-04** at limit **
   2  Prefactor     .10000E-03    3.9973        .52846E-05** at limit **
   3  Prefactor     .10226E-03    23.492       -.64883E-05** at limit **
   4  norm          .10009E-03    16.164       -.10250E-04** at limit **
   5  Prefactor     .10226E-03    343.02       -.38623E-04** at limit **
   6  Prefactor     8.1617        4.4206       -.39493E-06   -.18761E-03
   7  Prefactor     .10001E-03    12.855        .91922E-05** at limit **
   8  Prefactor     14.401        1.0457       -.13831E-09    .25019E-04
   9  Prefactor     .10000E-03    4.2786        .51911E-05** at limit **
  10  Prefactor     .10000E-03    2.7962       -.25180E-05** at limit **
  11  Prefactor     16.971        1.5852        .10664E-06   -.12409E-03
  12  Prefactor     .10001E-03    8.0849       -.10318E-04** at limit **
  13  Prefactor     .10233E-03    25.762       -.15227E-05** at limit **
  14  Prefactor     4.7298        1.2157        .12965E-06    .52427E-03
  15  Prefactor     .10000E-03    4.2632        .51720E-05** at limit **
  16  Prefactor     .10000E-03    8.6378       -.13425E-05** at limit **
  17  Prefactor     .10005E-03    7.7705        .36293E-05** at limit **
  18  Prefactor     .10000E-03    3.5707       -.43269E-05** at limit **
  19  norm          12.878        1.1345       -.35088E-07    .72918E-03
  20  norm          13.456        1.0015       -.10022E-07   -.50410E-04
  21  norm          .10000E-03    1.6408        .32580E-06** at limit **
  22  norm          5.2042        1.0472        .21619E-06   -.86377E-04
  23  Prefactor     .10000E-03    2.2211       -.69755E-06** at limit **
  24  Prefactor     .10000E-03    13.027        .72120E-05** at limit **
  25  Prefactor     51.475        5.2474       -.15343E-05    .27957E-02
  26  norm          .10000E-03    1.7437       -.18692E-06** at limit **
  27  Prefactor     .10000E-03    4.6369       -.24298E-05** at limit **
  28  norm          1.0698        .84752        .36571E-06   -.15435E-05
  29  norm          .10000E-03    2.7043       -.66227E-06** at limit **
  30  Normalizat    1.3977        .21561       -.10166E-04   -.22642E-04
  31  Prefactor     .62177        .21476        .40139E-05   -.16399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103601
  Prefactor  = 0.0001
  Prefactor  = 0.000102258
  norm       = 0.000100086
  Prefactor  = 0.000102256
  Prefactor  = 8.16166
  Prefactor  = 0.000100007
  Prefactor  = 14.4012
  Prefactor  = 0.000100005
  Prefactor  = 0.000100003
  Prefactor  = 16.9709
  Prefactor  = 0.000100007
  Prefactor  = 0.000102332
  Prefactor  = 4.72983
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  norm       = 12.8782
  norm       = 13.4561
  norm       = 0.0001
  norm       = 5.2042
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 51.4755
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06976
  norm       = 0.0001
  Normalizat = 1.39772
  Prefactor  = 0.621772
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.400     FROM HESSE     STATUS=OK           688 CALLS     4143 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10360E-03    162.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10226E-03    38.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10009E-03    16.812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10226E-03    6.7907        .69037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1617        4.4504        .35083E-02   -1.5137    
   7  Prefactor     .10001E-03    19.968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.401        6.9416        .26385E-02   -1.4949    
   9  Prefactor     .10000E-03    9.3577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.971        25.189        .24293E-02   -1.4884    
  12  Prefactor     .10001E-03    9.6898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10233E-03    40.354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7298        13.006        .46291E-02   -1.5273    
  15  Prefactor     .10000E-03    9.0872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    19.300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.878        12.319        .27902E-02   -1.4990    
  20  norm          13.456        8.0864        .27298E-02   -1.4974    
  21  norm          .10000E-03    1.6380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.2042        7.3392        .44050E-02   -1.5252    
  23  Prefactor     .10000E-03    2.2058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     51.475        48.410        .13972E-02   -1.4272    
  26  norm          .10000E-03    1.7121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.6330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.0698        .88370        .11744E-01   -1.5501    
  29  norm          .10000E-03    2.6242        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3977        .18776        .47690E-01   -.80695    
  31  Prefactor     .62177        .18167        .68609E-01   -1.0668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97955e-07
Minuit parameter uncertainties:
  1  0.048441
  2  9.21731e-06
  3  0.0185548
  4  0.00240218
  5  0.00782917
  6  4.4506
  7  0.000771971
  8  6.94203
  9  0.000421851
  10  0.000322722
  11  25.2048
  12  0.000536389
  13  0.0194137
  14  13.0139
  15  0.000418965
  16  0.000102167
  17  0.00200871
  18  5.77792e-07
  19  12.321
  20  8.08706
  21  8.28172e-07
  22  7.34051
  23  9.97007e-07
  24  0.000506688
  25  48.4474
  26  9.75571e-07
  27  1.31321e-05
  28  0.883709
  29  1.8205e-06
  30  0.18785
  31  0.18184
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.190e-04  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:  6.218e-01  1.818e-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:  1.398e+00  1.878e-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: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514409/likelihoodResults_505785601_506044801_4FGL_J2250.4-4206_daily_bin1028.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) = 5704.40052088
delta logL = -0.000509791530021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5704.40000976
delta logL = 1.31976230477e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1669       1.0000          .0000       10.000    
     3 'Normalizat'    1.3976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62189       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=   5704.179     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      275 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31975        38.707        .90712E-02   -.85690E-03
   2  Index         3.4717        6.7239        .11755        .62418E-04
   3  Normalizat    1.3618        .25610        .48208E-01    .96902E-03
   4  Prefactor     .64113        .13988        .67634E-01    .57811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.319747
  Index      = 3.47174
  Normalizat = 1.36178
  Prefactor  = 0.641132
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.179     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31975        40.099        .65383E-04   -1.5821    
   2  Index         3.4717        6.2636        .69306E-02   -.31062    
   3  Normalizat    1.3618        .21998        .21312E-03   -.81741    
   4  Prefactor     .64113        .21784        .29930E-03   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2275e-09
Minuit parameter uncertainties:
  1  7.16527
  2  8.9737
  3  0.220136
  4  0.218133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514409': 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) = 5704.1787608
delta logL = 0.221250280548

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  3.197e-01  7.165e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  3.472e+00  8.974e+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:  6.411e-01  2.181e-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:  1.362e+00  2.201e-01  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/514409/cmap_HighResolution_505785601_506044801_4FGL_J2250.4-4206_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-28 22:54:25.650081', job_id='514409', GAL2='0.64', fit_tolerance='1e-08', EG2='1.36', EG='1.40', time_epoch_completed='1632894865.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.21e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1028' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:54:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 514409: <4FGL_J2250.4-4206_daily_bin1028> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1028> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:41 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:42 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:42 2021
Terminated at Tue Sep 28 22:54:26 2021
Results reported at Tue Sep 28 22:54:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1028 342.606 -42.1095 505785601 506044801 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 :                                   798.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

