/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 59 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7400
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1130
RA = 342.606, Dec = -42.1095
tmin = 532224001, tmax = 532483201
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='515628', job_status='RUN', time_executed='2021-09-28 22:46:27.065637', time_epoch_executed='1632894387.07' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515628/ft1_4FGL_J2250.4-4206_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515628/ft2_4FGL_J2250.4-4206_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515628/ft1_4FGL_J2250.4-4206_daily_bin1130.fits outfile=/scratch/kocevski/515628/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1130.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=532224001.0 tmax=532483201.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.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515628/ft1_filtered_4FGL_J2250.4-4206_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/515628/ft2_4FGL_J2250.4-4206_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/515628/ltcube_532224001_532483201_4FGL_J2250.4-4206_daily_bin1130.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/515628/ft2_4FGL_J2250.4-4206_daily_bin1130.fits
.....................!
real 12.30
user 11.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515628/ft1_filtered_4FGL_J2250.4-4206_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/515628/ft2_4FGL_J2250.4-4206_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/515628/ltcube_532224001_532483201_4FGL_J2250.4-4206_daily_bin1130.fits outfile=/scratch/kocevski/515628/expmap_532224001_532483201_4FGL_J2250.4-4206_daily_bin1130.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/515628/ltcube_532224001_532483201_4FGL_J2250.4-4206_daily_bin1130.fits
.....................!
real 191.03
user 185.30
sys 5.32

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/515628/ft1_filtered_4FGL_J2250.4-4206_daily_bin1130.fits scfile=/scratch/kocevski/515628/ft2_4FGL_J2250.4-4206_daily_bin1130.fits outfile=/scratch/kocevski/515628/cmap_532224001_532483201_4FGL_J2250.4-4206_daily_bin1130.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515628/ft1_filtered_4FGL_J2250.4-4206_daily_bin1130.fits scfile=/scratch/kocevski/515628/ft2_4FGL_J2250.4-4206_daily_bin1130.fits outfile=/scratch/kocevski/515628/cmap_HighResolution_532224001_532483201_4FGL_J2250.4-4206_daily_bin1130.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.606 yref=-42.1095 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/515628/ft1_filtered_4FGL_J2250.4-4206_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/515628/ft2_4FGL_J2250.4-4206_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515628/Model_4FGL_J2250.4-4206_daily_bin1130.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/515628/ft1_filtered_4FGL_J2250.4-4206_daily_bin1130.fits.....................!
real 36.30
user 34.97
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6396       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0914       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5535       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26280E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2354       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.011       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11901E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.856       1.0000         .10000E-03   10000.    
    13 'Prefactor '    80.997       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.314       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.329       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.600       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5500       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.460       1.0000         .10000E-03   10000.    
    25 'Prefactor '    80.351       1.0000         .10000E-03   10000.    
    26 'norm      '    5.4094       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1998       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .78062       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=   4161.572     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     4194 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6303        40.345        .13322E-05    .72563E-04
   2  Prefactor     2.0872        10.713       -.49601E-06    .31416E-03
   3  Prefactor     .10000E-03    93.809        .49210E-06** at limit **
   4  norm          .10000E-03    3.5012       -.69087E-07** at limit **
   5  Prefactor     16.849        12.682       -.33662E-07    .14497E-03
   6  Prefactor     4.5497        4.0987       -.13942E-07    .24871E-03
   7  Prefactor     .10003E-03    350.23       -.27529E-05** at limit **
   8  Prefactor     4.2332        5.2878        .10861E-06    .37484E-03
   9  Prefactor     19.058        34.065       -.49069E-06    .86367E-04
  10  Prefactor     .49204        497.20        .73874E-04   -.94004E-05
  11  Prefactor     .10001E-03    76.637       -.22513E-05** at limit **
  12  Prefactor     13.847        16.051        .56445E-06    .52530E-04
  13  Prefactor     80.719        108.54        .14757E-05    .92480E-04
  14  Prefactor     10.313        12.020       -.33955E-07    .42125E-04
  15  Prefactor     11.333        9.5919       -.87527E-07    .17767E-03
  16  Prefactor     .10000E-03    14.819       -.10470E-06** at limit **
  17  Prefactor     72.040        80.554       -.13165E-06    .31591E-04
  18  Prefactor     29.597        18.965        .40742E-06    .33943E-03
  19  norm          .10000E-03    8.7550       -.15876E-06** at limit **
  20  norm          .10000E-03    2.5714       -.13964E-07** at limit **
  21  norm          .10000E-03    2.7366       -.12824E-07** at limit **
  22  norm          .10000E-03    5.8163       -.23567E-06** at limit **
  23  Prefactor     4.5515        5.9488        .19258E-06    .40971E-03
  24  Prefactor     27.456        44.073        .17762E-08    .23469E-04
  25  Prefactor     80.303        89.566        .52357E-07    .26645E-04
  26  norm          5.4099        5.7002       -.62482E-07    .11442E-03
  27  Prefactor     .10000E-03    18.700       -.29977E-06** at limit **
  28  norm          .10000E-03    .81050        .28340E-07** at limit **
  29  norm          .10000E-03    3.2141       -.21378E-06** at limit **
  30  Normalizat    1.2003        .23448        .20750E-06    .69394E-03
  31  Prefactor     .78026        .21836        .66465E-06    .47905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63025
  Prefactor  = 2.08722
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8487
  Prefactor  = 4.54973
  Prefactor  = 0.000100027
  Prefactor  = 4.23325
  Prefactor  = 19.0579
  Prefactor  = 0.492045
  Prefactor  = 0.00010001
  Prefactor  = 13.847
  Prefactor  = 80.7188
  Prefactor  = 10.3125
  Prefactor  = 11.3325
  Prefactor  = 0.0001
  Prefactor  = 72.0403
  Prefactor  = 29.5971
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.55153
  Prefactor  = 27.4562
  Prefactor  = 80.3027
  norm       = 5.40993
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.20032
  Prefactor  = 0.780259
 **********
 **   18 **HESSE 
 **********

 FCN=   4161.572     FROM HESSE     STATUS=OK           628 CALLS     4822 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6303        39.841        .13637E-03   -1.5120    
   2  Prefactor     2.0872        10.567        .28545E-03   -1.5419    
   3  Prefactor     .10000E-03    93.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.5036        .11789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.849        12.701        .97575E-04   -1.4887    
   6  Prefactor     4.5497        4.0931        .11906E-03   -1.5281    
   7  Prefactor     .10003E-03    361.43        .39935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2332        5.2784        .15940E-03   -1.5296    
   9  Prefactor     19.058        33.978        .91859E-04   -1.4835    
  10  Prefactor     .49204        47.072        .10278       -1.5568    
  11  Prefactor     .10001E-03    78.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.847        16.064        .10760E-03   -1.4964    
  13  Prefactor     80.719        108.62        .22314E-03   -1.3909    
  14  Prefactor     10.313        12.031        .12476E-03   -1.5066    
  15  Prefactor     11.333        9.5854        .11902E-03   -1.5035    
  16  Prefactor     .10000E-03    14.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.040        80.624        .47299E-04   -1.4008    
  18  Prefactor     29.597        18.871        .73641E-04   -1.4619    
  19  norm          .10000E-03    8.7792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5716        .10103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7375        .10418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8402        .15197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5515        5.9149        .17258E-03   -1.5281    
  24  Prefactor     27.456        44.236        .76450E-04   -1.4660    
  25  Prefactor     80.303        89.972        .22402E-03   -1.3913    
  26  norm          5.4099        5.6994        .13787E-03   -1.5243    
  27  Prefactor     .10000E-03    18.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.2951        .11130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    3.2297        .11290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2003        .28563        .24152E-03   -.86593    
  31  Prefactor     .78026        .26151        .28524E-03   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78957e-09
