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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin1393
RA = 342.514, Dec = 38.4247
tmin = 600393601, tmax = 600652801
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='498377', job_status='RUN', time_executed='2021-09-28 22:00:43.194041', time_epoch_executed='1632891643.19' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='1393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498377/ft1_4FGL_J2250.0+3825_daily_bin1393.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498377/ft2_4FGL_J2250.0+3825_daily_bin1393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498377/ft1_4FGL_J2250.0+3825_daily_bin1393.fits outfile=/scratch/kocevski/498377/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1393.fits ra=342.514 dec=38.4247 rad=12.0 tmin=600393601.0 tmax=600652801.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.71
user 3.42
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498377/ft1_filtered_4FGL_J2250.0+3825_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/498377/ft2_4FGL_J2250.0+3825_daily_bin1393.fits sctable="SC_DATA" expcube=/scratch/kocevski/498377/ltcube_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.fits outfile=/scratch/kocevski/498377/expmap_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.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/498377/ltcube_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.fits
.....................!
real 192.00
user 187.48
sys 4.12

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/498377/ft1_filtered_4FGL_J2250.0+3825_daily_bin1393.fits scfile=/scratch/kocevski/498377/ft2_4FGL_J2250.0+3825_daily_bin1393.fits outfile=/scratch/kocevski/498377/cmap_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498377/ft1_filtered_4FGL_J2250.0+3825_daily_bin1393.fits scfile=/scratch/kocevski/498377/ft2_4FGL_J2250.0+3825_daily_bin1393.fits outfile=/scratch/kocevski/498377/cmap_HighResolution_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498377/ft1_filtered_4FGL_J2250.0+3825_daily_bin1393.fits', '/scratch/kocevski/498377/ft2_4FGL_J2250.0+3825_daily_bin1393.fits', expMap='/scratch/kocevski/498377/expmap_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.fits', expCube='/scratch/kocevski/498377/ltcube_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498377/Model_4FGL_J2250.0+3825_daily_bin1393.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/498377/ft1_filtered_4FGL_J2250.0+3825_daily_bin1393.fits
Spacecraft file(s): /scratch/kocevski/498377/ft2_4FGL_J2250.0+3825_daily_bin1393.fits
Exposure map: /scratch/kocevski/498377/expmap_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.fits
Exposure cube: /scratch/kocevski/498377/ltcube_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498377/Model_4FGL_J2250.0+3825_daily_bin1393.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11651.2711778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12257E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .37696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7976       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65351       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6737       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14907       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4856       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0266       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94548       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=   11650.47     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1906 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.916        1.2824        .14113E-07    .38611E-03
   2  Prefactor     6.8686        16.278       -.25690E-05   -.27537E-05
   3  Prefactor     .10000E-03    9.9578       -.12154E-05** at limit **
   4  norm          .37720        .60581        .12052E-07    .67318E-03
   5  Prefactor     .10000E-03    38.900        .39512E-05** at limit **
   6  Prefactor     .12160        4.0005       -.57688E-06   -.67626E-04
   7  Prefactor     .10000E-03    8.0025       -.13848E-05** at limit **
   8  norm          2.7980        3.5327       -.14043E-06   -.34420E-03
   9  Prefactor     .65222        7.4813       -.16193E-05   -.10287E-03
  10  Prefactor     .10000E-03    2.4874        .38816E-07** at limit **
  11  Prefactor     3.6470        25.515       -.32233E-04   -.31612E-04
  12  norm          1.7715        1.5724        .10997E-06   -.65961E-03
  13  Prefactor     20.897        11.613        .76912E-07    .12983E-03
  14  Prefactor     .10000E-03    6.8899        .11447E-06** at limit **
  15  norm          .18389        2.7162       -.82303E-06   -.30476E-03
  16  norm          .10000E-03    2.3597        .36551E-07** at limit **
  17  Prefactor     .10000E-03    9.2709        .24681E-05** at limit **
  18  norm          .10000E-03    .71172        .33935E-07** at limit **
  19  Prefactor     3.4856        13.202       -.66369E-06   -.82963E-04
  20  Normalizat    1.0263        .20439        .73409E-06    .22880E-03
  21  Prefactor     .94550        .70856E-01    .51541E-06    .44867E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9155
  Prefactor  = 6.86864
  Prefactor  = 0.0001
  norm       = 0.377202
  Prefactor  = 0.0001
  Prefactor  = 0.121604
  Prefactor  = 0.0001
  norm       = 2.79796
  Prefactor  = 0.652224
  Prefactor  = 0.0001
  Prefactor  = 3.64704
  norm       = 1.77152
  Prefactor  = 20.8971
  Prefactor  = 0.0001
  norm       = 0.183893
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.48557
  Normalizat = 1.02628
  Prefactor  = 0.945503
 **********
 **   18 **HESSE 
 **********

 FCN=   11650.47     FROM HESSE     STATUS=OK           331 CALLS     2237 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.916        1.2846        .39194E-04   -1.5047    
   2  Prefactor     6.8686        16.208        .15299E-03   -1.5184    
   3  Prefactor     .10000E-03    9.9830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .37720        .44029        .10311E-02   -1.5585    
   5  Prefactor     .10000E-03    38.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12160        4.9085        .58237E-01   -1.5638    
   7  Prefactor     .10000E-03    8.0274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7980        3.5443        .19664E-03   -1.5373    
   9  Prefactor     .65222        34.960        .57334E-02   -1.5546    
  10  Prefactor     .10000E-03    2.4975        .16613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6470        25.554        .21073E-03   -1.5326    
  12  norm          1.7715        1.5548        .11823E-03   -1.5442    
  13  Prefactor     20.897        11.632        .87627E-04   -1.4793    
  14  Prefactor     .10000E-03    6.8928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .18389        18.777        .33914E-02   -1.5622    
  16  norm          .10000E-03    2.3605        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.3265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .71615        .88893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4856        13.196        .21658E-03   -1.5335    
  20  Normalizat    1.0263        .23117        .42353E-03   -.92155    
  21  Prefactor     .94550        .81377E-01    .15694E-03   -.94569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1215e-08
