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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin1230
RA = 342.514, Dec = 38.4247
tmin = 558144001, tmax = 558403201
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='497019', job_status='RUN', time_executed='2021-09-28 21:58:17.277161', time_epoch_executed='1632891497.28' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497019

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497019/ft1_4FGL_J2250.0+3825_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497019/ft2_4FGL_J2250.0+3825_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497019/ft1_4FGL_J2250.0+3825_daily_bin1230.fits outfile=/scratch/kocevski/497019/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1230.fits ra=342.514 dec=38.4247 rad=12.0 tmin=558144001.0 tmax=558403201.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 4.34
user 4.01
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497019/ft2_4FGL_J2250.0+3825_daily_bin1230.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/497019/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1230.fits evtable="EVENTS" outfile="/scratch/kocevski/497019/ft1_filtered_4FGL_J2250.0+3825_daily_bin1230.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/497019/ft1_filtered_4FGL_J2250.0+3825_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/497019/ft2_4FGL_J2250.0+3825_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/497019/ltcube_558144001_558403201_4FGL_J2250.0+3825_daily_bin1230.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/497019/ft2_4FGL_J2250.0+3825_daily_bin1230.fits
.....................!
real 12.44
user 11.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497019/ft1_filtered_4FGL_J2250.0+3825_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/497019/ft2_4FGL_J2250.0+3825_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/497019/ltcube_558144001_558403201_4FGL_J2250.0+3825_daily_bin1230.fits outfile=/scratch/kocevski/497019/expmap_558144001_558403201_4FGL_J2250.0+3825_daily_bin1230.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/497019/ltcube_558144001_558403201_4FGL_J2250.0+3825_daily_bin1230.fits
.....................!
real 190.11
user 185.20
sys 4.57

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/497019/ft1_filtered_4FGL_J2250.0+3825_daily_bin1230.fits scfile=/scratch/kocevski/497019/ft2_4FGL_J2250.0+3825_daily_bin1230.fits outfile=/scratch/kocevski/497019/cmap_558144001_558403201_4FGL_J2250.0+3825_daily_bin1230.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.52
user 0.36
sys 0.16

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

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 355.780432965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 353.80781013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2646       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13024E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .37363E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19514E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35053E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.349       1.0000         .10000E-03   10000.    
     8 'norm      '    .27508E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    247.46       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1075       1.0000         .10000E-03   10000.    
    12 'norm      '    .22243E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16927E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15921E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1542       1.0000         .10000E-03   10000.    
    17 'Prefactor '    232.87       1.0000         .10000E-03   10000.    
    18 'norm      '    .80220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .94619E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .36871E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .57743       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   353.8031     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     1011 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1679        10.175        .34863E-02    .36577E-02
   2  Prefactor     .10519E-03    418.96        .90880E-02** at limit **
   3  Prefactor     .11554E-03    224.31        .90712E-02** at limit **
   4  norm          .10000E-03    4.4675        .26773E-01** at limit **
   5  Prefactor     .13164E-03    287.84        .10125E-01** at limit **
   6  Prefactor     .10000E-03    135.24        .91969E-02** at limit **
   7  Prefactor     19.683        48.637        .24039E-02    .20284E-02
   8  norm          .10000E-03    48.307        .99603E-02** at limit **
   9  Prefactor     .10270E-03    246.16        .95706E-02** at limit **
  10  Prefactor     247.78        414.77        .64371E-03   -.15049E-01
  11  Prefactor     .10204E-03    434.58        .71052E-02** at limit **
  12  norm          .10000E-03    10.303        .90712E-02** at limit **
  13  Prefactor     12.912        9931.1        .27950E-02   -.73744E-03
  14  Prefactor     .10000E-03    78.513        .90712E-02** at limit **
  15  norm          .10000E-03    24.903        .91024E-02** at limit **
  16  norm          5.1542        1.0048         .0000         .0000    
  17  Prefactor     232.49        .99920       -.20776E-06    .55244E-02
  18  norm          .16752E-02    .38738       -.41667E-05** at limit **
  19  Prefactor     .13397E-03    .22494        .61384E-05** at limit **
  20  Normalizat    .10002E-01    .26212        .61618E-03** at limit **
  21  Prefactor     .58609        .93081        .12511E-05    .29660E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.16791
  Prefactor  = 0.000105186
  Prefactor  = 0.000115539
  norm       = 0.0001
  Prefactor  = 0.00013164
  Prefactor  = 0.000100002
  Prefactor  = 19.6835
  norm       = 0.0001
  Prefactor  = 0.000102701
  Prefactor  = 247.78
  Prefactor  = 0.000102044
  norm       = 0.0001
  Prefactor  = 12.9115
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.15417
  Prefactor  = 232.486
  norm       = 0.00167518
  Prefactor  = 0.000133975
  Normalizat = 0.0100016
  Prefactor  = 0.586091
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   353.8031     FROM HESSE     STATUS=FAILED        41 CALLS     1052 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1679        10.175        .34863E-02   -1.5136    
   2  Prefactor     .10519E-03    418.96        .90880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11554E-03    224.31        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4675        .26773E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13164E-03    287.84        .10125E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    135.24        .91969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.683        48.637        .24039E-02   -1.4820    
   8  norm          .10000E-03    48.307        .99603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10270E-03    246.16        .95706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     247.78        414.77        .64371E-03   -1.2547    
  11  Prefactor     .10204E-03    434.58        .71052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.912        9931.1        .27950E-02   -1.4989    
  14  Prefactor     .10000E-03    78.513        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    24.903        .91024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          529.98        524.77         .0000       -1.5254    
  17  Prefactor     232.49        .99920       -.20776E-06   -1.2647    
  18  norm          .16752E-02    .38738       -.41667E-05   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13397E-03    .22494        .61384E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10002E-01    .26212        .61618E-03   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .58609        .93081        .12511E-05   -1.0818    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.46068e-10
