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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin47
RA = 342.514, Dec = 38.4247
tmin = 251510401, tmax = 251769601
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='491253', job_status='RUN', time_executed='2021-09-28 21:38:44.881473', time_epoch_executed='1632890324.88' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491253/ft1_4FGL_J2250.0+3825_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491253/ft1_4FGL_J2250.0+3825_daily_bin47.fits outfile=/scratch/kocevski/491253/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin47.fits ra=342.514 dec=38.4247 rad=12.0 tmin=251510401.0 tmax=251769601.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.46
user 1.28
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.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/491253/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin47.fits evtable="EVENTS" outfile="/scratch/kocevski/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/491253/ltcube_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.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/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits
.....................!
real 12.54
user 12.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/491253/ltcube_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.fits outfile=/scratch/kocevski/491253/expmap_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.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/491253/ltcube_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.fits
.....................!
real 191.31
user 185.86
sys 5.14

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/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.fits scfile=/scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits outfile=/scratch/kocevski/491253/cmap_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.fits scfile=/scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits outfile=/scratch/kocevski/491253/cmap_HighResolution_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491253/Model_4FGL_J2250.0+3825_daily_bin47.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/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.fits.....................!
real 110.14
user 108.81
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.fits', '/scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits', expMap='/scratch/kocevski/491253/expmap_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.fits', expCube='/scratch/kocevski/491253/ltcube_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/491253/Model_4FGL_J2250.0+3825_daily_bin47.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/491253/ft1_filtered_4FGL_J2250.0+3825_daily_bin47.fits
Spacecraft file(s): /scratch/kocevski/491253/ft2_4FGL_J2250.0+3825_daily_bin47.fits
Exposure map: /scratch/kocevski/491253/expmap_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.fits
Exposure cube: /scratch/kocevski/491253/ltcube_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/491253/Model_4FGL_J2250.0+3825_daily_bin47.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) = 9434.18999478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44133       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1790       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5652       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9443       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.372       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.290       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0486       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.856       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.768       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3311       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6796       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9718       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97073       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93830       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=   9434.185     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2238 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44117        .43134       -.68830E-07   -.12175E-02
   2  Prefactor     .10000E-03    3.8798        .12870E-07** at limit **
   3  Prefactor     .10000E-03    2.4405       -.16017E-07** at limit **
   4  norm          1.1792        .94208       -.75545E-07   -.29642E-03
   5  Prefactor     .10001E-03    68.498        .17365E-04** at limit **
   6  Prefactor     8.5652        6.8565       -.15967E-05    .32144E-03
   7  Prefactor     6.9466        20.806       -.22340E-05   -.74992E-05
   8  norm          .10000E-03    1.2130        .13321E-06** at limit **
   9  Prefactor     .81088        15.109       -.36496E-05    .42354E-03
  10  Prefactor     11.377        8.1280       -.27115E-05    .71549E-03
  11  Prefactor     18.293        34.157        .48860E-05    .13271E-06
  12  norm          2.0498        1.7636       -.14392E-06   -.19885E-03
  13  Prefactor     29.855        17.540       -.13290E-05    .28011E-03
  14  Prefactor     .10000E-03    9.5026        .23520E-06** at limit **
  15  norm          13.785        8.7143        .49641E-05    .75220E-03
  16  norm          .10000E-03    4.1047       -.29268E-07** at limit **
  17  Prefactor     3.2719        41.395       -.45567E-04    .65884E-04
  18  norm          1.6812        2.6035       -.39781E-06   -.87784E-03
  19  Prefactor     8.9739        24.036        .77491E-06   -.89240E-05
  20  Normalizat    .97026        .24126        .76409E-05    .15114E-03
  21  Prefactor     .93849        .75616E-01   -.90129E-06    .90251E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.441166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17919
  Prefactor  = 0.000100005
  Prefactor  = 8.56516
  Prefactor  = 6.94664
  norm       = 0.0001
  Prefactor  = 0.81088
  Prefactor  = 11.3768
  Prefactor  = 18.2927
  norm       = 2.04979
  Prefactor  = 29.8555
  Prefactor  = 0.0001
  norm       = 13.785
  norm       = 0.0001
  Prefactor  = 3.27187
  norm       = 1.68116
  Prefactor  = 8.97394
  Normalizat = 0.970259
  Prefactor  = 0.938488
 **********
 **   18 **HESSE 
 **********

 FCN=   9434.185     FROM HESSE     STATUS=OK           327 CALLS     2565 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44117        .40986        .61062E-03   -1.5575    
   2  Prefactor     .10000E-03    3.8812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4423        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1792        .92500        .78202E-04   -1.5491    
   5  Prefactor     .10001E-03    68.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5652        6.8435        .13697E-03   -1.5123    
   7  Prefactor     6.9466        20.716        .15224E-03   -1.5181    
   8  norm          .10000E-03    1.2152        .10437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81088        109.69        .71013E-02   -1.5528    
  10  Prefactor     11.377        8.0814        .11880E-03   -1.5033    
  11  Prefactor     18.293        34.054        .93652E-04   -1.4852    
  12  norm          2.0498        1.7506        .11065E-03   -1.5422    
  13  Prefactor     29.855        17.543        .73326E-04   -1.4615    
  14  Prefactor     .10000E-03    9.5206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.785        8.7155        .10795E-03   -1.4965    
  16  norm          .10000E-03    4.1079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2719        42.153        .22177E-03   -1.5346    
  18  norm          1.6812        2.5812        .18686E-03   -1.5449    
  19  Prefactor     8.9739        24.039        .13381E-03   -1.5109    
  20  Normalizat    .97026        .26445        .42930E-03   -.94034    
  21  Prefactor     .93849        .83706E-01    .14997E-03   -.94809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03934e-08
