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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin981
RA = 342.606, Dec = -42.1095
tmin = 493603201, tmax = 493862401
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='514341', job_status='RUN', time_executed='2021-09-28 22:40:43.849425', time_epoch_executed='1632894043.85' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514341

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514341/ft1_4FGL_J2250.4-4206_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514341/ft2_4FGL_J2250.4-4206_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514341/ft1_4FGL_J2250.4-4206_daily_bin981.fits outfile=/scratch/kocevski/514341/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin981.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=493603201.0 tmax=493862401.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 2.80
user 2.59
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514341/ft1_filtered_4FGL_J2250.4-4206_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/514341/ft2_4FGL_J2250.4-4206_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/514341/ltcube_493603201_493862401_4FGL_J2250.4-4206_daily_bin981.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/514341/ft2_4FGL_J2250.4-4206_daily_bin981.fits
.....................!
real 9.03
user 8.73
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514341/ft1_filtered_4FGL_J2250.4-4206_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/514341/ft2_4FGL_J2250.4-4206_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/514341/ltcube_493603201_493862401_4FGL_J2250.4-4206_daily_bin981.fits outfile=/scratch/kocevski/514341/expmap_493603201_493862401_4FGL_J2250.4-4206_daily_bin981.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/514341/ltcube_493603201_493862401_4FGL_J2250.4-4206_daily_bin981.fits
.....................!
real 145.43
user 141.41
sys 3.78

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/514341/ft1_filtered_4FGL_J2250.4-4206_daily_bin981.fits scfile=/scratch/kocevski/514341/ft2_4FGL_J2250.4-4206_daily_bin981.fits outfile=/scratch/kocevski/514341/cmap_493603201_493862401_4FGL_J2250.4-4206_daily_bin981.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.44
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514341/ft1_filtered_4FGL_J2250.4-4206_daily_bin981.fits scfile=/scratch/kocevski/514341/ft2_4FGL_J2250.4-4206_daily_bin981.fits outfile=/scratch/kocevski/514341/cmap_HighResolution_493603201_493862401_4FGL_J2250.4-4206_daily_bin981.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.45
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514341/ft1_filtered_4FGL_J2250.4-4206_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/514341/ft2_4FGL_J2250.4-4206_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514341/Model_4FGL_J2250.4-4206_daily_bin981.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/514341/ft1_filtered_4FGL_J2250.4-4206_daily_bin981.fits.....................!
real 36.33
user 35.22
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1007       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6300       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.105       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.420       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14060E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.953       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.635       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.5648       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3689       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9648       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.038       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.3711       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .55016       1.0000         .10000E-03   10000.    
    29 'norm      '    12.033       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .53959       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=   6311.718     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     4163 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0361        .63795E-06** at limit **
   2  Prefactor     2.1024        4.7619       -.73330E-06   -.59872E-03
   3  Prefactor     .10000E-03    52.887       -.17490E-04** at limit **
   4  norm          .10000E-03    2.1061        .19561E-07** at limit **
   5  Prefactor     .10000E-03    4.6391        .18213E-05** at limit **
   6  Prefactor     3.6306        2.7502       -.11301E-06   -.18129E-03
   7  Prefactor     .10000E-03    14.527        .41731E-06** at limit **
   8  Prefactor     5.3151        4.3485        .57332E-06   -.12530E-03
   9  Prefactor     .10000E-03    4.8986       -.23672E-05** at limit **
  10  Prefactor     .10000E-03    6.7174       -.95099E-06** at limit **
  11  Prefactor     15.142        25.471       -.20153E-05    .39916E-04
  12  Prefactor     18.098        11.929       -.40582E-05    .18012E-03
  13  Prefactor     .10000E-03    113.28       -.53125E-04** at limit **
  14  Prefactor     31.422        11.661        .88661E-06   -.33920E-04
  15  Prefactor     6.8864        6.2780       -.28663E-06   -.14980E-03
  16  Prefactor     .10000E-03    55.649        .18714E-04** at limit **
  17  Prefactor     15.946        36.001       -.70988E-05   -.80866E-05
  18  Prefactor     26.638        16.096        .27142E-06    .70099E-04
  19  norm          .10000E-03    3.6196        .50469E-08** at limit **
  20  norm          6.5650        6.3911        .38109E-06    .10550E-04
  21  norm          2.3689        3.5506        .38587E-06   -.25976E-03
  22  norm          .10000E-03    2.1339       -.43644E-08** at limit **
  23  Prefactor     6.9658        6.1149       -.11728E-06   -.38631E-04
  24  Prefactor     11.040        29.557        .14789E-05   -.13172E-04
  25  Prefactor     .10000E-03    93.136        .42188E-04** at limit **
  26  norm          4.3714        3.7130       -.48878E-06   -.12695E-03
  27  Prefactor     .10000E-03    6.0822        .63502E-06** at limit **
  28  norm          .54966        1.3363       -.58367E-06   -.16934E-02
  29  norm          12.033        5.1836       -.23293E-06   -.73418E-04
  30  Normalizat    1.0437        .15493        .82315E-06   -.14548E-03
  31  Prefactor     .53968        .14810        .31833E-06   -.58644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.1024
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63057
  Prefactor  = 0.0001
  Prefactor  = 5.31507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1424
  Prefactor  = 18.0983
  Prefactor  = 0.000100002
  Prefactor  = 31.4224
  Prefactor  = 6.88635
  Prefactor  = 0.0001
  Prefactor  = 15.9465
  Prefactor  = 26.6377
  norm       = 0.0001
  norm       = 6.56503
  norm       = 2.36888
  norm       = 0.0001
  Prefactor  = 6.96581
  Prefactor  = 11.0405
  Prefactor  = 0.000100001
  norm       = 4.37139
  Prefactor  = 0.0001
  norm       = 0.549658
  norm       = 12.0329
  Normalizat = 1.0437
  Prefactor  = 0.539682
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.718     FROM HESSE     STATUS=OK           624 CALLS     4787 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1024        4.7612        .25289E-03   -1.5418    
   3  Prefactor     .10000E-03    52.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1089        .11260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7820        .33377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6306        2.7469        .10974E-03   -1.5327    
   7  Prefactor     .10000E-03    14.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3151        4.3397        .14078E-03   -1.5247    
   9  Prefactor     .10000E-03    4.9053        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.142        25.416        .10291E-03   -1.4930    
  12  Prefactor     18.098        11.872        .94129E-04   -1.4857    
  13  Prefactor     .10000E-03    112.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.422        11.689        .71482E-04   -1.4586    
  15  Prefactor     6.8864        6.2782        .15290E-03   -1.5183    
  16  Prefactor     .10000E-03    56.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.946        36.034        .10028E-03   -1.4909    
  18  Prefactor     26.638        15.787        .77623E-04   -1.4675    
  19  norm          .10000E-03    3.6238        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5650        6.3719        .15663E-03   -1.5195    
  21  norm          2.3689        3.5354        .17139E-03   -1.5400    
  22  norm          .10000E-03    2.1386        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.9658        6.0371        .15201E-03   -1.5180    
  24  Prefactor     11.040        29.446        .12059E-03   -1.5043    
  25  Prefactor     .10000E-03    93.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.3714        3.7048        .12330E-03   -1.5290    
  27  Prefactor     .10000E-03    6.0937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .54966        1.2822        .11907E-03   -1.5560    
  29  norm          12.033        5.1765        .10820E-03   -1.5014    
  30  Normalizat    1.0437        .18325        .20519E-03   -.91580    
  31  Prefactor     .53968        .17347        .27669E-03   -1.1019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38652e-09
