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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin403
RA = 342.514, Dec = 38.4247
tmin = 343785601, tmax = 344044801
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='493779', job_status='RUN', time_executed='2021-09-28 21:45:30.782590', time_epoch_executed='1632890730.78' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493779/ft1_4FGL_J2250.0+3825_daily_bin403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493779/ft2_4FGL_J2250.0+3825_daily_bin403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493779/ft1_4FGL_J2250.0+3825_daily_bin403.fits outfile=/scratch/kocevski/493779/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin403.fits ra=342.514 dec=38.4247 rad=12.0 tmin=343785601.0 tmax=344044801.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.42
user 3.17
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493779/ft1_filtered_4FGL_J2250.0+3825_daily_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/493779/ft2_4FGL_J2250.0+3825_daily_bin403.fits sctable="SC_DATA" expcube=/scratch/kocevski/493779/ltcube_343785601_344044801_4FGL_J2250.0+3825_daily_bin403.fits outfile=/scratch/kocevski/493779/expmap_343785601_344044801_4FGL_J2250.0+3825_daily_bin403.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/493779/ltcube_343785601_344044801_4FGL_J2250.0+3825_daily_bin403.fits
.....................!
real 190.53
user 185.57
sys 4.59

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/493779/ft1_filtered_4FGL_J2250.0+3825_daily_bin403.fits scfile=/scratch/kocevski/493779/ft2_4FGL_J2250.0+3825_daily_bin403.fits outfile=/scratch/kocevski/493779/cmap_343785601_344044801_4FGL_J2250.0+3825_daily_bin403.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6772       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.713       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5086       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5905       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62317       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6484       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75063       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=   10979.79     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1863 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6772        1.0336        .32373E-08   -.87199E-03
   2  Prefactor     .10000E-03    9.8100        .15754E-05** at limit **
   3  Prefactor     12.718        12.456        .88571E-06    .13738E-03
   4  norm          .10000E-03    .33553        .12889E-06** at limit **
   5  Prefactor     .10000E-03    16.190        .31125E-05** at limit **
   6  Prefactor     .10000E-03    1.4661       -.12724E-06** at limit **
   7  Prefactor     .10000E-03    9.1456       -.12663E-05** at limit **
   8  norm          .10000E-03    .80602        .66624E-07** at limit **
   9  Prefactor     11.088        13.468        .21613E-06    .12282E-04
  10  Prefactor     .10000E-03    2.4324       -.11191E-06** at limit **
  11  Prefactor     9.5048        17.953        .23111E-05    .67861E-04
  12  norm          .10000E-03    .33143        .22643E-07** at limit **
  13  Prefactor     .10000E-03    5.1470       -.22449E-06** at limit **
  14  Prefactor     .10000E-03    25.726       -.68014E-05** at limit **
  15  norm          4.5926        4.3646        .53450E-05    .43237E-02
  16  norm          .10000E-03    7.4306        .17754E-05** at limit **
  17  Prefactor     .58375        63.981       -.43333E-04    .57508E-03
  18  norm          1.6876        2.1423        .24359E-06    .29881E-03
  19  Prefactor     .10000E-03    8.4792       -.26741E-05** at limit **
  20  Normalizat    1.6484        .19743        .13287E-05    .19210E-03
  21  Prefactor     .75064        .67242E-01   -.97659E-06   -.48372E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.67721
  Prefactor  = 0.0001
  Prefactor  = 12.7181
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0882
  Prefactor  = 0.0001
  Prefactor  = 9.50482
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.59264
  norm       = 0.0001
  Prefactor  = 0.583747
  norm       = 1.68756
  Prefactor  = 0.0001
  Normalizat = 1.64841
  Prefactor  = 0.750636
 **********
 **   18 **HESSE 
 **********

 FCN=   10979.79     FROM HESSE     STATUS=OK           309 CALLS     2172 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6772        1.0342        .16859E-04   -1.5231    
   2  Prefactor     .10000E-03    9.8136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.718        12.526        .56171E-03   -1.4995    
   4  norm          .10000E-03    .34480        .11850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4700        .12388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .80916        .91865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.088        13.468        .12031E-03   -1.5042    
  10  Prefactor     .10000E-03    2.4518        .15956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5048        17.957        .12996E-03   -1.5091    
  12  norm          .10000E-03    .33572        .58868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5926        5.0583        .93935E-03   -1.5279    
  16  norm          .10000E-03    7.4958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .58375        87.173        .52477E-02   -1.5555    
  18  norm          1.6876        2.1257        .16771E-03   -1.5448    
  19  Prefactor     .10000E-03    8.4973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6484        .22538        .34257E-03   -.73689    
  21  Prefactor     .75064        .77150E-01    .16470E-03   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14574e-08
