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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1123
RA = 342.606, Dec = -42.1095
tmin = 530409601, tmax = 530668801
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='515618', job_status='RUN', time_executed='2021-09-28 22:45:48.735106', time_epoch_executed='1632894348.74' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515618

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515618/ft1_4FGL_J2250.4-4206_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515618/ft2_4FGL_J2250.4-4206_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515618/ft1_4FGL_J2250.4-4206_daily_bin1123.fits outfile=/scratch/kocevski/515618/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1123.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=530409601.0 tmax=530668801.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.61
user 3.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/515618/ft2_4FGL_J2250.4-4206_daily_bin1123.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/515618/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/515618/ft1_filtered_4FGL_J2250.4-4206_daily_bin1123.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515618/ft1_filtered_4FGL_J2250.4-4206_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/515618/ft2_4FGL_J2250.4-4206_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/515618/ltcube_530409601_530668801_4FGL_J2250.4-4206_daily_bin1123.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/515618/ft2_4FGL_J2250.4-4206_daily_bin1123.fits
.....................!
real 12.64
user 12.20
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515618/ft1_filtered_4FGL_J2250.4-4206_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/515618/ft2_4FGL_J2250.4-4206_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/515618/ltcube_530409601_530668801_4FGL_J2250.4-4206_daily_bin1123.fits outfile=/scratch/kocevski/515618/expmap_530409601_530668801_4FGL_J2250.4-4206_daily_bin1123.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/515618/ltcube_530409601_530668801_4FGL_J2250.4-4206_daily_bin1123.fits
.....................!
real 190.16
user 185.03
sys 4.53

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/515618/ft1_filtered_4FGL_J2250.4-4206_daily_bin1123.fits scfile=/scratch/kocevski/515618/ft2_4FGL_J2250.4-4206_daily_bin1123.fits outfile=/scratch/kocevski/515618/cmap_530409601_530668801_4FGL_J2250.4-4206_daily_bin1123.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515618/ft1_filtered_4FGL_J2250.4-4206_daily_bin1123.fits scfile=/scratch/kocevski/515618/ft2_4FGL_J2250.4-4206_daily_bin1123.fits outfile=/scratch/kocevski/515618/cmap_HighResolution_530409601_530668801_4FGL_J2250.4-4206_daily_bin1123.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/515618/ft1_filtered_4FGL_J2250.4-4206_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/515618/ft2_4FGL_J2250.4-4206_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515618/Model_4FGL_J2250.4-4206_daily_bin1123.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/515618/ft1_filtered_4FGL_J2250.4-4206_daily_bin1123.fits.....................!
real 50.17
user 48.77
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12572E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13276E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3667       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29882E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.701       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0675       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .90205       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4335       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.559       1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.365       1.0000         .10000E-03   10000.    
    26 'norm      '    .10701E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.3580       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .68265       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2339       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=   6827.203     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     3562 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.974        .21324E-04** at limit **
   2  Prefactor     .10000E-03    2.3211       -.63899E-07** at limit **
   3  Prefactor     .10000E-03    161.07       -.16297E-04** at limit **
   4  norm          4.0409        4.4301        .18643E-07   -.17583E-06
   5  Prefactor     .10000E-03    3.0888        .61569E-07** at limit **
   6  Prefactor     .10000E-03    1.1106       -.67423E-07** at limit **
   7  Prefactor     .10000E-03    11.455        .53742E-06** at limit **
   8  Prefactor     2.3644        2.2507        .10707E-05   -.42905E-02
   9  Prefactor     .10000E-03    57.980       -.14208E-04** at limit **
  10  Prefactor     13.736        17.117       -.43847E-06    .67526E-04
  11  Prefactor     .10000E-03    21.858        .16090E-04** at limit **
  12  Prefactor     .10000E-03    4.8701       -.58882E-06** at limit **
  13  Prefactor     .10000E-03    18.932       -.78574E-05** at limit **
  14  Prefactor     20.304        10.837       -.46082E-07    .73423E-04
  15  Prefactor     .10000E-03    1.4472        .44240E-08** at limit **
  16  Prefactor     .10000E-03    9.6631       -.24275E-06** at limit **
  17  Prefactor     .10000E-03    26.178       -.10342E-04** at limit **
  18  Prefactor     12.701        11.240       -.17407E-06   -.31940E-04
  19  norm          4.0676        7.7404        .20263E-06   -.64024E-03
  20  norm          .10000E-03    1.8900       -.25609E-07** at limit **
  21  norm          .10000E-03    1.6809        .54600E-07** at limit **
  22  norm          .90242        4.6970       -.21895E-05   -.33201E-03
  23  Prefactor     2.4335        2.5815       -.25232E-09    .31655E-04
  24  Prefactor     15.587        21.745       -.43189E-05   -.90105E-04
  25  Prefactor     23.376        26.691       -.36942E-06    .78310E-05
  26  norm          .10000E-03    2.8139        .26853E-06** at limit **
  27  Prefactor     .10000E-03    3.8310        .21326E-07** at limit **
  28  norm          .10000E-03    .43058        .14137E-07** at limit **
  29  norm          1.3578        1.9866        .23267E-06    .64060E-04
  30  Normalizat    .68261        .16283        .58857E-06   -.14838E-04
  31  Prefactor     1.2339        .16838       -.14624E-06    .49836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.04094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.3644
  Prefactor  = 0.0001
  Prefactor  = 13.7357
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7005
  norm       = 4.06756
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.902418
  Prefactor  = 2.43352
  Prefactor  = 15.5866
  Prefactor  = 23.3763
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.35781
  Normalizat = 0.682607
  Prefactor  = 1.23393
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.203     FROM HESSE     STATUS=OK           618 CALLS     4180 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3294        .12293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    162.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0409        4.4313        .17767E-03   -1.5306    
   5  Prefactor     .10000E-03    3.1162        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1270        .84991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3644        4.7007        .11856E-02   -1.5400    
   9  Prefactor     .10000E-03    59.856        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.736        17.144        .10807E-03   -1.4967    
  11  Prefactor     .10000E-03    21.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.316        .35366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.304        10.871        .88888E-04   -1.4806    
  15  Prefactor     .10000E-03    1.4505        .97065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.701        11.055        .11240E-03   -1.4995    
  19  norm          4.0676        7.8654        .99958E-03   -1.5305    
  20  norm          .10000E-03    1.8932        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6875        .10454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .90242        4.6550        .34916E-03   -1.5518    
  23  Prefactor     2.4335        2.5811        .13280E-03   -1.5396    
  24  Prefactor     15.587        21.567        .10154E-03   -1.4918    
  25  Prefactor     23.376        26.685        .82868E-04   -1.4741    
  26  norm          .10000E-03    2.8658        .26801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.8408        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.4836        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3578        1.9497        .13514E-03   -1.5475    
  30  Normalizat    .68261        .19414        .25708E-03   -1.0458    
  31  Prefactor     1.2339        .19939        .20982E-03   -.85293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.816e-08
