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


Performing analysis on: 4FGL_J1941.7+7218_monthly_bin118
RA = 295.437, Dec = 72.3101
tmin = 542851201, tmax = 545443201
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='287159', job_status='RUN', time_executed='2021-11-04 17:55:51.295941', time_epoch_executed='1636073751.3' WHERE source_name='4FGL J1941.7+7218' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287159

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287159/ft1_4FGL_J1941.7+7218_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287159/ft1_4FGL_J1941.7+7218_monthly_bin118.fits outfile=/scratch/kocevski/287159/ft1_filteredMKT_4FGL_J1941.7+7218_monthly_bin118.fits ra=295.437 dec=72.3101 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.47
user 17.92
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.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/287159/ft1_filteredMKT_4FGL_J1941.7+7218_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.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.60
user 0.43
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/287159/ltcube_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.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/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits
.....................!
real 40.47
user 40.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/287159/ltcube_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.fits outfile=/scratch/kocevski/287159/expmap_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.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/287159/ltcube_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.fits
.....................!
real 193.05
user 187.82
sys 4.79

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 J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 191 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 J1941.7+7218 @ 295.437 72.3101

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.fits scfile=/scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits outfile=/scratch/kocevski/287159/cmap_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.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=295.437 yref=72.3101 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.62
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.fits scfile=/scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits outfile=/scratch/kocevski/287159/cmap_HighResolution_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.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=295.437 yref=72.3101 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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287159/Model_4FGL_J1941.7+7218_monthly_bin118.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.fits.....................!
real 24.13
user 22.86
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.fits', '/scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits', expMap='/scratch/kocevski/287159/expmap_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.fits', expCube='/scratch/kocevski/287159/ltcube_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/287159/Model_4FGL_J1941.7+7218_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1941.7+7218'

4FGL J1941.7+7218
   Spectrum: PowerLaw
385    Prefactor:  1.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
386        Index:  2.770e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
387        Scale:  6.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/287159/ft1_filtered_4FGL_J1941.7+7218_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/287159/ft2_4FGL_J1941.7+7218_monthly_bin118.fits
Exposure map: /scratch/kocevski/287159/expmap_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.fits
Exposure cube: /scratch/kocevski/287159/ltcube_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/287159/Model_4FGL_J1941.7+7218_monthly_bin118.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) = 822.294779221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.384       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6345       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.191       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10683E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    37.995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.022       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5823       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   822.2687     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3421 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.387        18.566       -.29926E-06    .55956E-04
   2  Prefactor     .10000E-03    73.947       -.45327E-04** at limit **
   3  norm          .10000E-03    8.0968        .40900E-06** at limit **
   4  norm          2.6368        5.2168       -.11029E-05    .28174E-04
   5  norm          .10000E-03    9.0069        .43457E-05** at limit **
   6  Prefactor     .10000E-03    59.077       -.14952E-05** at limit **
   7  Prefactor     .10000E-03    267.97       -.49332E-04** at limit **
   8  Prefactor     .10000E-03    8.3321       -.11793E-05** at limit **
   9  Prefactor     .10000E-03    30.582       -.23108E-04** at limit **
  10  Prefactor     .10000E-03    309.35       -.13576E-03** at limit **
  11  Prefactor     .10000E-03    173.24        .69867E-04** at limit **
  12  norm          .10000E-03    4.9620       -.56686E-07** at limit **
  13  norm          .10000E-03    12.709        .20262E-06** at limit **
  14  norm          .10000E-03    36.799       -.82849E-06** at limit **
  15  Prefactor     17.150        66.714       -.47126E-04    .44198E-05
  16  Prefactor     .10000E-03    46.207        .31940E-04** at limit **
  17  norm          .10000E-03    5.2358        .57693E-06** at limit **
  18  norm          .10000E-03    120.88        .14122E-04** at limit **
  19  norm          .10000E-03    103.33       -.17376E-04** at limit **
  20  norm          37.993        72.031        .23227E-05   -.26740E-05
  21  Prefactor     44.993        87.293       -.25672E-04   -.89938E-05
  22  norm          .10000E-03    9.1220       -.37275E-05** at limit **
  23  Prefactor     .10000E-03    117.32        .69128E-05** at limit **
  24  norm          .10000E-03    19.962       -.29284E-05** at limit **
  25  Prefactor     .10000E-03    25.559        .14718E-04** at limit **
  26  Prefactor     .10000E-03    176.72        .69333E-04** at limit **
  27  Normalizat    1.5815        .75528        .23001E-04   -.10666E-03
  28  Prefactor     .75193        .20105       -.24330E-05    .26967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3866
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.6368
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1497
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 37.9933
  Prefactor  = 44.9925
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.58153
  Prefactor  = 0.751926
 **********
 **   18 **HESSE 
 **********

 FCN=   822.2687     FROM HESSE     STATUS=OK           501 CALLS     3922 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.387        18.571        .98948E-04   -1.4898    
   2  Prefactor     .10000E-03    73.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.1206        .79701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6368        5.2448        .85415E-04   -1.5383    
   5  norm          .10000E-03    9.0102        .84069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    59.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    268.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.3328        .80866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.576        .15496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    309.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    173.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9630        .62399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.711        .99880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    36.826        .17002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.150        67.333        .96599E-04   -1.4879    
  16  Prefactor     .10000E-03    46.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.2509        .64003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    120.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    106.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          37.993        72.027        .65022E-04   -1.4474    
  21  Prefactor     44.993        87.224        .59753E-04   -1.4365    
  22  norm          .10000E-03    9.1317        .84614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    117.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    19.963        .12519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.620        .14160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    176.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5815        .83303        .36780E-03   -.75512    
  28  Prefactor     .75193        .22157        .14498E-03   -1.0153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69283e-10
