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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin680
RA = 342.514, Dec = 38.4247
tmin = 415584001, tmax = 415843201
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='494188', job_status='RUN', time_executed='2021-09-28 21:46:01.442222', time_epoch_executed='1632890761.44' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494188/ft1_4FGL_J2250.0+3825_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494188/ft2_4FGL_J2250.0+3825_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494188/ft1_4FGL_J2250.0+3825_daily_bin680.fits outfile=/scratch/kocevski/494188/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin680.fits ra=342.514 dec=38.4247 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.30
user 6.05
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494188/ft2_4FGL_J2250.0+3825_daily_bin680.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/494188/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin680.fits evtable="EVENTS" outfile="/scratch/kocevski/494188/ft1_filtered_4FGL_J2250.0+3825_daily_bin680.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494188/ft1_filtered_4FGL_J2250.0+3825_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/494188/ft2_4FGL_J2250.0+3825_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/494188/ltcube_415584001_415843201_4FGL_J2250.0+3825_daily_bin680.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/494188/ft2_4FGL_J2250.0+3825_daily_bin680.fits
.....................!
real 12.03
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494188/ft1_filtered_4FGL_J2250.0+3825_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/494188/ft2_4FGL_J2250.0+3825_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/494188/ltcube_415584001_415843201_4FGL_J2250.0+3825_daily_bin680.fits outfile=/scratch/kocevski/494188/expmap_415584001_415843201_4FGL_J2250.0+3825_daily_bin680.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/494188/ltcube_415584001_415843201_4FGL_J2250.0+3825_daily_bin680.fits
.....................!
real 191.26
user 185.26
sys 5.63

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/494188/ft1_filtered_4FGL_J2250.0+3825_daily_bin680.fits scfile=/scratch/kocevski/494188/ft2_4FGL_J2250.0+3825_daily_bin680.fits outfile=/scratch/kocevski/494188/cmap_415584001_415843201_4FGL_J2250.0+3825_daily_bin680.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494188/ft1_filtered_4FGL_J2250.0+3825_daily_bin680.fits scfile=/scratch/kocevski/494188/ft2_4FGL_J2250.0+3825_daily_bin680.fits outfile=/scratch/kocevski/494188/cmap_HighResolution_415584001_415843201_4FGL_J2250.0+3825_daily_bin680.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/494188/ft1_filtered_4FGL_J2250.0+3825_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/494188/ft2_4FGL_J2250.0+3825_daily_bin680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494188/Model_4FGL_J2250.0+3825_daily_bin680.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/494188/ft1_filtered_4FGL_J2250.0+3825_daily_bin680.fits.....................!
real 79.76
user 78.32
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5327       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8667       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11631E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6585       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6174       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5290       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3515       1.0000         .10000E-03   10000.    
    16 'norm      '    13.626       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.186       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0521       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0652       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94828       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=   6240.834     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2219 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5324        1.4453       -.26387E-08   -.29030E-03
   2  Prefactor     .10001E-03    14.709       -.64078E-05** at limit **
   3  Prefactor     .10001E-03    14.228        .60861E-05** at limit **
   4  norm          1.8667        1.9886        .16961E-07   -.20854E-03
   5  Prefactor     .10000E-03    76.558        .17707E-05** at limit **
   6  Prefactor     .10005E-03    5.4733        .12283E-05** at limit **
   7  Prefactor     .10000E-03    38.953       -.95070E-06** at limit **
   8  norm          .10000E-03    1.8023       -.76062E-08** at limit **
   9  Prefactor     9.5360        31.480       -.19310E-05   -.71934E-04
  10  Prefactor     4.6203        5.6520        .15845E-08   -.77856E-04
  11  Prefactor     .10000E-03    12.250        .87566E-07** at limit **
  12  norm          5.9772        2.5820       -.11947E-07   -.78670E-04
  13  Prefactor     8.5289        16.210        .45463E-06   -.45036E-03
  14  Prefactor     .10000E-03    11.853       -.24433E-05** at limit **
  15  norm          5.3542        7.6782        .24308E-05   -.15466E-02
  16  norm          13.625        14.431       -.48580E-07   -.18469E-04
  17  Prefactor     69.174        37.041       -.27559E-05   -.26249E-03
  18  norm          5.0516        4.1464       -.40555E-07   -.44985E-04
  19  Prefactor     .10000E-03    11.683        .18067E-05** at limit **
  20  Normalizat    1.0651        .32003        .77227E-06   -.10445E-03
  21  Prefactor     .94837        .10267       -.21064E-06   -.21017E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5324
  Prefactor  = 0.000100008
  Prefactor  = 0.000100007
  norm       = 1.86669
  Prefactor  = 0.000100001
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.53599
  Prefactor  = 4.62028
  Prefactor  = 0.0001
  norm       = 5.9772
  Prefactor  = 8.52888
  Prefactor  = 0.000100001
  norm       = 5.35416
  norm       = 13.6251
  Prefactor  = 69.174
  norm       = 5.05164
  Prefactor  = 0.000100001
  Normalizat = 1.06509
  Prefactor  = 0.948368
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.834     FROM HESSE     STATUS=OK           317 CALLS     2536 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5324        1.4485        .51406E-04   -1.5282    
   2  Prefactor     .10001E-03    15.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    14.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8667        1.9790        .10937E-03   -1.5435    
   5  Prefactor     .10000E-03    76.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    25.541        .34988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8071        .10351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5360        31.562        .12894E-03   -1.5090    
  10  Prefactor     4.6203        5.6415        .18731E-03   -1.5278    
  11  Prefactor     .10000E-03    12.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9772        2.5893        .79113E-04   -1.5219    
  13  Prefactor     8.5289        16.765        .68631E-03   -1.5124    
  14  Prefactor     .10000E-03    11.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3542        10.766        .86862E-03   -1.5245    
  16  norm          13.625        14.431        .10851E-03   -1.4970    
  17  Prefactor     69.174        38.951        .48258E-04   -1.4043    
  18  norm          5.0516        4.1423        .13685E-03   -1.5258    
  19  Prefactor     .10000E-03    11.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0651        .36682        .45941E-03   -.90881    
  21  Prefactor     .94837        .11900        .16093E-03   -.94471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17321e-09