Minuit parameter uncertainties:
  1  1.03423
  2  1.36398e-05
  3  12.5282
  4  3.60966e-06
  5  0.000133532
  6  2.80254e-06
  7  1.01611e-05
  8  2.54155e-06
  9  13.4712
  10  4.46559e-06
  11  17.9674
  12  5.40169e-07
  13  5.71423e-06
  14  5.5394e-05
  15  5.05875
  16  2.78398e-05
  17  14.287
  18  2.12579
  19  5.87791e-05
  20  0.225523
  21  0.0771609
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.109e+01  1.347e+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:  7.506e-01  7.716e-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.648e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 1.35e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 2.41e-05

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

Saving results to:
/scratch/kocevski/493779/likelihoodResults_343785601_344044801_4FGL_J2250.0+3825_daily_bin403.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) = 10979.7107719
delta logL = 0.0754725134266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10979.7087376
delta logL = 0.0775067897539

Fit tolerance = 1e-08

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

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

 FCN=   10979.71     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      310 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5836        16.514        .14559E-03    .42213E-03
   2  Index         2.0039        .88706        .93087E-02    .12376E-03
   3  Normalizat    1.6431        .22180        .34300E-03   -.64627E-03
   4  Prefactor     .75108        .75776E-01    .16465E-03   -.16281E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.5836
  Index      = 2.00388
  Normalizat = 1.6431
  Prefactor  = 0.751076
 **********
 **   18 **HESSE 
 **********

 FCN=   10979.71     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5836        13.231        .58237E-05   -1.5157    
   2  Index         2.0039        .71307        .37235E-03   -.64253    
   3  Normalizat    1.6431        .22147        .68601E-04   -.73833    
   4  Prefactor     .75108        .75763E-01    .32929E-04   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38884e-10
Minuit parameter uncertainties:
  1  13.2361
  2  0.716893
  3  0.221608
  4  0.0757736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493779': 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) = 10979.7087348
delta logL = 0.0775096134566

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  7.584e+00  1.324e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  2.004e+00  7.169e-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:  7.511e-01  7.577e-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.643e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 342.514 38.425
Photon Index (Free Index): 2.00 +/- 0.72
Photon Flux (Free Index): 1.96e-08 +/- 2.67e-08
Energy Flux (Free Index): 1.34e-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/493779/cmap_HighResolution_343785601_344044801_4FGL_J2250.0+3825_daily_bin403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', comment='SUCCESS', photon_flux='1.35e-08', energy_flux2='1.34e-05', photon_flux_error='1.64e-08', dlogl='7.75e-02', energy_flux='1.98e-05', photon_flux2='1.96e-08', job_status='DONE', time_completed='2021-09-28 21:59:45.917962', photon_index_error2='0.72', photon_index2='2.00', ts='1.02', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='5.68e-08', energy_flux_error2='2.01e-05', EG='1.65', time_epoch_completed='1632891585.92', return_code='0', job_id='493779', GAL2='0.75', EG2='1.64', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='2.67e-08', ts2='1.17', photon_index='1.73' WHERE bin_id='403' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 493779: <4FGL_J2250.0+3825_daily_bin403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin403 342.514 38.4247 343785601 344044801 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 :                                   853.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             391.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