Minuit parameter uncertainties:
  1  10.1774
  2  0.0938891
  3  0.118521
  4  4.16799e-05
  5  0.191793
  6  0.00115506
  7  48.7347
  8  0.000134611
  9  0.0517884
  10  419.861
  11  0.0600528
  12  2.61033e-05
  13  1234.37
  14  0.000158329
  15  0.000126228
  16  1.00478
  17  0.999197
  18  0.0494046
  19  0.00552892
  20  0.00131044
  21  0.957074
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 353.803056496

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.000e-02  1.310e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.514 38.425
Photon Flux Upper Limit: 1.44e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497019/likelihoodResults_558144001_558403201_4FGL_J2250.0+3825_daily_bin1230.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) = 353.803075699
delta logL = -1.92030393009e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 353.803056494
delta logL = 1.9101662474e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   353.8031     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      283 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9532.4        .90712E-02** at limit **
   2  Index         1.6866        5.5536        .50000        .59220E-06
   3  Normalizat    .10001E-01    .13579        .22339    ** at limit **
   4  Prefactor     .58609        .63296E-01    .28219E-01   -.46777E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68659
  Normalizat = 0.0100009
  Prefactor  = 0.586088
 **********
 **   18 **HESSE 
 **********

 FCN=   353.8031     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      324 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8899.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6866        5.8391        .50000       -.72439    
   3  Normalizat    .10001E-01    .80688        .15232       -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58609        .12684        .12471E-03   -1.0818    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.46371e-10
Minuit parameter uncertainties:
  1  0.00547461
  2  50.4424
  3  0.00175584
  4  0.126905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497019': 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) = 353.803056482
delta logL = 1.3351780126e-08

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  5.475e-03  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.687e+00  5.044e+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:  5.861e-01  1.269e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.000e-02  1.756e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/497019/cmap_HighResolution_558144001_558403201_4FGL_J2250.0+3825_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-01', job_status='DONE', photon_flux_upper_limit='1.44e-06', time_completed='2021-09-28 22:03:59.208716', job_id='497019', GAL2='0.59', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632891839.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.59', dlogl='1.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='1230' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:03:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 497019: <4FGL_J2250.0+3825_daily_bin1230> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin1230> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:55:20 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:55:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:55:22 2021
Terminated at Tue Sep 28 22:03:59 2021
Results reported at Tue Sep 28 22:03:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin1230 342.514 38.4247 558144001 558403201 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 :                                   326.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             386.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            519 sec.

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

