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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin1170
RA = 342.514, Dec = 38.4247
tmin = 542592001, tmax = 542851201
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='496932', job_status='RUN', time_executed='2021-09-28 21:58:51.113750', time_epoch_executed='1632891531.11' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496932/ft1_4FGL_J2250.0+3825_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496932/ft2_4FGL_J2250.0+3825_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496932/ft1_4FGL_J2250.0+3825_daily_bin1170.fits outfile=/scratch/kocevski/496932/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1170.fits ra=342.514 dec=38.4247 rad=12.0 tmin=542592001.0 tmax=542851201.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.76
user 6.52
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496932/ft1_filtered_4FGL_J2250.0+3825_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/496932/ft2_4FGL_J2250.0+3825_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/496932/ltcube_542592001_542851201_4FGL_J2250.0+3825_daily_bin1170.fits outfile=/scratch/kocevski/496932/expmap_542592001_542851201_4FGL_J2250.0+3825_daily_bin1170.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/496932/ltcube_542592001_542851201_4FGL_J2250.0+3825_daily_bin1170.fits
.....................!
real 191.77
user 187.05
sys 4.42

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/496932/ft1_filtered_4FGL_J2250.0+3825_daily_bin1170.fits scfile=/scratch/kocevski/496932/ft2_4FGL_J2250.0+3825_daily_bin1170.fits outfile=/scratch/kocevski/496932/cmap_542592001_542851201_4FGL_J2250.0+3825_daily_bin1170.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496932/ft1_filtered_4FGL_J2250.0+3825_daily_bin1170.fits scfile=/scratch/kocevski/496932/ft2_4FGL_J2250.0+3825_daily_bin1170.fits outfile=/scratch/kocevski/496932/cmap_HighResolution_542592001_542851201_4FGL_J2250.0+3825_daily_bin1170.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.835       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .76559E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.492       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22824E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.010       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.703       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7568       1.0000         .10000E-03   10000.    
    16 'norm      '    13.677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.147       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8857       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.560       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1407       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93883       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=   5956.626     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2542 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.835        2.0927        .29112E-02   -.53025E-05
   2  Prefactor     .10000E-03    74.312        .90712E-02** at limit **
   3  Prefactor     .10265E-03    19.458        .11616    ** at limit **
   4  norm          1.7149        1.9552        .80231E-02    .45734E-03
   5  Prefactor     .10000E-03    46.893        .90712E-02** at limit **
   6  Prefactor     .10000E-03    14.182        .90712E-02** at limit **
   7  Prefactor     29.482        33.798        .18444E-02   -.27529E-03
   8  norm          .10000E-03    4.3878        .90712E-02** at limit **
   9  Prefactor     .10004E-03    272.19        .90712E-02** at limit **
  10  Prefactor     21.011        13.750        .21846E-02    .33750E-03
  11  Prefactor     .10000E-03    25.033        .90712E-02** at limit **
  12  norm          4.9131        2.3946        .45365E-02    .93298E-04
  13  Prefactor     .10000E-03    27.623        .90712E-02** at limit **
  14  Prefactor     19.707        33.696        .22558E-02   -.53628E-04
  15  norm          6.7567        7.4828        .38590E-02    .13696E-03
  16  norm          13.676        14.535        .27076E-02   -.44208E-04
  17  Prefactor     15.134        28.783        .25728E-02   -.69972E-03
  18  norm          3.8872        3.8893        .51173E-02    .24373E-03
  19  Prefactor     24.560        32.366        .20207E-02    .14864E-04
  20  Normalizat    1.1409        .32338        .10173        .15866E-04
  21  Prefactor     .93880        .10828        .45498E-01   -.35042E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8346
  Prefactor  = 0.0001
  Prefactor  = 0.000102654
  norm       = 1.71489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.4818
  norm       = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 21.0108
  Prefactor  = 0.0001
  norm       = 4.91307
  Prefactor  = 0.0001
  Prefactor  = 19.707
  norm       = 6.75671
  norm       = 13.6763
  Prefactor  = 15.1337
  norm       = 3.88722
  Prefactor  = 24.5598
  Normalizat = 1.14091
  Prefactor  = 0.938799
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.626     FROM HESSE     STATUS=OK           323 CALLS     2865 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.835        2.1034        .43052E-04   -1.5020    
   2  Prefactor     .10000E-03    74.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10265E-03    28.950        .90297E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7149        1.9361        .10557E-03   -1.5446    
   5  Prefactor     .10000E-03    46.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.482        33.809        .73776E-04   -1.4621    
   8  norm          .10000E-03    4.4600        .15770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    280.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.011        13.723        .87383E-04   -1.4791    
  11  Prefactor     .10000E-03    25.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9131        2.3939        .80258E-04   -1.5265    
  13  Prefactor     .10000E-03    28.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.707        33.688        .90232E-04   -1.4820    
  15  norm          6.7567        7.4744        .15436E-03   -1.5188    
  16  norm          13.676        14.536        .10831E-03   -1.4968    
  17  Prefactor     15.134        28.912        .10291E-03   -1.4930    
  18  norm          3.8872        3.8808        .14675E-03   -1.5314    
  19  Prefactor     24.560        32.369        .80830E-04   -1.4716    
  20  Normalizat    1.1409        .36997        .45084E-03   -.88449    
  21  Prefactor     .93880        .12486        .16922E-03   -.94798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7853e-09
