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 48 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1757
RA = 146.316, Dec = 52.0053
tmin = 694742401, tmax = 695001601
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='191781', job_status='RUN', time_executed='2023-01-10 00:38:28.522126', time_epoch_executed='1673339908.52' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191781/ft1_4FGL_J0945.2+5200_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191781/ft1_4FGL_J0945.2+5200_daily_bin1757.fits outfile=/scratch/kocevski/191781/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1757.fits ra=146.316 dec=52.0053 rad=12.0 tmin=694742401.0 tmax=695001601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.92
user 2.66
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.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/191781/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1757.fits evtable="EVENTS" outfile="/scratch/kocevski/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.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.51
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 372

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/191781/ltcube_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.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/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits
.....................!
real 14.81
user 14.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/191781/ltcube_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.fits outfile=/scratch/kocevski/191781/expmap_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.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/191781/ltcube_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.fits
.....................!
real 191.91
user 186.34
sys 5.13

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.fits scfile=/scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits outfile=/scratch/kocevski/191781/cmap_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.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=146.316 yref=52.0053 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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.fits scfile=/scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits outfile=/scratch/kocevski/191781/cmap_HighResolution_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.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=146.316 yref=52.0053 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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191781/Model_4FGL_J0945.2+5200_daily_bin1757.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/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.fits.....................!
real 44.10
user 42.74
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.fits', '/scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits', expMap='/scratch/kocevski/191781/expmap_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.fits', expCube='/scratch/kocevski/191781/ltcube_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191781/Model_4FGL_J0945.2+5200_daily_bin1757.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191781/ft1_filtered_4FGL_J0945.2+5200_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/191781/ft2_4FGL_J0945.2+5200_daily_bin1757.fits
Exposure map: /scratch/kocevski/191781/expmap_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.fits
Exposure cube: /scratch/kocevski/191781/ltcube_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191781/Model_4FGL_J0945.2+5200_daily_bin1757.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) = 4079.93251942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.853       1.0000          .0000       .10000E+07
     2 'norm      '    .54762E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .58532E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .31709E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    15.618       1.0000          .0000       .10000E+07
     6 'Prefactor '    43.136       1.0000          .0000       .10000E+07
     7 'norm      '    .59919E-05   1.0000          .0000       .10000E+07
     8 'norm      '    2.9991       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10838       1.0000          .0000       .10000E+07
    10 'Prefactor '    .69767E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11186E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.4225       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17141E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .30500E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    33.712       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22127E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .36442E-02   1.0000          .0000       .10000E+07
    18 'norm      '    4.3110       1.0000          .0000       .10000E+07
    19 'Prefactor '    .43785       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.0062       1.0000          .0000       .10000E+07
    21 'norm      '    .53844       1.0000          .0000       .10000E+07
    22 'norm      '    44.087       1.0000          .0000       .10000E+07
    23 'Prefactor '    .11891E-02   1.0000          .0000       .10000E+07
    24 'norm      '    2.0153       1.0000          .0000       .10000E+07
    25 'Prefactor '    .22474E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    24.088       1.0000          .0000       .10000E+07
    27 'norm      '    6.8248       1.0000          .0000       .10000E+07
    28 'norm      '    .48304       1.0000          .0000       .10000E+07
    29 'Prefactor '    .10999E-01   1.0000          .0000       .10000E+07
    30 'norm      '    1.2992       1.0000          .0000       .10000E+07
    31 'Prefactor '    .45364E-03   1.0000          .0000       .10000E+07
    32 'Normalizat'    1.1009       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .74740       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4079.924     FROM MIGRAD    STATUS=CONVERGED    208 CALLS     3461 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.698        3.0939        .12411E-06   -.85710E-02
   2  norm          .55744E-06    6.4015        .71785E-06** at limit **
   3  norm          .88313E-06    9.5096        .69762E-06** at limit **
   4  Prefactor     .31602E-06    11.448        .73454E-06** at limit **
   5  Prefactor     17.164        32.205       -.17814E-05   -.15769E-01
   6  Prefactor     43.010        20.290       -.39412E-06   -.38154E-01
   7  norm           .0000        .61492       -.31011E-07** at limit **
   8  norm          3.0012        1.0882        .36220E-08    .16658E-03
   9  Prefactor     .13886        60.402       -.39821E-05** at limit **
  10  Prefactor     .33307E-09    5.7353        .12262E-05** at limit **
  11  Prefactor      .0000        4.3407        .93871E-06** at limit **
  12  Prefactor     1.4212        5.1824        .64867E-06   -.49127E-03
  13  Prefactor     .32835E-06    4.8603        .10039E-05** at limit **
  14  norm          .34822E-06    8.9462        .33858E-07** at limit **
  15  Prefactor     36.516        51.069       -.20510E-05    .72792E-02
  16  Prefactor     .11102E-09    3.4021       -.22824E-06** at limit **
  17  Prefactor     .22148E-05    7.6621        .68788E-06** at limit **
  18  norm          4.4034        8.9433       -.30657E-06    .21934E-02
  19  Prefactor     .14107E-04    179.47        .27536E-05** at limit **
  20  Prefactor     7.9159        8.5801       -.35977E-07   -.27359E-01
  21  norm          .53978        .41808        .30285E-07    .35555E-03
  22  norm          44.053        1.7201       -.22900E-07    .93568E-03
  23  Prefactor     .11102E-09    6.3405        .25459E-06** at limit **
  24  norm          2.0243        2.5720        .36271E-07   -.38688E-04
  25  Prefactor     .70133E-06    8.3793       -.62529E-06** at limit **
  26  Prefactor     24.181        4.1122       -.97628E-08    .14680E-01
  27  norm          6.8212        2.7568        .28171E-07    .58602E-05
  28  norm          .48182        .97501        .76492E-08    .44018E-04
  29  Prefactor     .75639E-05    17.053        .10538E-06** at limit **
  30  norm          1.3050        1.5056       -.26830E-07    .12620E-03
  31  Prefactor     .27124E-05    14.606        .14407E-05** at limit **
  32  Normalizat    1.0979        .23808       -.79685E-05    .17723E-04
  33  Prefactor     .74839        .26225        .82015E-05    .12701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6976
  norm       = 5.57443e-07
  norm       = 8.83127e-07
  Prefactor  = 3.16025e-07
  Prefactor  = 17.1639
  Prefactor  = 43.0104
  norm       = 0
  norm       = 3.00117
  Prefactor  = 0.138863
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 1.42117
  Prefactor  = 3.28348e-07
  norm       = 3.48221e-07
  Prefactor  = 36.5165
  Prefactor  = 1.11022e-10
  Prefactor  = 2.21478e-06
  norm       = 4.40337
  Prefactor  = 1.41072e-05
  Prefactor  = 7.91587
  norm       = 0.539784
  norm       = 44.0535
  Prefactor  = 1.11022e-10
  norm       = 2.0243
  Prefactor  = 7.01328e-07
  Prefactor  = 24.181
  norm       = 6.82123
  norm       = 0.48182
  Prefactor  = 7.56389e-06
  norm       = 1.30501
  Prefactor  = 2.71244e-06
  Normalizat = 1.09791
  Prefactor  = 0.748395
 **********
 **   18 **HESSE 
 **********

 FCN=   4079.924     FROM HESSE     STATUS=OK           769 CALLS     4230 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.698        21.218        .26886E-03   -1.5634    
   2  norm          .55744E-06    12.048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .88313E-06    14.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31602E-06    31.818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.164        58.777        .25317E-03   -1.5625    
   6  Prefactor     43.010        23.227        .15227E-03   -1.5577    
   7  norm           .0000        .60034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0012        1.0880        .58588E-03   -1.5673    
   9  Prefactor     .13886        3.4372        .82337E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33307E-09    5.7087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        12.616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4212        5.3301        .90645E-03   -1.5684    
  13  Prefactor     .32835E-06    12.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34822E-06    9.7440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.516        58.950        .17225E-03   -1.5587    
  16  Prefactor     .11102E-09    3.4001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22148E-05    16.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4034        9.8342        .48495E-03   -1.5666    
  19  Prefactor     .14107E-04    216.72        .85227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9159        55.632        .35411E-03   -1.5652    
  21  norm          .53978        .43130        .74933E-03   -1.5693    
  22  norm          44.053        25.566        .15062E-03   -1.5575    
  23  Prefactor     .11102E-09    6.3699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0243        2.5977        .72884E-03   -1.5680    
  25  Prefactor     .70133E-06    10.027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     24.181        24.516        .20380E-03   -1.5610    
  27  norm          6.8212        3.4520        .38382E-03   -1.5656    
  28  norm          .48182        1.1394        .20247E-02   -1.5694    
  29  Prefactor     .75639E-05    35.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.3050        1.5309        .96931E-03   -1.5685    
  31  Prefactor     .27124E-05    29.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0979        .21986        .37965E-01   -.89819    
  33  Prefactor     .74839        .23234        .71852E-01   -1.0166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00017e-06
