/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 113 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2250.0+3825_daily_bin81
RA = 342.514, Dec = 38.4247
tmin = 260323201, tmax = 260582401
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='491290', job_status='RUN', time_executed='2021-09-28 21:38:09.356907', time_epoch_executed='1632890289.36' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491290/ft1_4FGL_J2250.0+3825_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491290/ft1_4FGL_J2250.0+3825_daily_bin81.fits outfile=/scratch/kocevski/491290/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin81.fits ra=342.514 dec=38.4247 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.52
user 1.33
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.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/491290/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/491290/ltcube_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.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/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits
.....................!
real 12.34
user 11.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/491290/ltcube_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.fits outfile=/scratch/kocevski/491290/expmap_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.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/491290/ltcube_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.fits
.....................!
real 190.44
user 185.34
sys 4.75

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.fits scfile=/scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits outfile=/scratch/kocevski/491290/cmap_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.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.514 yref=38.4247 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.68
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.fits scfile=/scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits outfile=/scratch/kocevski/491290/cmap_HighResolution_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.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.514 yref=38.4247 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491290/Model_4FGL_J2250.0+3825_daily_bin81.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.fits.....................!
real 124.06
user 122.49
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.fits', '/scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits', expMap='/scratch/kocevski/491290/expmap_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.fits', expCube='/scratch/kocevski/491290/ltcube_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/491290/Model_4FGL_J2250.0+3825_daily_bin81.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/491290/ft1_filtered_4FGL_J2250.0+3825_daily_bin81.fits
Spacecraft file(s): /scratch/kocevski/491290/ft2_4FGL_J2250.0+3825_daily_bin81.fits
Exposure map: /scratch/kocevski/491290/expmap_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.fits
Exposure cube: /scratch/kocevski/491290/ltcube_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/491290/Model_4FGL_J2250.0+3825_daily_bin81.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) = 11008.4954246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0266       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.7948       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5705       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.756       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .59269       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4885       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0357       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29432E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3383       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11007.74     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     1926 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0264        .77374        .57096E-08    .17213E-03
   2  Prefactor     .10000E-03    8.3932       -.57897E-06** at limit **
   3  Prefactor     .10000E-03    11.477       -.13266E-06** at limit **
   4  norm          8.7949        1.8180       -.17351E-07   -.10179E-03
   5  Prefactor     .10000E-03    18.064       -.11634E-06** at limit **
   6  Prefactor     1.5701        2.8223       -.81309E-07    .14415E-04
   7  Prefactor     .10000E-03    9.4066        .80577E-06** at limit **
   8  norm          .10000E-03    .87835       -.73218E-08** at limit **
   9  Prefactor     29.351        19.415       -.17051E-06   -.36657E-06
  10  Prefactor     .10000E-03    2.0141        .55000E-07** at limit **
  11  Prefactor     10.798        25.672        .41560E-05   -.14048E-07
  12  norm          2.3709        1.2075       -.39075E-07    .53068E-05
  13  Prefactor     6.7973        13.115       -.12554E-05   -.70108E-05
  14  Prefactor     .10000E-03    7.4257        .98635E-07** at limit **
  15  norm          .58145        4.2736        .11902E-05    .53691E-04
  16  norm          .10000E-03    3.6690       -.30111E-07** at limit **
  17  Prefactor     9.4932        20.794        .14421E-06    .24398E-04
  18  norm          6.0364        3.7124       -.55689E-06    .24580E-05
  19  Prefactor     .10000E-03    58.158        .96663E-05** at limit **
  20  Normalizat    1.3378        .21870       -.32527E-07    .25156E-04
  21  Prefactor     .84793        .70792E-01    .81331E-07   -.12140E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.79492
  Prefactor  = 0.0001
  Prefactor  = 1.57007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.3509
  Prefactor  = 0.0001
  Prefactor  = 10.7976
  norm       = 2.37091
  Prefactor  = 6.79727
  Prefactor  = 0.0001
  norm       = 0.581448
  norm       = 0.0001
  Prefactor  = 9.4932
  norm       = 6.03636
  Prefactor  = 0.0001
  Normalizat = 1.33781
  Prefactor  = 0.847933
 **********
 **   18 **HESSE 
 **********

 FCN=   11007.74     FROM HESSE     STATUS=OK           323 CALLS     2249 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0264        .77122        .54422E-04   -1.5423    
   2  Prefactor     .10000E-03    8.4006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.7949        1.8239        .61753E-04   -1.5115    
   5  Prefactor     .10000E-03    18.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5701        2.7844        .22952E-03   -1.5457    
   7  Prefactor     .10000E-03    9.4160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .88074        .95942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.351        19.415        .73951E-04   -1.4624    
  10  Prefactor     .10000E-03    2.0245        .14539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.798        25.690        .12216E-03   -1.5051    
  12  norm          2.3709        1.2065        .79009E-04   -1.5400    
  13  Prefactor     6.7973        13.169        .15405E-03   -1.5186    
  14  Prefactor     .10000E-03    7.4279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58145        18.135        .30784E-02   -1.5555    
  16  norm          .10000E-03    3.6757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.4932        22.224        .13010E-03   -1.5092    
  18  norm          6.0364        3.7019        .74234E-03   -1.5217    
  19  Prefactor     .10000E-03    60.314        .60621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3378        .25350        .38889E-03   -.82445    
  21  Prefactor     .84793        .82296E-01    .16063E-03   -.97985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73578e-10