Minuit parameter uncertainties:
  1  1.44855
  2  0.000700164
  3  0.000641228
  4  1.97905
  5  0.000427851
  6  0.00230967
  7  0.000167135
  8  3.24264e-06
  9  31.6169
  10  5.6421
  11  9.68448e-06
  12  2.58935
  13  16.7745
  14  0.000230334
  15  10.7694
  16  14.4344
  17  38.9657
  18  4.14249
  19  0.000172534
  20  0.367701
  21  0.119035
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  9.536e+00  3.162e+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.484e-01  1.190e-01  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.065e+00  3.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 342.514 38.425
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494188/likelihoodResults_415584001_415843201_4FGL_J2250.0+3825_daily_bin680.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) = 6240.67958606
delta logL = 0.154155123984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6240.66676554
delta logL = 0.166975642897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8783       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2662       1.0000          .0000       10.000    
     3 'Normalizat'    1.0474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94782       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=   6240.667     FROM MIGRAD    STATUS=FAILED       107 CALLS      284 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8651        34.041        .76489E-03   -.84125E-05
   2  Index         2.2661        1.4520        .74117E-02    .68657E-03
   3  Normalizat    1.0475        .34742        .46280E-03    .58662E-04
   4  Prefactor     .94783        .11596        .16093E-03    .19411E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6240.667     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      360 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8651        34.041        .31636E-03   -1.5184    
   2  Index         2.2661        1.4520        .10555E-02   -.57850    
   3  Normalizat    1.0475        .34742        .48520E-03   -.91456    
   4  Prefactor     .94783        .11596        .11181E-03   -.94489    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6240.667     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      390 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8651        19.311        .30596E-04   -.18579E-05
   2  Index         2.2661        .92872        .14823E-02    .26888E-04
   3  Normalizat    1.0475        .34542        .18512E-04   -.12283E-06
   4  Prefactor     .94783        .11536        .32186E-04   -.21193E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.86512
  Index      = 2.26615
  Normalizat = 1.04749
  Prefactor  = 0.947829
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.667     FROM HESSE     STATUS=OK            25 CALLS      415 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8651        18.553        .12238E-05   -1.5184    
   2  Index         2.2661        .89217        .29647E-03   -.57850    
   3  Normalizat    1.0475        .34516        .37024E-05   -.91456    
   4  Prefactor     .94783        .11530        .64373E-05   -.94489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43822e-14
Minuit parameter uncertainties:
  1  18.5689
  2  0.899064
  3  0.345898
  4  0.115331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494188': 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) = 6240.66676473
delta logL = 0.166976445989

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  6.865e+00  1.857e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  2.266e+00  8.991e-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:  9.478e-01  1.153e-01  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.047e+00  3.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 342.514 38.425

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/494188/cmap_HighResolution_415584001_415843201_4FGL_J2250.0+3825_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-28 21:56:51.301289', job_id='494188', GAL2='0.95', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1632891411.3', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.67e-01', ts2='0.45', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='680' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:56:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 494188: <4FGL_J2250.0+3825_daily_bin680> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin680> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:45:46 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:45:47 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:45:47 2021
Terminated at Tue Sep 28 21:56:51 2021
Results reported at Tue Sep 28 21:56:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin680 342.514 38.4247 415584001 415843201 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            665 sec.

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

