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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin1140
RA = 342.514, Dec = 38.4247
tmin = 534816001, tmax = 535075201
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='496886', job_status='RUN', time_executed='2021-09-28 21:55:24.747426', time_epoch_executed='1632891324.75' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496886/ft1_4FGL_J2250.0+3825_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496886/ft2_4FGL_J2250.0+3825_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496886/ft1_4FGL_J2250.0+3825_daily_bin1140.fits outfile=/scratch/kocevski/496886/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1140.fits ra=342.514 dec=38.4247 rad=12.0 tmin=534816001.0 tmax=535075201.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.62
user 3.39
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496886/ft1_filtered_4FGL_J2250.0+3825_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/496886/ft2_4FGL_J2250.0+3825_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/496886/ltcube_534816001_535075201_4FGL_J2250.0+3825_daily_bin1140.fits outfile=/scratch/kocevski/496886/expmap_534816001_535075201_4FGL_J2250.0+3825_daily_bin1140.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/496886/ltcube_534816001_535075201_4FGL_J2250.0+3825_daily_bin1140.fits
.....................!
real 192.10
user 186.27
sys 5.51

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/496886/ft1_filtered_4FGL_J2250.0+3825_daily_bin1140.fits scfile=/scratch/kocevski/496886/ft2_4FGL_J2250.0+3825_daily_bin1140.fits outfile=/scratch/kocevski/496886/cmap_534816001_535075201_4FGL_J2250.0+3825_daily_bin1140.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496886/ft1_filtered_4FGL_J2250.0+3825_daily_bin1140.fits scfile=/scratch/kocevski/496886/ft2_4FGL_J2250.0+3825_daily_bin1140.fits outfile=/scratch/kocevski/496886/cmap_HighResolution_534816001_535075201_4FGL_J2250.0+3825_daily_bin1140.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.4216       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.983       1.0000         .10000E-03   10000.    
     8 'norm      '    14.915       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1969       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5410       1.0000         .10000E-03   10000.    
    12 'norm      '    .70715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.087       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.925       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.692       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6379       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4105       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82853       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=   10399.91     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2198 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.941        1.4868        .24569E-08    .26321E-03
   2  Prefactor     .10000E-03    10.199       -.75642E-07** at limit **
   3  Prefactor     .10000E-03    29.518       -.23108E-05** at limit **
   4  norm          7.4217        2.1248        .25291E-06   -.82135E-04
   5  Prefactor     .10000E-03    41.062       -.44534E-05** at limit **
   6  Prefactor     .10000E-03    7.6507       -.21521E-06** at limit **
   7  Prefactor     22.974        27.672       -.56886E-05   -.29176E-03
   8  norm          14.917        5.2197        .54825E-06    .54086E-03
   9  Prefactor     5.1966        15.522        .90476E-06   -.32555E-03
  10  Prefactor     .10000E-03    3.2985       -.41322E-07** at limit **
  11  Prefactor     2.5406        12.164        .36737E-05   -.62145E-03
  12  norm          .70668        1.2648        .37031E-07   -.50873E-03
  13  Prefactor     .10000E-03    35.017        .61870E-05** at limit **
  14  Prefactor     37.087        27.469       -.42023E-06   -.40343E-04
  15  norm          .10000E-03    2.3890       -.24752E-07** at limit **
  16  norm          11.925        14.013       -.48617E-07   -.43012E-04
  17  Prefactor     10.691        14.691       -.54118E-07   -.22380E-04
  18  norm          5.6381        3.1028        .34374E-07   -.58754E-03
  19  Prefactor     .10000E-03    8.5055        .27692E-06** at limit **
  20  Normalizat    1.4106        .24191        .70934E-07   -.80121E-04
  21  Prefactor     .82852        .78412E-01   -.10206E-06   -.54380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.42173
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 22.9742
  norm       = 14.917
  Prefactor  = 5.19656
  Prefactor  = 0.0001
  Prefactor  = 2.54056
  norm       = 0.706679
  Prefactor  = 0.000100002
  Prefactor  = 37.0866
  norm       = 0.0001
  norm       = 11.9245
  Prefactor  = 10.6909
  norm       = 5.63812
  Prefactor  = 0.0001
  Normalizat = 1.41062
  Prefactor  = 0.828516
 **********
 **   18 **HESSE 
 **********

 FCN=   10399.91     FROM HESSE     STATUS=OK           319 CALLS     2517 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.941        1.4896        .43610E-04   -1.5046    
   2  Prefactor     .10000E-03    10.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.4217        2.1331        .72727E-04   -1.5163    
   5  Prefactor     .10000E-03    41.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.974        28.243        .83552E-04   -1.4749    
   8  norm          14.917        5.2332        .10371E-03   -1.4935    
   9  Prefactor     5.1966        16.059        .88169E-03   -1.5252    
  10  Prefactor     .10000E-03    3.3148        .18082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5406        24.896        .12809E-02   -1.5389    
  12  norm          .70668        1.0853        .14520E-02   -1.5540    
  13  Prefactor     .10000E-03    35.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.087        27.480        .65810E-04   -1.4489    
  15  norm          .10000E-03    2.4056        .15379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.925        14.012        .11601E-03   -1.5017    
  17  Prefactor     10.691        14.691        .12253E-03   -1.5054    
  18  norm          5.6381        3.1089        .64244E-03   -1.5233    
  19  Prefactor     .10000E-03    8.5102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4106        .27554        .41661E-03   -.80322    
  21  Prefactor     .82852        .90505E-01    .17384E-03   -.98686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14911e-08