Minuit parameter uncertainties:
  1  0.771228
  2  3.9905e-06
  3  7.92617e-06
  4  1.82387
  5  1.80857e-06
  6  2.78461
  7  2.4848e-06
  8  2.90338e-07
  9  19.4192
  10  1.78566e-06
  11  25.7167
  12  1.20649
  13  13.1748
  14  8.58298e-07
  15  6.49599
  16  3.84282e-06
  17  22.2432
  18  3.70205
  19  0.00013317
  20  0.253736
  21  0.082308
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  2.935e+01  1.942e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  8.479e-01  8.231e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.338e+00  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 3.56e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 5.25e-05 +/- 3.47e-05

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) = 11007.5473426
delta logL = 0.194765131331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11007.5470318
delta logL = 0.195075901034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.619       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0085       1.0000          .0000       10.000    
     3 'Normalizat'    1.3217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84924       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   11007.55     FROM MIGRAD    STATUS=FAILED        91 CALLS      309 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.621        22.360        .88207E-04   -.13765E-03
   2  Index         2.0085        .49927        .55881E-02    .11244E-02
   3  Normalizat    1.3217        .23759        .39085E-03    .51194E-05
   4  Prefactor     .84920        .79911E-01    .16048E-03    .12774E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11007.55     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      382 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.621        22.360        .25330E-03   -1.4799    
   2  Index         2.0085        .49927        .61892E-03   -.64137    
   3  Normalizat    1.3217        .23759        .42095E-03   -.82920    
   4  Prefactor     .84920        .79911E-01    .17676E-03   -.97940    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11007.55     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      417 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.621        20.027        .35283E-05   -.38666E-05
   2  Index         2.0085        .44714        .11176E-02    .44998E-04
   3  Normalizat    1.3217        .23718        .15634E-04   -.29087E-06
   4  Prefactor     .84920        .79917E-01    .32096E-04   -.28337E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6206
  Index      = 2.00854
  Normalizat = 1.32173
  Prefactor  = 0.849197
 **********
 **   18 **HESSE 
 **********

 FCN=   11007.55     FROM HESSE     STATUS=OK            25 CALLS      442 TOTAL
                     EDM=   .28E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.621        19.560        .70566E-06   -1.4799    
   2  Index         2.0085        .43753        .22352E-03   -.64137    
   3  Normalizat    1.3217        .23710        .31268E-05   -.82920    
   4  Prefactor     .84920        .79908E-01    .64192E-05   -.97940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82269e-14
Minuit parameter uncertainties:
  1  19.566
  2  0.4384
  3  0.237293
  4  0.0799188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491290': 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) = 11007.5470314
delta logL = 0.19507638

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  2.062e+01  1.957e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  2.009e+00  4.384e-01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  8.492e-01  7.992e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.322e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.20
Ra Dec: 342.514 38.425
Photon Index (Free Index): 2.01 +/- 0.44
Photon Flux (Free Index): 5.40e-08 +/- 4.37e-08
Energy Flux (Free Index): 3.65e-05 +/- 2.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/491290/cmap_HighResolution_260323201_260582401_4FGL_J2250.0+3825_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.56e-08', energy_flux2='3.65e-05', photon_flux_error='2.36e-08', dlogl='1.95e-01', energy_flux='5.25e-05', photon_flux2='5.40e-08', job_status='DONE', time_completed='2021-09-28 21:50:47.784145', photon_index_error2='0.44', photon_index2='2.01', ts='8.82', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.88e-05', EG='1.34', time_epoch_completed='1632891047.78', return_code='0', job_id='491290', GAL2='0.85', EG2='1.32', return_code2='0', energy_flux_error='3.47e-05', photon_flux_error2='4.37e-08', ts2='9.20', photon_index='1.73' WHERE bin_id='81' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:50:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 491290: <4FGL_J2250.0+3825_daily_bin81> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin81> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:36:02 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:36:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:36:04 2021
Terminated at Tue Sep 28 21:50:48 2021
Results reported at Tue Sep 28 21:50:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin81 342.514 38.4247 260323201 260582401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.0+3825 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

