aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 153 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 = 73886
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0250.6+1712_monthly_bin167
RA = 42.6563, Dec = 17.2081
tmin = 669859201, tmax = 672451201
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='877607', job_status='RUN', time_executed='2022-04-24 00:59:36.716104', time_epoch_executed='1650787176.72' WHERE source_name='4FGL J0250.6+1712' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877607

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877607/ft1_4FGL_J0250.6+1712_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877607/ft1_4FGL_J0250.6+1712_monthly_bin167.fits outfile=/scratch/kocevski/877607/ft1_filteredMKT_4FGL_J0250.6+1712_monthly_bin167.fits ra=42.6563 dec=17.2081 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.16
user 37.15
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.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/877607/ft1_filteredMKT_4FGL_J0250.6+1712_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.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 1.04
user 0.65
sys 0.20

Number of photons that the gtmktime cut: 8976

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/877607/ltcube_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.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/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits
.....................!
real 156.40
user 155.65
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/877607/ltcube_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.fits outfile=/scratch/kocevski/877607/expmap_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.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/877607/ltcube_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.fits
.....................!
real 195.76
user 188.80
sys 6.46

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/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.fits scfile=/scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits outfile=/scratch/kocevski/877607/cmap_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.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.81
user 0.61
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.fits scfile=/scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits outfile=/scratch/kocevski/877607/cmap_HighResolution_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.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.82
user 0.63
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877607/Model_4FGL_J0250.6+1712_monthly_bin167.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/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.fits.....................!
real 1245.40
user 1241.63
sys 1.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.fits', '/scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits', expMap='/scratch/kocevski/877607/expmap_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.fits', expCube='/scratch/kocevski/877607/ltcube_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877607/Model_4FGL_J0250.6+1712_monthly_bin167.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/877607/ft1_filtered_4FGL_J0250.6+1712_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/877607/ft2_4FGL_J0250.6+1712_monthly_bin167.fits
Exposure map: /scratch/kocevski/877607/expmap_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.fits
Exposure cube: /scratch/kocevski/877607/ltcube_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877607/Model_4FGL_J0250.6+1712_monthly_bin167.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) = 98733.7354624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5672       1.0000         .10000E-03   10000.    
     2 'norm      '    23.394       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2368       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.861       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12464E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7535       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2295       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21925       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4590       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4348       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1466       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1687       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8121       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4940       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6697       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6909       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.6444       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.6463       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .33695E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    2.3272       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1968       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99154       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   98733.64     FROM MIGRAD    STATUS=FAILED      1565 CALLS     4549 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5675        1.0043        .21398E-04   -.10201E-03
   2  norm          23.395        2.6167        .82816E-04   -.16912E-03
   3  Prefactor     2.2267        1.4350        .27553E-03   -.10629E-03
   4  Prefactor     1.2369        .77669        .21336E-03   -.81843E-04
   5  norm          .10000E-03    6.4244        .18142E-02** at limit **
   6  Prefactor     14.864        13.436        .10390E-03   -.78784E-04
   7  Prefactor     .38223        3.8042        .42519E-02    .15522E-02
   8  Prefactor     .10000E-03    10.104        .18142E-02** at limit **
   9  Prefactor     .10000E-03    3.2075        .18800    ** at limit **
  10  Prefactor     .45989        4.5120        .40144E-02    .16347E-01
  11  Prefactor     6.7546        5.0920        .15440E-03   -.51837E-04
  12  Prefactor     8.2306        3.2149        .13975E-03   -.21476E-03
  13  norm          7.4106        1.1175        .12362E-03   -.16627E-03
  14  Prefactor     .23161        1.6797        .79324E-01    .40902E-02
  15  norm          1.4589        .23769        .50353E-04   -.17629E-02
  16  Prefactor     .10000E-03    5.5534        .18142E-02** at limit **
  17  norm          4.4356        3.6493        .19122E-03   -.23496E-03
  18  Prefactor     3.1473        5.0710        .11426E-02   -.21413E-03
  19  Prefactor     6.1644        14.538        .16164E-03   -.55142E-04
  20  Prefactor     4.8121        3.3184        .91696E-03   -.50684E-03
  21  Prefactor     3.4938        3.2944        .21631E-03    .25228E-05
  22  norm          .10000E-03    .48013        .18142E-02** at limit **
  23  norm          4.6694        2.4674        .18623E-03   -.22465E-04
  24  norm          1.6906        1.1402        .26600E-03   -.97106E-04
  25  norm          .10000E-03    2.5921        .37048E-02** at limit **
  26  Prefactor     .10000E-03    30.575        .18142E-02** at limit **
  27  Prefactor     1.6442        1.1316        .26880E-03   -.41279E-04
  28  Prefactor     3.6444        1.7691        .10578E-02   -.31091E-03
  29  Prefactor     .10003E-03    .78033        .10124    ** at limit **
  30  norm          2.3272        .80801        .15506E-03    .19942E-03
  31  Normalizat    1.1966        .92343E-01    .42578E-03   -.15892E-03
  32  Prefactor     .99163        .29599E-01    .16523E-03   -.15668E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   98733.64     FROM SIMPLEX   STATUS=UNCHANGED   1482 CALLS     6031 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5675        1.0043        .89901E-07   -1.5330    
   2  norm          23.395        2.6167        .92246E-07   -1.4740    
   3  Prefactor     2.2267        1.4350        .16502E-06   -1.5410    
   4  Prefactor     1.2369        .77669        .12072E-06   -1.5486    
   5  norm          .10000E-03    6.4244        .42525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.864        13.436        .35876E-09   -1.4937    
   7  Prefactor     .38223        3.8042        .91855E-09   -1.5584    
   8  Prefactor     .10000E-03    10.104        .52802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2075        .42406E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .45989        4.5120        .89629E-08   -1.5572    
  11  Prefactor     6.7546        5.0920        .29168E-08   -1.5188    
  12  Prefactor     8.2306        3.2149        .11918E-08   -1.5134    
  13  norm          7.4106        1.1175        .87938E-09   -1.5163    
  14  Prefactor     .23161        1.6797        .87305E-08   -1.5612    
  15  norm          1.4589        .23769        .34798E-09   -1.5466    
  16  Prefactor     .10000E-03    5.5534        .25532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4356        3.6493        .73718E-09   -1.5287    
  18  Prefactor     3.1473        5.0710        .12749E-08   -1.5353    
  19  Prefactor     6.1644        14.538        .65220E-08   -1.5211    
  20  Prefactor     4.8121        3.3184        .15060E-08   -1.5269    
  21  Prefactor     3.4938        3.2944        .15503E-08   -1.5334    
  22  norm          .10000E-03    .48013        .11660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6694        2.4674        .54815E-09   -1.5276    
  24  norm          1.6906        1.1402        .13320E-08   -1.5448    
  25  norm          .10000E-03    2.5921        .17007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    30.575        .51762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.6442        1.1316        .13438E-08   -1.5452    
  28  Prefactor     3.6444        1.7691        .26971E-08   -1.5326    
  29  Prefactor     .10003E-03    .78033        .12997E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          2.3272        .80801        .12883E-08   -1.5403    
  31  Normalizat    1.1966        .92343E-01    .67524E-09   -.86708    
  32  Prefactor     .99163        .29599E-01    .16494E-09   -.93009    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   98733.64     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     6709 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5675        1.0040        .85593E-06    .99534E-04
   2  norm          23.395        2.6157        .33127E-05    .98838E-04
   3  Prefactor     2.2267        1.4349        .11021E-04    .33008E-05
   4  Prefactor     1.2369        .77661        .85345E-05    .38364E-04
   5  norm          .10000E-03    6.4249        .36285E-03** at limit **
   6  Prefactor     14.865        13.432        .41559E-05    .61277E-04
   7  Prefactor     .38216        3.5612        .17008E-03    .29946E-04
   8  Prefactor     .10000E-03    10.107        .36285E-03** at limit **
   9  Prefactor     .10000E-03    3.2269        .18685    ** at limit **
  10  Prefactor     .45996        4.1208        .80289E-03    .20911E-03
  11  Prefactor     6.7546        5.0913        .61760E-05    .58905E-05
  12  Prefactor     8.2306        3.2140        .55901E-05    .45555E-04
  13  norm          7.4106        1.1174        .49450E-05    .73569E-05
  14  Prefactor     .23159        1.4702        .85229E-01    .37787E-02
  15  norm          1.4589        .23587        .20141E-05    .42085E-02
  16  Prefactor     .10000E-03    5.5540        .36285E-03** at limit **
  17  norm          4.4356        3.6469        .76489E-05    .61831E-04
  18  Prefactor     3.1474        5.0607        .45703E-04    .11940E-03
  19  Prefactor     6.1644        14.492        .64655E-05    .84401E-04
  20  Prefactor     4.8121        3.3152        .36679E-04   -.99185E-05
  21  Prefactor     3.4938        3.2940        .86523E-05    .37842E-04
  22  norm          .10000E-03    .48023        .36285E-03** at limit **
  23  norm          4.6694        2.4673        .74492E-05    .19535E-05
  24  norm          1.6906        1.1399        .10640E-04    .13677E-04
  25  norm          .10000E-03    2.6364        .74097E-03** at limit **
  26  Prefactor     .10000E-03    30.580        .36285E-03** at limit **
  27  Prefactor     1.6442        1.1315        .10752E-04    .67670E-05
  28  Prefactor     3.6445        1.7678        .42311E-04   -.55888E-04
  29  Prefactor     .10002E-03    .77770        .10164    ** at limit **
  30  norm          2.3272        .80746        .62024E-05   -.29327E-04
  31  Normalizat    1.1966        .92190E-01    .17031E-04    .25419E-03
  32  Prefactor     .99163        .29599E-01    .33046E-04    .36879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56753
  norm       = 23.3949
  Prefactor  = 2.22671
  Prefactor  = 1.23691
  norm       = 0.0001
  Prefactor  = 14.8645
  Prefactor  = 0.382163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.459964
  Prefactor  = 6.75456
  Prefactor  = 8.23061
  norm       = 7.41061
  Prefactor  = 0.231593
  norm       = 1.45891
  Prefactor  = 0.0001
  norm       = 4.43557
  Prefactor  = 3.14738
  Prefactor  = 6.16441
  Prefactor  = 4.81212
  Prefactor  = 3.49377
  norm       = 0.0001
  norm       = 4.66939
  norm       = 1.69063
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.64416
  Prefactor  = 3.64445
  Prefactor  = 0.000100023
  norm       = 2.32722
  Normalizat = 1.19659
  Prefactor  = 0.991628
 **********
 **   18 **HESSE 
 **********

 FCN=   98733.64     FROM HESSE     STATUS=OK           655 CALLS     7364 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5675        1.0057        .36550E-06   -1.5330    
   2  norm          23.395        2.6137        .66253E-06   -1.4740    
   3  Prefactor     2.2267        1.4349        .22043E-05   -1.5410    
   4  Prefactor     1.2369        .77664        .17069E-05   -1.5486    
   5  norm          .10000E-03    6.4248        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.865        13.481        .83118E-06   -1.4937    
   7  Prefactor     .38216        3.5325        .68031E-05   -1.5584    
   8  Prefactor     .10000E-03    10.107        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2240        .18700       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .45996        4.0642        .32116E-04   -1.5572    
  11  Prefactor     6.7546        5.0929        .12352E-05   -1.5188    
  12  Prefactor     8.2306        3.2127        .11180E-05   -1.5134    
  13  norm          7.4106        1.1175        .98900E-06   -1.5163    
  14  Prefactor     .23159        1.5235        .83328E-01   -1.5612    
  15  norm          1.4589        .23617        .40282E-06   -1.5466    
  16  Prefactor     .10000E-03    5.5541        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4356        3.6440        .15298E-05   -1.5287    
  18  Prefactor     3.1474        5.0534        .18281E-05   -1.5353    
  19  Prefactor     6.1644        14.172        .12931E-05   -1.5211    
  20  Prefactor     4.8121        3.3148        .14671E-05   -1.5269    
  21  Prefactor     3.4938        3.2937        .17305E-05   -1.5334    
  22  norm          .10000E-03    .48023        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6694        2.4673        .74492E-05   -1.5276    
  24  norm          1.6906        1.1400        .21280E-05   -1.5448    
  25  norm          .10000E-03    2.6382        .14819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    30.580        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.6442        1.1313        .21504E-05   -1.5452    
  28  Prefactor     3.6445        1.7671        .16924E-05   -1.5326    
  29  Prefactor     .10002E-03    .77792        .10161       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          2.3272        .80760        .12405E-05   -1.5403    
  31  Normalizat    1.1966        .92527E-01    .34063E-05   -.86708    
  32  Prefactor     .99163        .29619E-01    .66093E-05   -.93009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09396e-09