Minuit parameter uncertainties:
  1  2.65181e-07
  2  4.76201
  3  0.000107086
  4  3.11918e-06
  5  2.73209e-05
  6  2.74695
  7  3.15659e-06
  8  4.33992
  9  2.85874e-06
  10  2.47876e-06
  11  25.434
  12  11.8738
  13  0.000940333
  14  11.6898
  15  6.27879
  16  0.000122502
  17  36.0829
  18  15.7898
  19  9.00377e-07
  20  6.37259
  21  3.53576
  22  2.96002e-06
  23  6.03758
  24  29.4844
  25  0.000439873
  26  3.70504
  27  8.84323e-06
  28  1.2823
  29  5.1767
  30  0.183357
  31  0.173639
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  6.886e+00  6.279e+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:  5.397e-01  1.736e-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.044e+00  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 342.606 -42.109
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/514341/likelihoodResults_493603201_493862401_4FGL_J2250.4-4206_daily_bin981.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) = 6311.68709659
delta logL = 0.0304513401625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6311.67044111
delta logL = 0.0471068201359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5657       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3160       1.0000          .0000       10.000    
     3 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54620       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=   6311.670     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      249 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5664        7.9068        .15385E-03    .75232E-03
   2  Index         2.3159        .85750        .59218E-02    .21597E-03
   3  Normalizat    1.0328        .17742        .20615E-03    .50979E-03
   4  Prefactor     .54620        .17360        .27517E-03    .43822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.56638
  Index      = 2.31591
  Normalizat = 1.03283
  Prefactor  = 0.546199
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.670     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5664        7.1031        .61540E-05   -1.5236    
   2  Index         2.3159        .76990        .23687E-03   -.56666    
   3  Normalizat    1.0328        .17662        .41230E-04   -.91938    
   4  Prefactor     .54620        .17318        .11007E-04   -1.0990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47546e-10
Minuit parameter uncertainties:
  1  7.10422
  2  0.774238
  3  0.176718
  4  0.173345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514341': 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) = 6311.67044111
delta logL = 0.0471068258912

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  5.566e+00  7.104e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.316e+00  7.742e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  5.462e-01  1.733e-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.033e+00  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 2.32 +/- 0.77
Photon Flux (Free Index): 3.34e-08 +/- 3.71e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.22e-05

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/514341/cmap_HighResolution_493603201_493862401_4FGL_J2250.4-4206_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='1.23e-05', photon_flux_error='2.36e-08', dlogl='4.71e-02', energy_flux='1.46e-05', photon_flux2='3.34e-08', job_status='DONE', time_completed='2021-09-28 22:52:05.773013', photon_index_error2='0.77', photon_index2='2.32', ts='1.88', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='7.94e-08', energy_flux_error2='1.22e-05', EG='1.04', time_epoch_completed='1632894725.77', return_code='0', job_id='514341', GAL2='0.55', EG2='1.03', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='3.71e-08', ts2='1.96', photon_index='2.09' WHERE bin_id='981' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 514341: <4FGL_J2250.4-4206_daily_bin981> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin981> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:36 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:37 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:37 2021
Terminated at Tue Sep 28 22:52:06 2021
Results reported at Tue Sep 28 22:52:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin981 342.606 -42.1095 493603201 493862401 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 :                                   675.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