Minuit parameter uncertainties:
  1  1.48957
  2  3.25591e-06
  3  0.000211106
  4  2.13311
  5  0.000506483
  6  7.2656e-05
  7  28.259
  8  5.23337
  9  16.0723
  10  9.6677e-06
  11  15.9141
  12  1.08531
  13  0.000487561
  14  27.4894
  15  4.55868e-08
  16  14.0156
  17  14.6956
  18  3.10897
  19  1.39325e-05
  20  0.275833
  21  0.0905212
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  5.197e+00  1.607e+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.285e-01  9.052e-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.411e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/496886/likelihoodResults_534816001_535075201_4FGL_J2250.0+3825_daily_bin1140.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) = 10399.4616718
delta logL = 0.453240545692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10399.4305918
delta logL = 0.484320577816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5111       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8204       1.0000          .0000       10.000    
     3 'Normalizat'    1.3673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83322       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=   10399.43     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      275 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5055        34.515        .86981E-02    .10096E-02
   2  Index         2.8219        2.1955        .92404E-01    .29415E-03
   3  Normalizat    1.3673        .67683E-01    .95265E-01    .11498E-04
   4  Prefactor     .83319        .21284E-01    .44148E-01   -.10762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50551
  Index      = 2.82186
  Normalizat = 1.36733
  Prefactor  = 0.833185
 **********
 **   18 **HESSE 
 **********

 FCN=   10399.43     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5055        88.898        .13198E-03   -1.5463    
   2  Index         2.8219        6.4104        .57129E-02   -.45074    
   3  Normalizat    1.3673        .28472        .42199E-03   -.81578    
   4  Prefactor     .83319        .85115E-01    .17333E-03   -.98516    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1233e-06
Minuit parameter uncertainties:
  1  23.1731
  2  5.13675
  3  0.285049
  4  0.0851284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496886': 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) = 10399.4305907
delta logL = 0.484321688169

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.506e+00  2.317e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  2.822e+00  5.137e+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:  8.332e-01  8.513e-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.367e+00  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 342.514 38.425
Photon Index (Free Index): 2.82 +/- 5.14
Photon Flux (Free Index): 5.31e-08 +/- 1.19e-07
Energy Flux (Free Index): 1.17e-05 +/- 2.01e-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/496886/cmap_HighResolution_534816001_535075201_4FGL_J2250.0+3825_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='4.84e-01', photon_flux2='5.31e-08', job_status='DONE', time_completed='2021-09-28 22:09:43.020504', photon_index_error2='5.14', photon_index2='2.82', ts='0.13', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.78e-08', energy_flux_error2='2.01e-05', EG='1.41', time_epoch_completed='1632892183.02', return_code='0', job_id='496886', GAL2='0.83', EG2='1.37', return_code2='102', photon_flux_error2='1.19e-07', ts2='1.12', photon_index='1.73' WHERE bin_id='1140' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:09:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 496886: <4FGL_J2250.0+3825_daily_bin1140> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin1140> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:55:10 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:55:12 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:55:12 2021
Terminated at Tue Sep 28 22:09:43 2021
Results reported at Tue Sep 28 22:09:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin1140 342.514 38.4247 534816001 535075201 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 :                                   856.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