Minuit parameter uncertainties:
  1  1.0057
  2  2.61374
  3  1.43495
  4  0.776646
  5  3.75061e-07
  6  13.484
  7  2.32367
  8  5.21342e-07
  9  7.51545e-05
  10  2.73447
  11  5.09325
  12  3.21276
  13  1.11746
  14  1.1878
  15  0.236172
  16  2.25612e-06
  17  3.64414
  18  5.05405
  19  14.18
  20  3.31496
  21  3.29385
  22  6.43283e-09
  23  2.46739
  24  1.14003
  25  2.18816e-07
  26  4.71123e-06
  27  1.13134
  28  1.76711
  29  0.00026843
  30  0.807603
  31  0.0925399
  32  0.0296199
Done.

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

Extracting fit parameters...

4FGL J0250.6+1712
   Spectrum: PowerLaw
263    Prefactor:  3.494e+00  3.294e+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

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.916e-01  2.962e-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.197e+00  9.254e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.12
Ra Dec: 42.656 17.208
Photon Index (Fixed Index): 1.84 +/- 0.00
Photon Flux (Fixed Index): 4.10e-09 +/- 3.87e-09
Energy Flux (Fixed Index): 4.36e-06 +/- 4.11e-06

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): 0
logL (Free Index) = 98732.8835642
delta logL = 0.759433712752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 98732.7063488
delta logL = 0.936649155003

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98732.71     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      222 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4424        1.5290         .0000       -.14310    
   2  Index         .69860        .62215         .0000       -.72378E-02
   3  Normalizat    1.1983        .70875E-01     .0000        .20758E-03
   4  Prefactor     .99205        .25433E-01     .0000       -.25941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44242
  Index      = 0.6986
  Normalizat = 1.19825
  Prefactor  = 0.992052
 **********
 **   18 **HESSE 
 **********

 FCN=   98732.71     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4424        1.5624        .17959E-02   -1.5468    
   2  Index         .69860        .58794        .35145       -1.0358    
   3  Normalizat    1.1983        .80467E-01    .42553E-03   -.86657    
   4  Prefactor     .99205        .28949E-01    .16520E-03   -.92995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36763e-09
