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


Performing analysis on: 4FGL_J0035.9+5950_monthly_bin168
RA = 8.9823, Dec = 59.8334
tmin = 672451201, tmax = 675043201
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='603048', job_status='RUN', time_executed='2022-05-24 01:22:01.355874', time_epoch_executed='1653380521.36' WHERE source_name='4FGL J0035.9+5950' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603048

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603048/ft1_4FGL_J0035.9+5950_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603048/ft1_4FGL_J0035.9+5950_monthly_bin168.fits outfile=/scratch/kocevski/603048/ft1_filteredMKT_4FGL_J0035.9+5950_monthly_bin168.fits ra=8.9823 dec=59.8334 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.97
user 28.11
sys 0.76

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.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/603048/ft1_filteredMKT_4FGL_J0035.9+5950_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.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.89
user 0.69
sys 0.19

Number of photons that the gtmktime cut: 34544

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/603048/ltcube_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.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/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits
.....................!
real 126.33
user 124.91
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/603048/ltcube_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.fits outfile=/scratch/kocevski/603048/expmap_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.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/603048/ltcube_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.fits
.....................!
real 193.07
user 187.54
sys 4.99

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 197 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 J0035.9+5950 @ 8.9823 59.8334

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.fits scfile=/scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits outfile=/scratch/kocevski/603048/cmap_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.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=8.9823 yref=59.8334 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.88
user 0.67
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.fits scfile=/scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits outfile=/scratch/kocevski/603048/cmap_HighResolution_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.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=8.9823 yref=59.8334 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.87
user 0.69
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603048/Model_4FGL_J0035.9+5950_monthly_bin168.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 CTB 109
adding source EG_v02
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.fits.....................!
real 4416.60
user 4404.53
sys 2.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.fits', '/scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits', expMap='/scratch/kocevski/603048/expmap_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.fits', expCube='/scratch/kocevski/603048/ltcube_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603048/Model_4FGL_J0035.9+5950_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0035.9+5950'

4FGL J0035.9+5950
   Spectrum: LogParabola
97          norm:  3.538e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
98         alpha:  1.662e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
99          beta:  5.188e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
100           Eb:  3.201e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/603048/ft1_filtered_4FGL_J0035.9+5950_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/603048/ft2_4FGL_J0035.9+5950_monthly_bin168.fits
Exposure map: /scratch/kocevski/603048/expmap_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.fits
Exposure cube: /scratch/kocevski/603048/ltcube_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603048/Model_4FGL_J0035.9+5950_monthly_bin168.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) = 321597.790557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3100       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4257       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9520       1.0000         .10000E-03   10000.    
     5 'norm      '    6.2089       1.0000         .10000E-03   10000.    
     6 'norm      '    12.843       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3755       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80632       1.0000         .10000E-03   10000.    
    10 'norm      '    .23636       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1539       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0562       1.0000         .10000E-03   10000.    
    14 'norm      '    7.5362       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2275       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   321597.0     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     1316 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3097        .46528         .0000        .85016E-02
   2  Prefactor     .10000E-03    6.6301         .0000    ** at limit **
   3  norm          1.4231        .90083         .0000       -.46016E-02
   4  norm          2.9594        3.0970         .0000        .17920E-01
   5  norm          6.2074        1.7819         .0000        .34923E-02
   6  norm          12.832        8.6152         .0000        .41709E-02
   7  norm          4.3761        2.5381         .0000        .55438E-01
   8  norm          1.0312        .75765         .0000        .99153E-02
   9  Prefactor     .80537        1.1949         .0000        .15252E-01
  10  norm          .23800        .36943         .0000        .42036E-01
  11  Prefactor     2.4874        1.1715         .0000        .14854    
  12  Prefactor     7.1583        4.9866         .0000       -.65392E-02
  13  Prefactor     1.0562        .26670         .0000        .30742E-01
  14  norm          7.5402        2.7678         .0000        .18197E-02
  15  Normalizat    1.2275        .87369E-01     .0000        .72804E-03
  16  Prefactor     .96925        .89926E-02     .0000       -.46740E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30972
  Prefactor  = 0.0001
  norm       = 1.42314
  norm       = 2.95938
  norm       = 6.20744
  norm       = 12.8323
  norm       = 4.37615
  norm       = 1.03124
  Prefactor  = 0.805375
  norm       = 0.237998
  Prefactor  = 2.48744
  Prefactor  = 7.15827
  Prefactor  = 1.05616
  norm       = 7.54018
  Normalizat = 1.22745
  Prefactor  = 0.969248
 **********
 **   18 **HESSE 
 **********

 FCN=   321597.0     FROM HESSE     STATUS=OK           215 CALLS     1531 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3097        .46186        .22397E-03   -1.5479    
   2  Prefactor     .10000E-03    6.7269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4231        .91014        .36205E-03   -1.5469    
   4  norm          2.9594        3.0931        .11818E-02   -1.5364    
   5  norm          6.2074        1.7778        .16111E-03   -1.5210    
   6  norm          12.832        8.6142        .11177E-03   -1.4991    
   7  norm          4.3761        2.5188        .96274E-03   -1.5290    
   8  norm          1.0312        .75375        .41138E-03   -1.5505    
   9  Prefactor     .80537        2.1045        .72218E-02   -1.5528    
  10  norm          .23800        .58775        .41820E-02   -1.5610    
  11  Prefactor     2.4874        1.1699        .12959E-02   -1.5393    
  12  Prefactor     7.1583        4.9827        .14997E-03   -1.5173    
  13  Prefactor     1.0562        .26153        .14261E-03   -1.5502    
  14  norm          7.5402        2.7664        .14609E-03   -1.5159    
  15  Normalizat    1.2275        .86109E-01    .97988E-03   -.85759    
  16  Prefactor     .96925        .90087E-02    .11366E-03   -.93762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17566e-06
