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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin1640
RA = 342.514, Dec = 38.4247
tmin = 664416001, tmax = 664675201
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='284929', job_status='RUN', time_executed='2022-01-24 00:40:37.310395', time_epoch_executed='1643013637.31' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284929/ft1_4FGL_J2250.0+3825_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284929/ft2_4FGL_J2250.0+3825_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284929/ft1_4FGL_J2250.0+3825_daily_bin1640.fits outfile=/scratch/kocevski/284929/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1640.fits ra=342.514 dec=38.4247 rad=12.0 tmin=664416001.0 tmax=664675201.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.63
user 3.40
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284929/ft1_filtered_4FGL_J2250.0+3825_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/284929/ft2_4FGL_J2250.0+3825_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/284929/ltcube_664416001_664675201_4FGL_J2250.0+3825_daily_bin1640.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/284929/ft2_4FGL_J2250.0+3825_daily_bin1640.fits
.....................!
real 12.63
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284929/ft1_filtered_4FGL_J2250.0+3825_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284929/ft2_4FGL_J2250.0+3825_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/284929/ltcube_664416001_664675201_4FGL_J2250.0+3825_daily_bin1640.fits outfile=/scratch/kocevski/284929/expmap_664416001_664675201_4FGL_J2250.0+3825_daily_bin1640.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/284929/ltcube_664416001_664675201_4FGL_J2250.0+3825_daily_bin1640.fits
.....................!
real 191.14
user 185.82
sys 4.95

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/284929/ft1_filtered_4FGL_J2250.0+3825_daily_bin1640.fits scfile=/scratch/kocevski/284929/ft2_4FGL_J2250.0+3825_daily_bin1640.fits outfile=/scratch/kocevski/284929/cmap_664416001_664675201_4FGL_J2250.0+3825_daily_bin1640.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284929/ft1_filtered_4FGL_J2250.0+3825_daily_bin1640.fits scfile=/scratch/kocevski/284929/ft2_4FGL_J2250.0+3825_daily_bin1640.fits outfile=/scratch/kocevski/284929/cmap_HighResolution_664416001_664675201_4FGL_J2250.0+3825_daily_bin1640.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/284929/ft1_filtered_4FGL_J2250.0+3825_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284929/ft2_4FGL_J2250.0+3825_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284929/Model_4FGL_J2250.0+3825_daily_bin1640.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/284929/ft1_filtered_4FGL_J2250.0+3825_daily_bin1640.fits....................!
real 136.92
user 135.28
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.800       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19519       1.0000         .10000E-03   10000.    
     4 'norm      '    9.7235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9305       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10802E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4477       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.005       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.388       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88492       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99825       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=   12001.04     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2291 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.805        1.6083       -.45299E-07    .95968E-03
   2  Prefactor     .10000E-03    14.065        .56519E-06** at limit **
   3  Prefactor     .32832E-02    10.494       -.71860E-06    .31431E-04
   4  norm          9.7235        1.8262       -.52041E-07    .12360E-03
   5  Prefactor     .10000E-03    33.217       -.35928E-06** at limit **
   6  Prefactor     .10000E-03    3.4344       -.63484E-07** at limit **
   7  Prefactor     .10000E-03    12.344       -.49078E-06** at limit **
   8  norm          .10000E-03    1.4329       -.14773E-06** at limit **
   9  Prefactor     .10000E-03    4.2219       -.22673E-08** at limit **
  10  Prefactor     3.0119        3.4466       -.16916E-06   -.31282E-04
  11  Prefactor     .10000E-03    15.173       -.24588E-07** at limit **
  12  norm          4.9303        1.7733       -.17996E-08   -.24986E-03
  13  Prefactor     .10316E-03    4.9043        .74651E-06** at limit **
  14  Prefactor     6.4391        21.258       -.30070E-04   -.22011E-04
  15  norm          .10000E-03    1.5678        .13218E-06** at limit **
  16  norm          16.002        13.311       -.53202E-05   -.69532E-04
  17  Prefactor     14.386        14.442       -.35038E-05    .61276E-05
  18  norm          .10000E-03    1.2954        .38105E-07** at limit **
  19  Prefactor     .10000E-03    6.2796       -.13609E-08** at limit **
  20  Normalizat    .88481        .21867        .35582E-05   -.55971E-04
  21  Prefactor     .99835        .75564E-01    .11222E-06    .10420E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.8051
  Prefactor  = 0.0001
  Prefactor  = 0.00328325
  norm       = 9.72349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01191
  Prefactor  = 0.0001
  norm       = 4.93033
  Prefactor  = 0.000103159
  Prefactor  = 6.43912
  norm       = 0.0001
  norm       = 16.0021
  Prefactor  = 14.3862
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.88481
  Prefactor  = 0.998352
 **********
 **   18 **HESSE 
 **********

 FCN=   12001.04     FROM HESSE     STATUS=OK           335 CALLS     2626 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.805        1.6152        .39532E-04   -1.4888    
   2  Prefactor     .10000E-03    14.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .32832E-02    15.174        .90441E-01   -1.5697    
   4  norm          9.7235        1.8285        .61701E-04   -1.5084    
   5  Prefactor     .10000E-03    33.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8172        .25319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0119        3.4276        .21053E-03   -1.5361    
  11  Prefactor     .10000E-03    15.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9303        1.7752        .82662E-04   -1.5264    
  13  Prefactor     .10316E-03    7.6503        .74823E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4391        21.304        .15806E-03   -1.5200    
  15  norm          .10000E-03    1.5732        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.002        13.318        .10011E-03   -1.4908    
  17  Prefactor     14.386        14.451        .10559E-03   -1.4949    
  18  norm          .10000E-03    1.3341        .24328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88481        .24395        .48343E-03   -.96996    
  21  Prefactor     .99835        .85205E-01    .16390E-03   -.92784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02176e-10
