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


Performing analysis on: 4FGL_J1912.0+1612_weekly_bin714
RA = 288.021, Dec = 16.2021
tmin = 670809601, tmax = 671414401
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='432633', job_status='RUN', time_executed='2022-04-12 01:47:21.612638', time_epoch_executed='1649753241.61' WHERE source_name='4FGL J1912.0+1612' and cadence='weekly' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432633

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432633/ft1_4FGL_J1912.0+1612_weekly_bin714.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432633/ft1_4FGL_J1912.0+1612_weekly_bin714.fits outfile=/scratch/kocevski/432633/ft1_filteredMKT_4FGL_J1912.0+1612_weekly_bin714.fits ra=288.021 dec=16.2021 rad=12.0 tmin=670809601.0 tmax=671414401.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 11.71
user 11.31
sys 0.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.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/432633/ft1_filteredMKT_4FGL_J1912.0+1612_weekly_bin714.fits evtable="EVENTS" outfile="/scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.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.55
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 12392

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/432633/ltcube_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.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/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits
.....................!
real 26.48
user 26.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/432633/ltcube_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.fits outfile=/scratch/kocevski/432633/expmap_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.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/432633/ltcube_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.fits
.....................!
real 190.68
user 185.18
sys 5.19

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 W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 283 point sources and 5 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 J1912.0+1612 @ 288.021 16.2021

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.fits scfile=/scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits outfile=/scratch/kocevski/432633/cmap_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.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=288.021 yref=16.2021 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.59
user 0.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.fits scfile=/scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits outfile=/scratch/kocevski/432633/cmap_HighResolution_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.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=288.021 yref=16.2021 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.60
user 0.44
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432633/Model_4FGL_J1912.0+1612_weekly_bin714.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 G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.fits.....................!
real 3360.08
user 3353.51
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.fits', '/scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits', expMap='/scratch/kocevski/432633/expmap_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.fits', expCube='/scratch/kocevski/432633/ltcube_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432633/Model_4FGL_J1912.0+1612_weekly_bin714.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1912.0+1612'

4FGL J1912.0+1612
   Spectrum: PowerLaw
549    Prefactor:  2.266e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
550        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
551        Scale:  1.434e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/432633/ft1_filtered_4FGL_J1912.0+1612_weekly_bin714.fits
Spacecraft file(s): /scratch/kocevski/432633/ft2_4FGL_J1912.0+1612_weekly_bin714.fits
Exposure map: /scratch/kocevski/432633/expmap_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.fits
Exposure cube: /scratch/kocevski/432633/ltcube_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432633/Model_4FGL_J1912.0+1612_weekly_bin714.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) = 110302.092721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0094       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.002       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.182       1.0000         .10000E-03   10000.    
     5 'norm      '    .10289E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2983       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11619E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24767E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Normalizat'    1.0236       1.0000         .10000E-01   10.000    
    13 'Prefactor '    1.0201       1.0000          .0000       10.000    
    14 'norm      '    8.1050       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1044E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   110301.4     FROM MIGRAD    STATUS=CONVERGED    273 CALLS     1102 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0370        26.779        .47982E-04    .17563E-04
   2  Prefactor     17.003        12.338       -.13877E-05   -.20714E-04
   3  norm          4.0507        4.9283        .18366E-06   -.12502E-03
   4  Prefactor     10.180        12.203        .76621E-06    .64191E-04
   5  norm          .10000E-03    24.198       -.81935E-06** at limit **
   6  norm          .10000E-03    .73362        .48642E-07** at limit **
   7  Prefactor     1.3056        .21661        .36164E-08   -.36103E-02
   8  Prefactor     .10000E-03    .59163        .11404E-06** at limit **
   9  Prefactor     .10000E-03    43.303        .39295E-05** at limit **
  10  Prefactor     .10000E-03    6.8995       -.14411E-07** at limit **
  11  norm          .10000E-03    .79579        .28529E-07** at limit **
  12  Normalizat    1.0237        .22792       -.49176E-05   -.24387E-03
  13  Prefactor     1.0201        .16277E-01    .11952E-06    .92706E-03
  14  norm          8.1053        1.4366        .14249E-07   -.40952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03704
  Prefactor  = 17.0034
  norm       = 4.05067
  Prefactor  = 10.1803
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.30557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.02372
  Prefactor  = 1.02009
  norm       = 8.1053
 **********
 **   18 **HESSE 
 **********

 FCN=   110301.4     FROM HESSE     STATUS=OK           176 CALLS     1278 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0370        26.764        .14167E-03   -1.5141    
   2  Prefactor     17.003        12.285        .97132E-04   -1.4883    
   3  norm          4.0507        4.9315        .10017E-02   -1.5305    
   4  Prefactor     10.180        12.176        .12557E-03   -1.5070    
   5  norm          .10000E-03    24.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.0730        .55450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3056        1.5771        .19399E-02   -1.5479    
   8  Prefactor     .10000E-03    .57981        .92585E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .80740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.0237        .20744        .16025E-02   -.92240    
  13  Prefactor     1.0201        .15573E-01    .11534E-03   -.92063    
  14  norm          8.1053        1.4465        .70415E-03   -1.5138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35274e-09