Minuit parameter uncertainties:
  1  0.000235448
  2  2.67449e-06
  3  0.000969518
  4  4.43166
  5  3.20288e-07
  6  2.00797e-06
  7  7.31015e-06
  8  4.70146
  9  3.18275e-05
  10  17.15
  11  0.000258544
  12  5.67346e-05
  13  0.000153893
  14  10.8723
  15  2.25778e-08
  16  6.41653e-06
  17  0.00022493
  18  11.057
  19  7.86736
  20  1.45833e-07
  21  1.16319e-05
  22  4.09943
  23  2.5812
  24  21.578
  25  26.6988
  26  6.91008e-05
  27  2.66108e-07
  28  1.37433e-05
  29  1.94984
  30  0.194335
  31  0.199514
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.258e-08  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.234e+00  1.995e-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:  6.826e-01  1.943e-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: 2.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515618/likelihoodResults_530409601_530668801_4FGL_J2250.4-4206_daily_bin1123.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) = 6827.20635919
delta logL = -0.00320201075465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6827.20315662
delta logL = 5.56557097298e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0624       1.0000          .0000       10.000    
     3 'Normalizat'    .68258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2340       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6827.203     FROM MIGRAD    STATUS=FAILED        91 CALLS      236 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10163E-03    26.315        .10188E-02** at limit **
   2  Index         1.9418        7.3484        .50000        .97139E-04
   3  Normalizat    .68261        .14451E-01    .25708E-03    .61635E-03
   4  Prefactor     1.2339        .15504E-01    .20982E-03    .51511E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6827.203     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      356 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10163E-03    26.315        .24647E-03** at limit **
   2  Index         1.9418        7.3484        .63861E-03    .97139E-04
   3  Normalizat    .68261        .14451E-01    .34301E-05    .61635E-03
   4  Prefactor     1.2339        .15504E-01    .34209E-05    .51511E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6827.203     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      409 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.658        .20377E-02** at limit **
   2  Index         1.5350        9.1570        .50000        .45952E-07
   3  Normalizat    .68261        .14549E-01    .51416E-04   -.34538E-04
   4  Prefactor     1.2339        .15610E-01    .41963E-04   -.22486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.535
  Normalizat = 0.682608
  Prefactor  = 1.23393
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.203     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      438 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    141.02        .40753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5350        9.1473        .50000       -.76564    
   3  Normalizat    .68261        .33082E-01    .10283E-04   -1.0458    
   4  Prefactor     1.2339        .35491E-01    .83926E-05   -.85293    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.13104e-10
Minuit parameter uncertainties:
  1  6.92375e-05
  2  558.745
  3  0.0330826
  4  0.0354915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515618': 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) = 6827.20314818
delta logL = 9.00358372746e-06

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.924e-05  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.535e+00  5.587e+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:  1.234e+00  3.549e-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:  6.826e-01  3.308e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/515618/cmap_HighResolution_530409601_530668801_4FGL_J2250.4-4206_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.90e-08', time_completed='2021-09-28 23:00:55.118704', job_id='515618', GAL2='1.23', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632895255.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='9.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1123' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 515618: <4FGL_J2250.4-4206_daily_bin1123> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1123> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:45:18 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:45:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 22:45:20 2021
Terminated at Tue Sep 28 23:00:55 2021
Results reported at Tue Sep 28 23:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1123 342.606 -42.1095 530409601 530668801 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 :                                   900.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

