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


Performing analysis on: 4FGL_J0250.6+1712_daily_bin1618
RA = 42.6563, Dec = 17.2081
tmin = 658713601, tmax = 658972801
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='166970', job_status='RUN', time_executed='2021-12-07 13:44:39.966634', time_epoch_executed='1638913479.97' WHERE source_name='4FGL J0250.6+1712' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166970/ft1_4FGL_J0250.6+1712_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166970/ft1_4FGL_J0250.6+1712_daily_bin1618.fits outfile=/scratch/kocevski/166970/ft1_filteredMKT_4FGL_J0250.6+1712_daily_bin1618.fits ra=42.6563 dec=17.2081 rad=12.0 tmin=658713601.0 tmax=658972801.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 2.99
user 2.79
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.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/166970/ft1_filteredMKT_4FGL_J0250.6+1712_daily_bin1618.fits evtable="EVENTS" outfile="/scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/166970/ltcube_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.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/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits
.....................!
real 19.89
user 19.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/166970/ltcube_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.fits outfile=/scratch/kocevski/166970/expmap_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.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/166970/ltcube_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.fits
.....................!
real 194.01
user 189.21
sys 4.43

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
Added 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J0250.6+1712 @ 42.6563 17.2081

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.fits scfile=/scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits outfile=/scratch/kocevski/166970/cmap_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.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=42.6563 yref=17.2081 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.fits scfile=/scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits outfile=/scratch/kocevski/166970/cmap_HighResolution_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.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=42.6563 yref=17.2081 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166970/Model_4FGL_J0250.6+1712_daily_bin1618.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.fits....................!
real 16.47
user 14.99
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.fits', '/scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits', expMap='/scratch/kocevski/166970/expmap_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.fits', expCube='/scratch/kocevski/166970/ltcube_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166970/Model_4FGL_J0250.6+1712_daily_bin1618.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0250.6+1712'

4FGL J0250.6+1712
   Spectrum: PowerLaw
263    Prefactor:  2.518e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
264        Index:  1.840e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  4.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/166970/ft1_filtered_4FGL_J0250.6+1712_daily_bin1618.fits
Spacecraft file(s): /scratch/kocevski/166970/ft2_4FGL_J0250.6+1712_daily_bin1618.fits
Exposure map: /scratch/kocevski/166970/expmap_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.fits
Exposure cube: /scratch/kocevski/166970/ltcube_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166970/Model_4FGL_J0250.6+1712_daily_bin1618.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) = 252.777932029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.124       1.0000         .10000E-03   10000.    
     2 'norm      '    68.467       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    37.173       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89553       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26319E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9516       1.0000         .10000E-03   10000.    
     9 'Prefactor '    309.44       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18013E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    36.277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96585       1.0000         .10000E-03   10000.    
    15 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4777       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1034       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8576       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25903       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5458       1.0000         .10000E-03   10000.    
    22 'norm      '    .28842       1.0000         .10000E-03   10000.    
    23 'norm      '    .21441       1.0000         .10000E-03   10000.    
    24 'norm      '    .57218       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1118       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.6702       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .20525E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.6011       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.3563       1.0000         .10000E-03   10000.    
    30 'norm      '    2.1368       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .71939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   249.1060     FROM MIGRAD    STATUS=CONVERGED    360 CALLS      919 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.812        32.312       -.22349E-04   -.79510E-04
   2  norm          68.804        50.920        .22475E-04    .54130E-03
   3  Prefactor     .10000E-03    22.153       -.82900E-06** at limit **
   4  Prefactor     .10000E-03    8.4638       -.32360E-05** at limit **
   5  norm          262.90        868.98       -.16565E-03   -.10097E-04
   6  Prefactor     .10000E-03    442.55       -.47883E-04** at limit **
   7  Prefactor     .10000E-03    90.344       -.11075E-04** at limit **
   8  Prefactor     .10014E-03    328.55        .13446E-03** at limit **
   9  Prefactor     316.72        542.43        .15844E-03    .23590E-04
  10  Prefactor     .10000E-03    120.09        .10913E-04** at limit **
  11  Prefactor     .10000E-03    80.525        .62118E-05** at limit **
  12  Prefactor     .10000E-03    59.516       -.69101E-05** at limit **
  13  norm          35.578        31.188       -.30974E-04   -.96620E-04
  14  Prefactor     .10000E-03    132.71        .23313E-04** at limit **
  15  norm          .10000E-03    5.0912       -.65889E-06** at limit **
  16  Prefactor     .12174E-03    698.65       -.57465E-03** at limit **
  17  norm          .10000E-03    170.04        .21340E-05** at limit **
  18  Prefactor     .10022E-03    260.91       -.95845E-04** at limit **
  19  Prefactor     .27259E-03    240.44       -.58861E-03** at limit **
  20  Prefactor     .10000E-03    106.40        .24620E-05** at limit **
  21  Prefactor     .10038E-03    911.39        .35175E-03** at limit **
  22  norm          .10002E-03    425.75       -.55903E-04** at limit **
  23  norm          .10737E-03    668.69        .79123E-03** at limit **
  24  norm          .10053E-03    703.33       -.18031E-03** at limit **
  25  norm          .10002E-03    6188.5       -.21408E-03** at limit **
  26  Prefactor     6.6702        1.0028         .0000         .0000    
  27  Prefactor     .10000E-03    270.81        .17663E-04** at limit **
  28  Prefactor     1.6011        1.0597         .0000         .0000    
  29  Prefactor     1.3563        1.0925         .0000         .0000    
  30  norm          2.1368        1.0304         .0000         .0000    
  31  Normalizat    .10000E-01    .95108       -.40491E-05** at limit **
  32  Prefactor     .66219        .44980        .49306E-04    .96558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.8121
  norm       = 68.8042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 262.897
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100142
  Prefactor  = 316.724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.578
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000121739
  norm       = 0.0001
  Prefactor  = 0.000100218
  Prefactor  = 0.000272589
  Prefactor  = 0.0001
  Prefactor  = 0.000100381
  norm       = 0.000100018
  norm       = 0.000107371
  norm       = 0.000100528
  norm       = 0.000100016
  Prefactor  = 6.67016
  Prefactor  = 0.000100001
  Prefactor  = 1.60111
  Prefactor  = 1.35625
  norm       = 2.13677
  Normalizat = 0.01
  Prefactor  = 0.662192
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   249.1060     FROM HESSE     STATUS=FAILED       111 CALLS     1030 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.812        29.416        .13155E-02   -1.4160    
   2  norm          68.804        49.931        .12127E-02   -1.4047    
   3  Prefactor     .10000E-03    22.358        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          262.90        765.36        .16434E-02   -1.2451    
   6  Prefactor     .10000E-03    444.43        .12791E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    90.032        .10722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10014E-03    329.39        .59097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     316.72        473.42        .57748E-03   -1.2130    
  10  Prefactor     .10000E-03    119.07        .91128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    80.596        .10670E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    59.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          35.578        30.480        .16635E-02   -1.4514    
  14  Prefactor     .10000E-03    133.86        .13044E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.1515        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12174E-03    805.61        .88300E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    170.10        .11289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10022E-03    260.64        .76446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27259E-03    1131.3        .10244E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    105.91        .99821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10038E-03    911.60        .85687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    425.79        .10374E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10737E-03    704.13        .10043E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10053E-03    676.89        .11562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10002E-03    6187.7        .11190E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     516.06        509.35         .0000       -1.5191    
  27  Prefactor     .10000E-03    .20817        .17663E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.6011        1.0597         .0000       -1.5455    
  29  Prefactor     1.3563        1.0925         .0000       -1.5475    
  30  norm          2.1368        1.0304         .0000       -1.5416    
  31  Normalizat    .10000E-01    .25505       -.40491E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .66219        1.0289        .49306E-04   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.28014e-10