Minuit parameter uncertainties:
  1  26.8041
  2  12.2873
  3  4.93201
  4  12.1785
  5  2.4405e-05
  6  9.07161e-06
  7  1.5772
  8  5.9796e-06
  9  8.29222e-05
  10  4.67589e-06
  11  2.00982e-06
  12  0.207599
  13  0.0155731
  14  1.44652
Done.

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

Extracting fit parameters...

4FGL J1912.0+1612
   Spectrum: PowerLaw
549    Prefactor:  1.018e+01  1.218e+01  1.000e-04  1.000e+04 ( 1.000e-13)
550        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
551        Scale:  1.434e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1026    Prefactor:  1.020e+00  1.557e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1027        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1028        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1022   Normalization:  1.024e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 288.021 16.202
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432633/likelihoodResults_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.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) = 110299.651215
delta logL = 1.71000870656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 110299.627768
delta logL = 1.73345648876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59870       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3424       1.0000          .0000       10.000    
     3 'Normalizat'    .96136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1044E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   110299.6     FROM MIGRAD    STATUS=FAILED       116 CALLS      357 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59846        7.4499        .12371E-03    .52197E-03
   2  Index         4.3429        2.7679        .83870E-02    .39663E-03
   3  Normalizat    .96135        .17476        .16439E-02    .15159E-04
   4  Prefactor     1.0202        .12703E-01    .11530E-03    .59947E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   110299.6     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      442 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59846        7.4499        .16341E-03    .52197E-03
   2  Index         4.3429        2.7679        .18751E-02    .39663E-03
   3  Normalizat    .96135        .17476        .17076E-03    .15159E-04
   4  Prefactor     1.0202        .12703E-01    .15359E-04    .59947E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   110299.6     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      471 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59846        6.0392        .49485E-05    .48521E-03
   2  Index         4.3429        2.5204        .33548E-03    .43376E-04
   3  Normalizat    .96135        .20629        .65756E-04    .14385E-04
   4  Prefactor     1.0202        .15174E-01    .46121E-05    .63103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.598458
  Index      = 4.34285
  Normalizat = 0.961349
  Prefactor  = 1.02021
 **********
 **   18 **HESSE 
 **********

 FCN=   110299.6     FROM HESSE     STATUS=OK            23 CALLS      494 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59846        2.2176        .98970E-06   -1.5553    
   2  Index         4.3429        1.5174        .13419E-04   -.13181    
   3  Normalizat    .96135        .20558        .13151E-04   -.94337    
   4  Prefactor     1.0202        .15005E-01    .92243E-06   -.92059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62887e-12
Minuit parameter uncertainties:
  1  2.21787
  2  1.54213
  3  0.205747
  4  0.0150051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432633': 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) = 110299.627767
delta logL = 1.73345749448

Extracting fit parameters...

4FGL J1912.0+1612
   Spectrum: PowerLaw
549    Prefactor:  5.985e-01  2.218e+00  1.000e-04  1.000e+04 ( 1.000e-13)
550        Index:  4.343e+00  1.542e+00  0.000e+00  1.000e+01 (-1.000e+00)
551        Scale:  1.434e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1026    Prefactor:  1.020e+00  1.501e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1027        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1028        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1022   Normalization:  9.613e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 288.021 16.202
Photon Index (Free Index): 4.34 +/- 1.54
Photon Flux (Free Index): 1.90e-07 +/- 9.73e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.51e-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/432633/cmap_HighResolution_670809601_671414401_4FGL_J1912.0+1612_weekly_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', energy_flux2='2.70e-05', dlogl='1.73e+00', photon_flux2='1.90e-07', job_status='DONE', time_completed='2022-04-12 04:32:06.463047', photon_index_error2='1.54', photon_index2='4.34', ts='0.77', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.51e-05', EG='1.02', time_epoch_completed='1649763126.46', return_code='0', job_id='432633', GAL2='1.02', EG2='0.96', return_code2='0', photon_flux_error2='9.73e-08', ts2='4.35', photon_index='2.52' WHERE bin_id='714' AND source_name='4FGL J1912.0+1612' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 12 04:32:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 432633: <4FGL_J1912.0+1612_weekly_bin714> in cluster <slac> Done

Job <4FGL_J1912.0+1612_weekly_bin714> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Apr 12 01:45:20 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 01:45:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 01:45:21 2022
Terminated at Tue Apr 12 04:32:08 2022
Results reported at Tue Apr 12 04:32:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1912.0+1612_weekly_bin714 288.021 16.2021 670809601 671414401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1912.0+1612 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9877.00 sec.
    Max Memory :                                 1098 MB
    Average Memory :                             596.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10006 sec.
    Turnaround time :                            10008 sec.

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