Minuit parameter uncertainties:
  1  18.5779
  2  5.4625e-06
  3  3.70875e-05
  4  5.24575
  5  1.85344e-05
  6  1.25107e-05
  7  1.51049e-06
  8  5.84192e-07
  9  4.36002e-05
  10  0.000143187
  11  5.30776e-05
  12  2.00113e-05
  13  8.12423e-06
  14  3.67219e-05
  15  67.6335
  16  0.000192406
  17  0.000148639
  18  8.67816e-06
  19  0.000730656
  20  72.1925
  21  87.4732
  22  1.00622e-05
  23  0.000301944
  24  7.75058e-06
  25  7.45288e-05
  26  0.000164109
  27  0.840494
  28  0.221832
Done.

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

Extracting fit parameters...

4FGL J1941.7+7218
   Spectrum: PowerLaw
385    Prefactor:  1.000e-04  1.924e-04  1.000e-04  1.000e+04 ( 1.000e-12)
386        Index:  2.770e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
387        Scale:  6.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  7.519e-01  2.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  1.582e+00  8.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 295.437 72.310
Photon Flux Upper Limit: 6.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287159/likelihoodResults_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.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) = 822.268758889
delta logL = -0.000101992526197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 822.268658068
delta logL = -1.17163313007e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   822.2687     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      292 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11685E-03    29.360        .14364E-01** at limit **
   2  Index         2.9687        6.4048        .50000        .10455E-04
   3  Normalizat    1.5815        .19527E-01    .36780E-03   -.11379E-04
   4  Prefactor     .75192        .55889E-02    .14498E-03   -.89529E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000116852
  Index      = 2.9687
  Normalizat = 1.58155
  Prefactor  = 0.751922
 **********
 **   18 **HESSE 
 **********

 FCN=   822.2687     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11685E-03    1502.5        .33163E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9687        6.2494        .50000       -.41836    
   3  Normalizat    1.5815        .14749        .14712E-04   -.75512    
   4  Prefactor     .75192        .42221E-01    .28996E-04   -1.0153    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.956e-07
Minuit parameter uncertainties:
  1  0.326806
  2  1700.95
  3  0.14753
  4  0.0422224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287159': 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) = 822.268657433
delta logL = -5.36093921255e-07

Extracting fit parameters...

4FGL J1941.7+7218
   Spectrum: PowerLaw
385    Prefactor:  1.169e-04  3.268e-01  1.000e-04  1.000e+04 ( 1.000e-12)
386        Index:  2.969e+00  1.701e+03  0.000e+00  1.000e+01 (-1.000e+00)
387        Scale:  6.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  7.519e-01  4.222e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  1.582e+00  1.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 295.437 72.310

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/287159/cmap_HighResolution_542851201_545443201_4FGL_J1941.7+7218_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-02', job_status='DONE', photon_flux_upper_limit='6.36e-07', time_completed='2021-11-04 18:05:21.327623', job_id='287159', GAL2='0.75', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1636074321.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-5.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='118' AND source_name='4FGL J1941.7+7218' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Nov  4 18:05:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 287159: <4FGL_J1941.7+7218_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1941.7+7218_monthly_bin118> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Nov  4 17:55:22 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Nov  4 17:55:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Nov  4 17:55:24 2021
Terminated at Thu Nov  4 18:05:21 2021
Results reported at Thu Nov  4 18:05:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.7+7218_monthly_bin118 295.437 72.3101 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1941.7+7218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   530.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            599 sec.

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

