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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin244
RA = 342.514, Dec = 38.4247
tmin = 302572801, tmax = 302832001
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='492503', job_status='RUN', time_executed='2021-09-28 21:40:41.410945', time_epoch_executed='1632890441.41' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492503/ft1_4FGL_J2250.0+3825_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492503/ft2_4FGL_J2250.0+3825_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492503/ft1_4FGL_J2250.0+3825_daily_bin244.fits outfile=/scratch/kocevski/492503/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin244.fits ra=342.514 dec=38.4247 rad=12.0 tmin=302572801.0 tmax=302832001.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.49
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492503/ft1_filtered_4FGL_J2250.0+3825_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/492503/ft2_4FGL_J2250.0+3825_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/492503/ltcube_302572801_302832001_4FGL_J2250.0+3825_daily_bin244.fits outfile=/scratch/kocevski/492503/expmap_302572801_302832001_4FGL_J2250.0+3825_daily_bin244.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/492503/ltcube_302572801_302832001_4FGL_J2250.0+3825_daily_bin244.fits
.....................!
real 191.65
user 186.53
sys 4.78

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/492503/ft1_filtered_4FGL_J2250.0+3825_daily_bin244.fits scfile=/scratch/kocevski/492503/ft2_4FGL_J2250.0+3825_daily_bin244.fits outfile=/scratch/kocevski/492503/cmap_302572801_302832001_4FGL_J2250.0+3825_daily_bin244.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.56
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.4319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9412       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21676E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11317E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6865       1.0000         .10000E-03   10000.    
    12 'norm      '    7.4962       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .81916E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .22696E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3295       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6042       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73897       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0012       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=   10253.10     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     2317 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2895        .10334E-02** at limit **
   2  Prefactor     .10000E-03    8.2798        .18142E-02** at limit **
   3  Prefactor     .10000E-03    9.6558        .18142E-02** at limit **
   4  norm          7.4325        1.6303        .58132E-04   -.72907E-03
   5  Prefactor     .10000E-03    77.556        .18142E-02** at limit **
   6  Prefactor     .10000E-03    4.8588        .18142E-02** at limit **
   7  Prefactor     .10000E-03    23.182        .18142E-02** at limit **
   8  norm          1.9401        2.5353        .17979E-03    .35714E-03
   9  Prefactor     .10006E-03    8.7764        .10316    ** at limit **
  10  Prefactor     .10000E-03    2.7846        .32298E-03** at limit **
  11  Prefactor     7.6852        14.680        .14464E-03    .92747E-05
  12  norm          7.4959        1.8674        .65499E-04    .47524E-03
  13  Prefactor     .10000E-03    3.3729        .18120E-02** at limit **
  14  Prefactor     .10000E-03    8.6740        .18142E-02** at limit **
  15  norm          .10016E-03    2.8424        .54113E-01** at limit **
  16  norm          .10002E-03    77.345        .55461E-02** at limit **
  17  Prefactor     5.3160        13.602        .17409E-03    .18402E-03
  18  norm          3.6041        2.5211        .13030E-03    .22929E-03
  19  Prefactor     .10000E-03    13.710        .18142E-02** at limit **
  20  Normalizat    .73893        .24084        .46567E-03    .11284E-03
  21  Prefactor     1.0012        .83405E-01    .14398E-03    .60130E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.43249
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94007
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 7.68522
  norm       = 7.49591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100161
  norm       = 0.000100023
  Prefactor  = 5.31604
  norm       = 3.60413
  Prefactor  = 0.0001
  Normalizat = 0.738926
  Prefactor  = 1.00122
 **********
 **   18 **HESSE 
 **********

 FCN=   10253.10     FROM HESSE     STATUS=OK           317 CALLS     2634 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2969        .20667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.4325        1.6302        .11626E-04   -1.5163    
   5  Prefactor     .10000E-03    77.570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9401        2.5350        .71917E-05   -1.5429    
   9  Prefactor     .10006E-03    8.8016        .10287       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7848        .64597E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6852        14.677        .57856E-05   -1.5153    
  12  norm          7.4959        1.8673        .26199E-05   -1.5160    
  13  Prefactor     .10000E-03    3.3735        .36240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6749        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10016E-03    2.8525        .53922E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    80.599        .22184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3160        13.597        .69636E-05   -1.5247    
  18  norm          3.6041        2.5207        .52121E-05   -1.5328    
  19  Prefactor     .10000E-03    13.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .73893        .24089        .18627E-04   -1.0238    
  21  Prefactor     1.0012        .83411E-01    .28796E-04   -.92689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75283e-10
Minuit parameter uncertainties:
  1  1.13047e-05
  2  3.68739e-05
  3  5.76562e-06
  4  1.63024
  5  0.000825555
  6  7.65576e-05
  7  6.71987e-06
  8  2.53518
  9  0.00150444
  10  1.06107e-05
  11  14.6842
  12  1.86735
  13  2.2717e-06
  14  3.72413e-05
  15  0.00135686
  16  0.00271314
  17  13.605
  18  2.52078
  19  5.08214e-05
  20  0.241235
  21  0.0834213
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.001e-04  1.504e-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:  1.001e+00  8.342e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.389e-01  2.412e-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: 4.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492503/likelihoodResults_302572801_302832001_4FGL_J2250.0+3825_daily_bin244.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) = 10253.1037869
delta logL = -2.49080130743e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10253.1037869
delta logL = -2.4906867111e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7325       1.0000          .0000       10.000    
     3 'Normalizat'    .73893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0012       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10253.10     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      362 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0001        55.598        .18142E-02   -.16330E-04
   2  Index         1.4844        2.0071        .80510E-02   -.55184E-05
   3  Normalizat    .73956        .22839        .46549E-03    .55196E-05
   4  Prefactor     1.0008        .82140E-01    .14401E-03   -.70261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00014
  Index      = 1.48436
  Normalizat = 0.739565
  Prefactor  = 1.00078
 **********
 **   18 **HESSE 
 **********

 FCN=   10253.10     FROM HESSE     STATUS=OK            27 CALLS      389 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0001        52.613        .72569E-04   -1.5508    
   2  Index         1.4844        1.9592        .32204E-03   -.77979    
   3  Normalizat    .73956        .22846        .18620E-04   -1.0235    
   4  Prefactor     1.0008        .82153E-01    .57603E-05   -.92704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47643e-11
Minuit parameter uncertainties:
  1  14.5207
  2  2.07499
  3  0.22876
  4  0.0821633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492503': 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) = 10253.1012529
delta logL = 0.00250912841875

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.000e+00  1.452e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.484e+00  2.075e+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:  1.001e+00  8.216e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.396e-01  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.514 38.425

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/492503/cmap_HighResolution_302572801_302832001_4FGL_J2250.0+3825_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.31e-08', time_completed='2021-09-28 21:55:11.131132', job_id='492503', GAL2='1.00', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632891311.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.51e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='244' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:55:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 492503: <4FGL_J2250.0+3825_daily_bin244> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin244> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 21:40:29 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:40:31 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:40:31 2021
Terminated at Tue Sep 28 21:55:12 2021
Results reported at Tue Sep 28 21:55:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin244 342.514 38.4247 302572801 302832001 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 :                                   867.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

