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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1034
RA = 342.606, Dec = -42.1095
tmin = 507340801, tmax = 507600001
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='514418', job_status='RUN', time_executed='2021-09-28 22:41:24.865467', time_epoch_executed='1632894084.87' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514418/ft1_4FGL_J2250.4-4206_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514418/ft2_4FGL_J2250.4-4206_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514418/ft1_4FGL_J2250.4-4206_daily_bin1034.fits outfile=/scratch/kocevski/514418/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1034.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=507340801.0 tmax=507600001.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.55
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514418/ft1_filtered_4FGL_J2250.4-4206_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/514418/ft2_4FGL_J2250.4-4206_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/514418/ltcube_507340801_507600001_4FGL_J2250.4-4206_daily_bin1034.fits outfile=/scratch/kocevski/514418/expmap_507340801_507600001_4FGL_J2250.4-4206_daily_bin1034.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/514418/ltcube_507340801_507600001_4FGL_J2250.4-4206_daily_bin1034.fits
.....................!
real 190.39
user 184.97
sys 5.06

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/514418/ft1_filtered_4FGL_J2250.4-4206_daily_bin1034.fits scfile=/scratch/kocevski/514418/ft2_4FGL_J2250.4-4206_daily_bin1034.fits outfile=/scratch/kocevski/514418/cmap_507340801_507600001_4FGL_J2250.4-4206_daily_bin1034.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.58
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514418/ft1_filtered_4FGL_J2250.4-4206_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/514418/ft2_4FGL_J2250.4-4206_daily_bin1034.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514418/Model_4FGL_J2250.4-4206_daily_bin1034.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/514418/ft1_filtered_4FGL_J2250.4-4206_daily_bin1034.fits.....................!
real 47.71
user 46.31
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27679E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.232       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.905       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13893E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46155       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.892       1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9539       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11737E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12784       1.0000         .10000E-03   10000.    
    22 'norm      '    9.8468       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.261       1.0000         .10000E-03   10000.    
    26 'norm      '    .25943       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.336       1.0000         .10000E-03   10000.    
    28 'norm      '    .95887       1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81690       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0687       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=   6606.853     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4195 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.902        .86538E-06** at limit **
   2  Prefactor     2.1124        8.2167        .78863E-05   -.68910E-04
   3  Prefactor     .10000E-03    34.038       -.11051E-05** at limit **
   4  norm          .10000E-03    1.7926        .22393E-07** at limit **
   5  Prefactor     .10000E-03    2.8813        .12458E-05** at limit **
   6  Prefactor     .10000E-03    .67508        .74985E-08** at limit **
   7  Prefactor     .10000E-03    11.400        .33796E-06** at limit **
   8  Prefactor     6.5551        5.9398       -.47656E-06   -.22953E-03
   9  Prefactor     .10000E-03    8.6768       -.27918E-06** at limit **
  10  Prefactor     20.222        22.002        .44207E-06   -.12283E-04
  11  Prefactor     .10000E-03    22.964        .10220E-05** at limit **
  12  Prefactor     16.904        9.7654       -.34363E-06   -.34621E-03
  13  Prefactor     .10000E-03    19.100        .98368E-07** at limit **
  14  Prefactor     .10000E-03    7.0016       -.18050E-05** at limit **
  15  Prefactor     .46277        3.3771       -.14557E-05   -.35162E-03
  16  Prefactor     31.885        30.716        .34205E-06   -.42906E-04
  17  Prefactor     57.881        52.195        .88453E-06    .18219E-04
  18  Prefactor     4.9471        14.951        .14076E-06   -.89675E-05
  19  norm          .10000E-03    2.8033       -.26255E-08** at limit **
  20  norm          .10000E-03    3.2394       -.27507E-07** at limit **
  21  norm          .12872        3.6425        .38145E-06   -.13381E-03
  22  norm          9.8458        7.2017        .50572E-07    .73692E-05
  23  Prefactor     .10000E-03    3.4131       -.12045E-06** at limit **
  24  Prefactor     .10000E-03    13.184       -.67219E-06** at limit **
  25  Prefactor     48.253        41.673        .59714E-06   -.14585E-04
  26  norm          .23089        1.8368       -.24489E-06   -.49293E-04
  27  Prefactor     13.336        11.697        .19365E-06    .75842E-04
  28  norm          .95881        .89862        .90060E-08    .32022E-04
  29  norm          .10000E-03    1.3454        .16772E-07** at limit **
  30  Normalizat    .81719        .16503        .30474E-06    .24849E-03
  31  Prefactor     1.0686        .16358       -.86513E-06    .75299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.11243
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.5551
  Prefactor  = 0.0001
  Prefactor  = 20.2222
  Prefactor  = 0.0001
  Prefactor  = 16.9042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.462767
  Prefactor  = 31.8846
  Prefactor  = 57.8806
  Prefactor  = 4.94714
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.128721
  norm       = 9.84582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2528
  norm       = 0.230886
  Prefactor  = 13.3356
  norm       = 0.958809
  norm       = 0.0001
  Normalizat = 0.817188
  Prefactor  = 1.06859
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.853     FROM HESSE     STATUS=OK           628 CALLS     4823 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1124        8.4730        .14136E-02   -1.5417    
   3  Prefactor     .10000E-03    34.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7930        .10628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.469        .25716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .67732        .65206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5551        5.9468        .15671E-03   -1.5196    
   9  Prefactor     .10000E-03    8.7013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.222        22.021        .89046E-04   -1.4808    
  11  Prefactor     .10000E-03    23.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.904        9.7832        .97411E-04   -1.4885    
  13  Prefactor     .10000E-03    19.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.907        .40123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .46277        7.2306        .28640E-02   -1.5572    
  16  Prefactor     31.885        30.694        .70953E-04   -1.4578    
  17  Prefactor     57.881        52.233        .52727E-04   -1.4185    
  18  Prefactor     4.9471        14.793        .18069E-03   -1.5263    
  19  norm          .10000E-03    2.8043        .13291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.850        .28410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .12872        27.326        .28256E-02   -1.5636    
  22  norm          9.8458        7.1971        .12770E-03   -1.5080    
  23  Prefactor     .10000E-03    3.4217        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     48.253        41.658        .57721E-04   -1.4318    
  26  norm          .23089        11.765        .19653E-02   -1.5612    
  27  Prefactor     13.336        11.620        .10968E-03   -1.4977    
  28  norm          .95881        .89462        .68821E-04   -1.5512    
  29  norm          .10000E-03    1.3551        .91963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81719        .19125        .24305E-03   -.99434    
  31  Prefactor     1.0686        .19195        .22654E-03   -.90477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19403e-08