Minuit parameter uncertainties:
  1  0.461861
  2  0.000102425
  3  0.910152
  4  3.09323
  5  1.77784
  6  8.61507
  7  2.51889
  8  0.753759
  9  2.10473
  10  0.587769
  11  1.16989
  12  4.98298
  13  0.261535
  14  2.76649
  15  0.0861187
  16  0.00900872
Done.

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

Extracting fit parameters...

4FGL J0035.9+5950
   Spectrum: LogParabola
97          norm:  1.423e+00  9.102e-01  1.000e-04  1.000e+04 ( 1.000e-13)
98         alpha:  1.662e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
99          beta:  5.188e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
100           Eb:  3.201e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.692e-01  9.009e-03  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.227e+00  8.612e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.36
Ra Dec: 8.982 59.833
Photon Index (Fixed Index): 1.66 +/- 0.00
Photon Flux (Fixed Index): 5.07e-09 +/- 3.24e-09
Energy Flux (Fixed Index): 1.00e-05 +/- 6.40e-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) = 321596.881386
delta logL = 0.145353684842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 321596.862946
delta logL = 0.16379381431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2296       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3580       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   321596.9     FROM MIGRAD    STATUS=FAILED       104 CALLS      299 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2295        .87326        .39674E-03    .50800E-03
   2  alpha         1.3579        .48114        .96133E-01   -.47409E-02
   3  Normalizat    1.2279        .84103E-01    .97973E-03   -.20051E-03
   4  Prefactor     .96935        .89282E-02    .11366E-03    .46091E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   321596.9     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      372 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2295        .87326        .36459E-04   -1.5486    
   2  alpha         1.3579        .48114        .87735E-03   -.47442    
   3  Normalizat    1.2279        .84103E-01    .95366E-04   -.85744    
   4  Prefactor     .96935        .89282E-02    .12505E-04   -.93758    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   321596.9     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      403 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2295        .93196        .15870E-04    .52267E-03
   2  alpha         1.3579        .51558        .19227E-01   -.18679E-03
   3  Normalizat    1.2279        .84098E-01    .39189E-04   -.20423E-03
   4  Prefactor     .96935        .89280E-02    .45464E-05    .48012E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2295
  alpha      = 1.35794
  Normalizat = 1.22792
  Prefactor  = 0.969355
 **********
 **   18 **HESSE 
 **********

 FCN=   321596.9     FROM HESSE     STATUS=OK            25 CALLS      428 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2295        .94855        .31739E-05   -1.5486    
   2  alpha         1.3579        .52466        .38453E-02   -.47442    
   3  Normalizat    1.2279        .84072E-01    .78379E-05   -.85744    
   4  Prefactor     .96935        .89254E-02    .90927E-06   -.93758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38183e-11
Minuit parameter uncertainties:
  1  0.948566
  2  0.529649
  3  0.0840813
  4  0.00892539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603048': 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) = 321596.862946
delta logL = 0.163793827815

Extracting fit parameters...

4FGL J0035.9+5950
   Spectrum: LogParabola
97          norm:  1.230e+00  9.486e-01  1.000e-04  1.000e+04 ( 1.000e-13)
98         alpha:  1.358e+00  5.296e-01  0.000e+00  5.000e+00 ( 1.000e+00)
99          beta:  5.188e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
100           Eb:  3.201e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  9.694e-01  8.925e-03  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.228e+00  8.408e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.68
Ra Dec: 8.982 59.833
Photon Index (Free Index): 1.36 +/- 0.53
Photon Flux (Free Index): 2.78e-09 +/- 3.33e-09
Energy Flux (Free Index): 1.34e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/603048/cmap_HighResolution_672451201_675043201_4FGL_J0035.9+5950_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.07e-09', energy_flux2='1.34e-05', photon_flux_error='3.24e-09', dlogl='1.64e-01', energy_flux='1.00e-05', photon_flux2='2.78e-09', job_status='DONE', time_completed='2022-05-24 05:39:00.192750', photon_index_error2='0.53', photon_index2='1.36', ts='12.36', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.23', time_epoch_completed='1653395940.19', return_code='0', job_id='603048', GAL2='0.97', EG2='1.23', return_code2='0', energy_flux_error='6.40e-06', photon_flux_error2='3.33e-09', ts2='12.68', photon_index='1.66' WHERE bin_id='168' AND source_name='4FGL J0035.9+5950' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 05:39:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 603048: <4FGL_J0035.9+5950_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0035.9+5950_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 01:18:49 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 01:20:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 01:20:20 2022
Terminated at Tue May 24 05:39:03 2022
Results reported at Tue May 24 05:39:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0035.9+5950_monthly_bin168 8.9823 59.8334 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0035.9+5950 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15337.00 sec.
    Max Memory :                                 935 MB
    Average Memory :                             803.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15522 sec.
    Turnaround time :                            15614 sec.

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