Minuit parameter uncertainties:
  1  21.2177
  2  0.00518305
  3  0.00722123
  4  0.00634194
  5  58.7793
  6  23.2272
  7  8.15711e-07
  8  1.08801
  9  1.38174
  10  9.02322e-05
  11  3.61567e-05
  12  5.33012
  13  0.00412599
  14  0.00368399
  15  58.9511
  16  3.99806e-05
  17  0.0121608
  18  9.83423
  19  0.11059
  20  41.9708
  21  0.431301
  22  25.5665
  23  5.41987e-05
  24  2.59775
  25  0.00530369
  26  24.5161
  27  3.45198
  28  1.13937
  29  0.032925
  30  1.5309
  31  0.0178873
  32  0.220048
  33  0.232645
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  2.215e-06  1.216e-02  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  7.484e-01  2.326e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.098e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.316 52.005
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191781/likelihoodResults_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.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) = 4079.92420361
delta logL = -0.000621236331426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4079.9235826
delta logL = -2.23129973165e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31791E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.0706       1.0000          .0000       10.000    
     3 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4079.924     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      282 TOTAL
                     EDM=   .22E-16    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .10855E-03    .42118E-02** at limit **
   2  Index         3.8566        7.2586        .50000        .68212E-11
   3  Normalizat    1.0979        .34520E-04    .38084E-01   -.81552E-05
   4  Prefactor     .74839        .40296E-04    .71852E-01    .38591E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 3.85656
  Normalizat = 1.09791
  Prefactor  = 0.748395
 **********
 **   18 **HESSE 
 **********

 FCN=   4079.924     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      315 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .15636        .19335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8566        7.4355        .50000       -.23073    
   3  Normalizat    1.0979        .36737E-03    .23032E-03   -.89819    
   4  Prefactor     .74839        .42812E-03    .31798E-03   -1.0166    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15244e-14
Minuit parameter uncertainties:
  1  5.02856e-06
  2  19812.8
  3  0.000367368
  4  0.000428119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191781': 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) = 4079.92358231
delta logL = 6.58151293464e-08

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  5.551e-11  5.029e-06  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  3.857e+00  1.981e+04  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  7.484e-01  4.281e-04  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.098e+00  3.674e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.316 52.005

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/191781/cmap_HighResolution_694742401_695001601_4FGL_J0945.2+5200_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2023-01-10 00:51:13.407739', job_id='191781', GAL2='0.75', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1673340673.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1757' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 00:51:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 191781: <4FGL_J0945.2+5200_daily_bin1757> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1757> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 10 00:35:20 2023
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 00:37:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 00:37:32 2023
Terminated at Tue Jan 10 00:51:14 2023
Results reported at Tue Jan 10 00:51:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1757 146.316 52.0053 694742401 695001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.2+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             313.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            954 sec.

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