Minuit parameter uncertainties:
  1  2.1034
  2  0.00020906
  3  0.0175402
  4  1.93618
  5  5.0593e-05
  6  7.52389e-07
  7  33.8314
  8  3.01625e-07
  9  0.00697629
  10  13.7255
  11  1.44375e-05
  12  2.39393
  13  1.98315e-05
  14  33.7201
  15  7.4754
  16  14.5394
  17  28.9388
  18  3.88103
  19  32.3923
  20  0.370822
  21  0.1249
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  6.976e-03  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.388e-01  1.249e-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.141e+00  3.708e-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: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496932/likelihoodResults_542592001_542851201_4FGL_J2250.0+3825_daily_bin1170.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) = 5956.6256503
delta logL = -1.68668602782e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5956.62565029
delta logL = -1.68639226104e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7325       1.0000          .0000       10.000    
     3 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5954.539     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      267 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13431        .62335       -.10582E-05   -.23738E-02
   2  Index         3.8689        1.2113        .24817E-04   -.11501E-03
   3  Normalizat    .95881        .34052        .19550E-05    .38115E-04
   4  Prefactor     .96864        .11933       -.26598E-05   -.99320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.134305
  Index      = 3.86886
  Normalizat = 0.958807
  Prefactor  = 0.968637
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.539     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      304 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13431        1.1997        .35543E-02   -1.5635    
   2  Index         3.8689        1.4559        .54641E-01   -.22820    
   3  Normalizat    .95881        .10166        .10929       -.94424    
   4  Prefactor     .96864        .34875E-01    .45498E-01   -.93782    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.42321e-09
Minuit parameter uncertainties:
  1  0.802528
  2  1.47852
  3  0.101684
  4  0.0348763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496932': 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) = 5954.53911594
delta logL = 2.08651748965

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.343e-01  8.025e-01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  3.869e+00  1.479e+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.686e-01  3.488e-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.588e-01  1.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 342.514 38.425
Photon Index (Free Index): 3.87 +/- 1.48
Photon Flux (Free Index): 1.83e-07 +/- 1.37e-07
Energy Flux (Free Index): 2.81e-05 +/- 2.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/496932/cmap_HighResolution_542592001_542851201_4FGL_J2250.0+3825_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.43e-03', comment='SUCCESS', energy_flux2='2.81e-05', dlogl='2.09e+00', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-28 22:09:55.128614', photon_index_error2='1.48', photon_index2='3.87', ts='-0.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.82e-05', EG='1.14', time_epoch_completed='1632892195.13', return_code='0', job_id='496932', GAL2='0.97', EG2='0.96', return_code2='102', photon_flux_error2='1.37e-07', ts2='4.41', photon_index='1.73' WHERE bin_id='1170' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:09:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 496932: <4FGL_J2250.0+3825_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin1170 342.514 38.4247 542592001 542851201 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 :                                   654.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