Minuit parameter uncertainties:
  1  0.00016948
  2  8.46326
  3  0.000177415
  4  6.90752e-07
  5  9.22717e-05
  6  1.3488e-06
  7  5.62573e-05
  8  5.94735
  9  5.37092e-05
  10  22.0296
  11  2.98633e-05
  12  9.78415
  13  6.2239e-06
  14  0.000167056
  15  3.6586
  16  30.7091
  17  52.2747
  18  14.8036
  19  1.79668e-07
  20  9.8587e-06
  21  3.75127
  22  7.19771
  23  1.22179e-05
  24  5.93025e-05
  25  41.6834
  26  3.29632
  27  11.6223
  28  0.894632
  29  1.25016e-06
  30  0.191404
  31  0.192075
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  4.628e-01  3.659e+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.069e+00  1.921e-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.172e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514418/likelihoodResults_507340801_507600001_4FGL_J2250.4-4206_daily_bin1034.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) = 6606.80797869
delta logL = 0.0450829143165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6606.80697432
delta logL = 0.0460872812946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44725       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7112       1.0000          .0000       10.000    
     3 'Normalizat'    .81257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0701       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=   6606.807     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      236 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44716        5.2996        .17176E-03   -.18797E-03
   2  Index         2.7111        2.6706        .11665E-01   -.20223E-04
   3  Normalizat    .81257        .18088        .24368E-03   -.56078E-04
   4  Prefactor     1.0701        .19038        .22639E-03   -.68045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.447162
  Index      = 2.71111
  Normalizat = 0.812568
  Prefactor  = 1.07013
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.807     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44716        2.5467        .68705E-05   -1.5574    
   2  Index         2.7111        1.9219        .46660E-03   -.47549    
   3  Normalizat    .81257        .18095        .97472E-05   -.99604    
   4  Prefactor     1.0701        .19041        .90555E-05   -.90427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07227e-11
Minuit parameter uncertainties:
  1  2.1342
  2  1.98746
  3  0.181088
  4  0.190526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514418': 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) = 6606.8069743
delta logL = 0.0460873008378

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  4.472e-01  2.134e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.711e+00  1.987e+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.070e+00  1.905e-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.126e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/514418/cmap_HighResolution_507340801_507600001_4FGL_J2250.4-4206_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-28 22:56:33.520465', job_id='514418', GAL2='1.07', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1632894993.52', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.61e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1034' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 514418: <4FGL_J2250.4-4206_daily_bin1034> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1034 342.606 -42.1095 507340801 507600001 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 :                                   902.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