Minuit parameter uncertainties:
  1  0.409863
  2  1.34377e-06
  3  1.47517e-06
  4  0.925015
  5  0.00120537
  6  6.8441
  7  20.7373
  8  1.31365e-05
  9  18.8963
  10  8.08219
  11  34.0902
  12  1.75064
  13  17.5457
  14  2.78846e-05
  15  8.71634
  16  6.32065e-07
  17  23.5079
  18  2.58141
  19  24.0649
  20  0.264804
  21  0.083718
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  8.109e-01  1.890e+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:  9.385e-01  8.372e-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:  9.703e-01  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 342.514 38.425
Photon Flux Upper Limit: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491253/likelihoodResults_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.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) = 9431.21968201
delta logL = 2.96499027207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9431.0956817
delta logL = 3.08899057906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32677E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.2574       1.0000          .0000       10.000    
     3 'Normalizat'    .78806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96795       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.

 FCN=   9431.096     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      283 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32631E-01    .17105        .17689E-02    .61526E-02
   2  Index         4.2578        1.0923        .53551E-01    .46719E-03
   3  Normalizat    .78798        .68588E-01    .10590        .49820E-04
   4  Prefactor     .96797        .23444E-01    .33400E-01   -.10420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0326311
  Index      = 4.25784
  Normalizat = 0.787978
  Prefactor  = 0.96797
 **********
 **   18 **HESSE 
 **********

 FCN=   9431.096     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32631E-01    .34516        .79260E-05   -1.5672    
   2  Index         4.2578        1.7646        .21325E-02   -.14898    
   3  Normalizat    .78798        .21934        .46946E-03   -1.0052    
   4  Prefactor     .96797        .74387E-01    .14759E-03   -.93805    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.64913e-07
Minuit parameter uncertainties:
  1  0.211931
  2  1.80435
  3  0.219583
  4  0.0743953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491253': 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) = 9431.09568152
delta logL = 3.08899076498

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.263e-02  2.119e-01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  4.258e+00  1.804e+00  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:  9.680e-01  7.440e-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:  7.880e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.69
Ra Dec: 342.514 38.425
Photon Index (Free Index): 4.26 +/- 1.80
Photon Flux (Free Index): 1.81e-07 +/- 8.42e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.31e-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/491253/cmap_HighResolution_251510401_251769601_4FGL_J2250.0+3825_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', comment='SUCCESS', energy_flux2='2.60e-05', dlogl='3.09e+00', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-28 21:52:01.071525', photon_index_error2='1.80', photon_index2='4.26', ts='0.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='6.77e-08', energy_flux_error2='1.31e-05', EG='0.97', time_epoch_completed='1632891121.07', return_code='0', job_id='491253', GAL2='0.97', EG2='0.79', return_code2='102', photon_flux_error2='8.42e-08', ts2='6.69', photon_index='1.73' WHERE bin_id='47' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:52:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 491253: <4FGL_J2250.0+3825_daily_bin47> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin47> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:35:58 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:36:00 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:00 2021
Terminated at Tue Sep 28 21:52:01 2021
Results reported at Tue Sep 28 21:52:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin47 342.514 38.4247 251510401 251769601 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 :                                   795.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