Minuit parameter uncertainties:
  1  1.28463
  2  16.2188
  3  8.00377e-05
  4  0.440295
  5  5.46042e-06
  6  1.54468
  7  4.47262e-06
  8  3.54455
  9  9.55538
  10  6.19396e-06
  11  19.319
  12  1.5548
  13  11.6338
  14  1.14991e-06
  15  3.71659
  16  5.20559e-07
  17  2.13032e-06
  18  1.23377e-07
  19  13.2073
  20  0.231396
  21  0.0813875
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  6.522e-01  9.555e+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

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  9.455e-01  8.139e-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.026e+00  2.314e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498377/likelihoodResults_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.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) = 11650.4047208
delta logL = 0.0618982535761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11650.4033981
delta logL = 0.0632209398536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79641       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4858       1.0000          .0000       10.000    
     3 'Normalizat'    1.0205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94544       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=   11650.40     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      255 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79818        13.190        .28524E-03   -.66163E-04
   2  Index         2.4833        2.6712        .47171E-02   -.42948E-05
   3  Normalizat    1.0204        .22271        .42460E-03   -.50980E-04
   4  Prefactor     .94546        .79553E-01    .15693E-03   -.13405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.798181
  Index      = 2.48329
  Normalizat = 1.02044
  Prefactor  = 0.945465
 **********
 **   18 **HESSE 
 **********

 FCN=   11650.40     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79818        5.9370        .11409E-04   -1.5529    
   2  Index         2.4833        1.8677        .18868E-03   -.52746    
   3  Normalizat    1.0204        .22197        .16984E-04   -.92349    
   4  Prefactor     .94546        .79446E-01    .31387E-04   -.94570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98405e-12
Minuit parameter uncertainties:
  1  4.35409
  2  1.93143
  3  0.222169
  4  0.0794562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498377': 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) = 11650.4033964
delta logL = 0.0632226309863

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  7.982e-01  4.354e+00  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  2.483e+00  1.931e+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.455e-01  7.946e-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.020e+00  2.222e-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/498377/cmap_HighResolution_600393601_600652801_4FGL_J2250.0+3825_daily_bin1393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-03', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2021-09-28 22:15:44.329037', job_id='498377', GAL2='0.95', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1632892544.33', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.32e-02', ts2='0.13', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='1393' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:15:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 498377: <4FGL_J2250.0+3825_daily_bin1393> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin1393> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 22:00:30 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 22:00:32 2021
Terminated at Tue Sep 28 22:15:45 2021
Results reported at Tue Sep 28 22:15:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin1393 342.514 38.4247 600393601 600652801 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 :                                   895.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