Minuit parameter uncertainties:
  1  1.61523
  2  3.97842e-06
  3  0.439665
  4  1.82848
  5  2.11771e-05
  6  1.10085e-05
  7  8.33098e-06
  8  2.61201e-05
  9  2.20367e-06
  10  3.42781
  11  1.74288e-05
  12  1.7752
  13  0.00983273
  14  21.3287
  15  1.52774e-05
  16  13.3203
  17  14.4545
  18  6.12767e-06
  19  2.27559e-06
  20  0.244253
  21  0.0852161
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  2.204e-06  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.984e-01  8.522e-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:  8.848e-01  2.443e-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: 2.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284929/likelihoodResults_664416001_664675201_4FGL_J2250.0+3825_daily_bin1640.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) = 12001.0445001
delta logL = -0.00112502734555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12001.0433745
delta logL = 5.48152456759e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6974       1.0000          .0000       10.000    
     3 'Normalizat'    .88481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99835       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=   12001.04     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    20.140        .18142E-02** at limit **
   2  Index         1.6499        5.6741        .50000        .48641E-04
   3  Normalizat    .88481        .11808E-01    .48342E-03   -.16556E-04
   4  Prefactor     .99835        .42651E-02    .16390E-03   -.52717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100784
  Index      = 1.64993
  Normalizat = 0.884811
  Prefactor  = 0.998351
 **********
 **   18 **HESSE 
 **********

 FCN=   12001.04     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10078E-03    94.075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6499        6.6391        .50000       -.73423    
   3  Normalizat    .88481        .25984E-01    .19337E-04   -.96996    
   4  Prefactor     .99835        .93853E-02    .65559E-05   -.92784    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20843e-08
Minuit parameter uncertainties:
  1  0.0172064
  2  148.812
  3  0.0259844
  4  0.0093853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284929': 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) = 12001.0433739
delta logL = 1.12504676508e-06

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.008e-04  1.721e-02  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.650e+00  1.488e+02  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.984e-01  9.385e-03  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:  8.848e-01  2.598e-02  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/284929/cmap_HighResolution_664416001_664675201_4FGL_J2250.0+3825_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-03', job_status='DONE', photon_flux_upper_limit='2.94e-08', time_completed='2022-01-24 00:56:49.062430', job_id='284929', GAL2='1.00', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1643014609.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='1640' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:56:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 284929: <4FGL_J2250.0+3825_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:24 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:25 2022
Terminated at Mon Jan 24 00:56:50 2022
Results reported at Mon Jan 24 00:56:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin1640 342.514 38.4247 664416001 664675201 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 :                                   973.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