Minuit parameter uncertainties:
  1  1.5624
  2  0.59328
  3  0.0804756
  4  0.0289498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877607': 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) = 98732.7063428
delta logL = 0.93665510432

Extracting fit parameters...

4FGL J0250.6+1712
   Spectrum: PowerLaw
263    Prefactor:  1.442e+00  1.562e+00  1.000e-04  1.000e+04 ( 1.000e-14)
264        Index:  6.986e-01  5.933e-01  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:  9.921e-01  2.895e-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.198e+00  8.048e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.00
Ra Dec: 42.656 17.208
Photon Index (Free Index): 0.70 +/- 0.59
Photon Flux (Free Index): 4.61e-10 +/- 4.63e-10
Energy Flux (Free Index): 1.22e-05 +/- 1.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/877607/cmap_HighResolution_669859201_672451201_4FGL_J0250.6+1712_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.10e-09', energy_flux2='1.22e-05', photon_flux_error='3.87e-09', dlogl='9.37e-01', energy_flux='4.36e-06', photon_flux2='4.61e-10', job_status='DONE', time_completed='2022-04-24 03:58:47.674339', photon_index_error2='0.59', photon_index2='0.70', ts='6.12', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.20', time_epoch_completed='1650797927.67', return_code='0', job_id='877607', GAL2='0.99', EG2='1.20', return_code2='0', energy_flux_error='4.11e-06', photon_flux_error2='4.63e-10', ts2='8.00', photon_index='1.84' WHERE bin_id='167' AND source_name='4FGL J0250.6+1712' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 03:58:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 877607: <4FGL_J0250.6+1712_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0250.6+1712_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:50:48 2022
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:56:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:56:55 2022
Terminated at Sun Apr 24 03:58:48 2022
Results reported at Sun Apr 24 03:58:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0250.6+1712_monthly_bin167 42.6563 17.2081 669859201 672451201 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 :                                   10715.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             420.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10913 sec.
    Turnaround time :                            11280 sec.

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