Minuit parameter uncertainties:
  1  37.1262
  2  9.39497
  3  0.000381436
  4  2.45399e-05
  5  12.7028
  6  4.09339
  7  0.0062395
  8  5.27893
  9  34.0121
  10  9.63208
  11  0.0017721
  12  16.0687
  13  108.892
  14  12.0339
  15  9.58667
  16  6.35989e-05
  17  80.7461
  18  18.8745
  19  3.32336e-05
  20  1.88234e-06
  21  1.07383e-05
  22  0.000133318
  23  5.91562
  24  44.2893
  25  90.1247
  26  5.69992
  27  0.000170925
  28  1.73266e-05
  29  4.41804e-05
  30  0.286007
  31  0.261922
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.133e+01  9.587e+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:  7.803e-01  2.619e-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.200e+00  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 342.606 -42.109
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.25e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 2.03e-05

TS (Fixed Index): 2.76
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515628/likelihoodResults_532224001_532483201_4FGL_J2250.4-4206_daily_bin1130.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) = 4161.40122947
delta logL = 0.170980817179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4161.3977536
delta logL = 0.174456687732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1063       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5113       1.0000          .0000       10.000    
     3 'Normalizat'    1.1726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79689       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=   4161.398     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      299 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1086        11.006        .12489E-03    .96308E-03
   2  Index         2.5104        .86473        .45988E-02    .29227E-03
   3  Normalizat    1.1727        .27243        .24392E-03    .72955E-03
   4  Prefactor     .79678        .26166        .28252E-03    .78396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.10863
  Index      = 2.51043
  Normalizat = 1.17265
  Prefactor  = 0.796776
 **********
 **   18 **HESSE 
 **********

 FCN=   4161.398     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1086        9.6419        .49957E-05   -1.5175    
   2  Index         2.5104        .75781        .18395E-03   -.52119    
   3  Normalizat    1.1727        .27139        .48785E-04   -.87452    
   4  Prefactor     .79678        .26111        .56504E-04   -.99847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8235e-09
Minuit parameter uncertainties:
  1  9.64397
  2  0.761717
  3  0.271719
  4  0.261513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515628': 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) = 4161.39775159
delta logL = 0.174458693279

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  7.109e+00  9.644e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.510e+00  7.617e-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:  7.968e-01  2.615e-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.173e+00  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 2.51 +/- 0.76
Photon Flux (Free Index): 6.52e-08 +/- 6.18e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.50e-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/515628/cmap_HighResolution_532224001_532483201_4FGL_J2250.4-4206_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.70e-03', comment='SUCCESS', photon_flux='4.25e-08', energy_flux2='1.87e-05', photon_flux_error='3.60e-08', dlogl='1.74e-01', energy_flux='2.40e-05', photon_flux2='6.52e-08', job_status='DONE', time_completed='2021-09-28 22:59:00.091123', photon_index_error2='0.76', photon_index2='2.51', ts='2.76', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.50e-05', EG='1.20', time_epoch_completed='1632895140.09', return_code='0', job_id='515628', GAL2='0.80', EG2='1.17', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='6.18e-08', ts2='3.09', photon_index='2.09' WHERE bin_id='1130' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:59:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 515628: <4FGL_J2250.4-4206_daily_bin1130> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1130> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:45:19 2021
Job was executed on host(s) <bullet0104>, 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 22:59:00 2021
Results reported at Tue Sep 28 22:59:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1130 342.606 -42.1095 532224001 532483201 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 :                                   690.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