Minuit parameter uncertainties:
  1  29.4235
  2  49.9617
  3  1.5466e-05
  4  6.14969e-06
  5  798.038
  6  8.97911e-05
  7  0.000506706
  8  0.0137387
  9  479.383
  10  1.58119e-06
  11  9.76139e-06
  12  7.51532e-05
  13  30.4929
  14  0.00024736
  15  1.69664e-06
  16  0.268365
  17  8.86345e-05
  18  0.0151531
  19  0.901329
  20  0.000165018
  21  0.0378449
  22  0.00550636
  23  0.145836
  24  0.038239
  25  0.0130331
  26  1.00284
  27  2.86859e-05
  28  1.05971
  29  1.09255
  30  1.0304
  31  7.15773e-07
  32  1.06077
Done.

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

Extracting fit parameters...

4FGL J0250.6+1712
   Spectrum: PowerLaw
263    Prefactor:  1.004e-04  3.784e-02  1.000e-04  1.000e+04 ( 1.000e-14)
264        Index:  1.840e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  4.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  6.622e-01  1.061e+00  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.000e-02  7.158e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 42.656 17.208
Photon Flux Upper Limit: 6.40e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166970/likelihoodResults_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.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) = 249.105993117
delta logL = -5.31018042693e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 249.105997388
delta logL = -9.58124644512e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96210E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8404       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66233       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   249.1060     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      206 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    826.04        .90727E-02** at limit **
   2  Index         1.7966        9.0576        .50000        .32261E-06
   3  Normalizat    .10000E-01    .14196E-02    .21744    ** at limit **
   4  Prefactor     .66219        .14411E-01    .41898E-01    .64458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100047
  Index      = 1.79657
  Normalizat = 0.01
  Prefactor  = 0.66219
 **********
 **   18 **HESSE 
 **********

 FCN=   249.1060     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    6823.9        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7966        5.3380        .50000       -.69539    
   3  Normalizat    .10000E-01    .81089E-02    .89866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66219        .32151E-01    .21845E-03   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33649e-09
Minuit parameter uncertainties:
  1  0.0280915
  2  948.085
  3  8.66328e-07
  4  0.0321524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166970': 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) = 249.105987803
delta logL = 4.10022948927e-09

Extracting fit parameters...

4FGL J0250.6+1712
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  2.809e-02  1.000e-04  1.000e+04 ( 1.000e-14)
264        Index:  1.797e+00  9.481e+02  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  4.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  6.622e-01  3.215e-02  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.000e-02  8.663e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 42.656 17.208

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/166970/cmap_HighResolution_658713601_658972801_4FGL_J0250.6+1712_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-01', job_status='DONE', photon_flux_upper_limit='6.40e-06', time_completed='2021-12-07 13:50:10.951188', job_id='166970', GAL2='0.66', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1638913810.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.66', dlogl='4.10e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.84' WHERE bin_id='1618' AND source_name='4FGL J0250.6+1712' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:50:10 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 166970: <4FGL_J0250.6+1712_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0250.6+1712_daily_bin1618> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 13:35:20 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:40:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:40:42 2021
Terminated at Tue Dec  7 13:50:11 2021
Results reported at Tue Dec  7 13:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0250.6+1712_daily_bin1618 42.6563 17.2081 658713601 658972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0250.6+1712 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   331.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            891 sec.

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

