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


Performing analysis on: 4FGL_J0535.3+0934_monthly_bin169
RA = 83.8408, Dec = 9.5824
tmin = 675043201, tmax = 677635201
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='162619', job_status='RUN', time_executed='2022-06-23 01:57:32.428658', time_epoch_executed='1655974652.43' WHERE source_name='4FGL J0535.3+0934' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162619

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162619/ft1_4FGL_J0535.3+0934_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162619/ft1_4FGL_J0535.3+0934_monthly_bin169.fits outfile=/scratch/kocevski/162619/ft1_filteredMKT_4FGL_J0535.3+0934_monthly_bin169.fits ra=83.8408 dec=9.5824 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.88
user 27.03
sys 0.70

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.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/162619/ft1_filteredMKT_4FGL_J0535.3+0934_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.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.87
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 9606

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/162619/ltcube_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.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/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits
.....................!
real 148.89
user 145.07
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/162619/ltcube_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.fits outfile=/scratch/kocevski/162619/expmap_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.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/162619/ltcube_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.fits
.....................!
real 193.31
user 187.67
sys 4.96

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 IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 166 point sources and 4 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 J0535.3+0934 @ 83.8408 9.5824

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.fits scfile=/scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits outfile=/scratch/kocevski/162619/cmap_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.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=83.8408 yref=9.5824 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.90
user 0.64
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.fits scfile=/scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits outfile=/scratch/kocevski/162619/cmap_HighResolution_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.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=83.8408 yref=9.5824 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.82
user 0.64
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/162619/Model_4FGL_J0535.3+0934_monthly_bin169.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.fits.....................!
real 2463.84
user 2446.33
sys 3.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.fits', '/scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits', expMap='/scratch/kocevski/162619/expmap_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.fits', expCube='/scratch/kocevski/162619/ltcube_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/162619/Model_4FGL_J0535.3+0934_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0535.3+0934'

4FGL J0535.3+0934
   Spectrum: PowerLaw
257    Prefactor:  3.878e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.624e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.059e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/162619/ft1_filtered_4FGL_J0535.3+0934_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/162619/ft2_4FGL_J0535.3+0934_monthly_bin169.fits
Exposure map: /scratch/kocevski/162619/expmap_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.fits
Exposure cube: /scratch/kocevski/162619/ltcube_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/162619/Model_4FGL_J0535.3+0934_monthly_bin169.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) = 99927.1041266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1688       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27212E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.062       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8350       1.0000         .10000E-03   10000.    
     5 'norm      '    .35664       1.0000         .10000E-03   10000.    
     6 'norm      '    11.199       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6867       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14342E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33625       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1392       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4153       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .68068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9112       1.0000         .10000E-03   10000.    
    19 'norm      '    .20293E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9331       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2213       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   99927.01     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2511 TOTAL
                     EDM=   .22E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1687        1.2310         .0000        .57667E-02
   2  Prefactor     .10001E-03    3.0227         .0000    ** at limit **
   3  Prefactor     13.047        9.8794         .0000       -.11681E-02
   4  Prefactor     4.8363        3.6889         .0000        .14305E-02
   5  norm          .35678        .24116         .0000        .14740E-01
   6  norm          11.199        2.0695         .0000        .13663E-01
   7  Prefactor     .10000E-03    .55415         .0000    ** at limit **
   8  norm          2.6871        1.7803         .0000        .31993E-02
   9  Prefactor     .10000E-03    .37371         .0000    ** at limit **
  10  Prefactor     30.280        22.980         .0000       -.43913E-02
  11  Prefactor     .10000E-03    3.4091         .0000    ** at limit **
  12  Prefactor     .33680        1.6135         .0000        .24469    
  13  norm          2.1403        3.3242         .0000        .65122E-01
  14  norm          1.4153        .52026         .0000        .81786E-02
  15  Prefactor     .10000E-03    5.5256         .0000    ** at limit **
  16  Prefactor     12.943        12.557         .0000        .54882E-03
  17  Prefactor     .72523        2.7352         .0000        .22062E-02
  18  Prefactor     3.9100        2.7173         .0000        .28845E-02
  19  norm          .10000E-03    9.6075         .0000    ** at limit **
  20  norm          2.9308        2.1635         .0000        .98037E-01
  21  Normalizat    1.2211        .13446         .0000        .35594E-03
  22  Prefactor     .96528        .20432E-01     .0000       -.77972E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.16871
  Prefactor  = 0.000100007
  Prefactor  = 13.047
  Prefactor  = 4.83634
  norm       = 0.356777
  norm       = 11.1986
  Prefactor  = 0.0001
  norm       = 2.6871
  Prefactor  = 0.0001
  Prefactor  = 30.2804
  Prefactor  = 0.0001
  Prefactor  = 0.336805
  norm       = 2.14033
  norm       = 1.4153
  Prefactor  = 0.0001
  Prefactor  = 12.9427
  Prefactor  = 0.725232
  Prefactor  = 3.90999
  norm       = 0.0001
  norm       = 2.93076
  Normalizat = 1.22112
  Prefactor  = 0.965275
 **********
 **   18 **HESSE 
 **********

 FCN=   99927.01     FROM HESSE     STATUS=OK           376 CALLS     2887 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1687        1.2276        .18082E-03   -1.5300    
   2  Prefactor     .10001E-03    3.0027        .16966       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.047        9.7901        .11083E-03   -1.4985    
   4  Prefactor     4.8363        3.6800        .18295E-03   -1.5268    
   5  norm          .35678        .22521        .10828E-03   -1.5589    
   6  norm          11.199        2.0304        .59857E-03   -1.5039    
   7  Prefactor     .10000E-03    .56918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6871        1.7748        .24858E-03   -1.5380    
   9  Prefactor     .10000E-03    .44220        .73663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.280        22.947        .72820E-04   -1.4607    
  11  Prefactor     .10000E-03    3.4298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33680        1.6576        .21166E-02   -1.5592    
  13  norm          2.1403        3.2943        .14091E-02   -1.5415    
  14  norm          1.4153        .51224        .12948E-03   -1.5470    
  15  Prefactor     .10000E-03    5.5362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.943        12.461        .11135E-03   -1.4988    
  17  Prefactor     .72523        2.8172        .16654       -1.5538    
  18  Prefactor     3.9100        2.6828        .20400E-03   -1.5312    
  19  norm          .10000E-03    9.9425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9308        2.1480        .11859E-02   -1.5366    
  21  Normalizat    1.2211        .13674        .74965E-03   -.85953    
  22  Prefactor     .96528        .21384E-01    .13839E-03   -.93896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42441e-08
Minuit parameter uncertainties:
  1  1.22757
  2  0.000285318
  3  9.79134
  4  3.68015
  5  0.225207
  6  2.03036
  7  3.05904e-07
  8  1.77481
  9  3.22294e-06
  10  22.954
  11  5.63569e-06
  12  1.49422
  13  3.29454
  14  0.512237
  15  1.48133e-05
  16  12.4636
  17  2.81775
  18  2.68292
  19  2.83349e-06
  20  2.1481
  21  0.136781
  22  0.0213844
Done.

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

Extracting fit parameters...

4FGL J0535.3+0934
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.481e-05  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.624e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.059e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.653e-01  2.138e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.221e+00  1.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.841 9.582
Photon Flux Upper Limit: 5.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162619/likelihoodResults_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.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) = 99927.0090558
delta logL = -0.000861350330524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 99927.0081944
delta logL = 6.86850398779e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   99927.01     FROM MIGRAD    STATUS=FAILED        92 CALLS      253 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1056.8        .18142E-02** at limit **
   2  Index         2.6504        6.1844        .50000       -.21787E-04
   3  Normalizat    1.2211        .72356E-01    .74965E-03    .31277E-03
   4  Prefactor     .96528        .12173E-01    .13839E-03    .17127E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   99927.01     FROM SIMPLEX   STATUS=UNCHANGED    176 CALLS      429 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1056.8        .34473E-03** at limit **
   2  Index         2.6504        6.1844        .37510E-06   -.21787E-04
   3  Normalizat    1.2211        .72356E-01    .19408E-07    .31277E-03
   4  Prefactor     .96528        .12173E-01    .22943E-08    .17127E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   99927.01     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      463 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3450        .36285E-03** at limit **
   2  Index         2.6506        6.3249        .50000       -.21786E-04
   3  Normalizat    1.2211        .12284        .29986E-04    .30331E-03
   4  Prefactor     .96528        .20692E-01    .55354E-05    .16759E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.65059
  Normalizat = 1.22112
  Prefactor  = 0.965275
 **********
 **   18 **HESSE 
 **********

 FCN=   99927.01     FROM HESSE     STATUS=OK            29 CALLS      492 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6343        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6506        6.3175        .50000       -.48916    
   3  Normalizat    1.2211        .12289        .59972E-05   -.85953    
   4  Prefactor     .96528        .20702E-01    .11071E-05   -.93896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46195e-10
Minuit parameter uncertainties:
  1  0.000244891
  2  4.4245
  3  0.122914
  4  0.0207021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162619': 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) = 99927.0081943
delta logL = 1.32480636239e-07

Extracting fit parameters...

4FGL J0535.3+0934
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.449e-04  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.651e+00  4.425e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.059e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.653e-01  2.070e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.221e+00  1.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.841 9.582

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/162619/cmap_HighResolution_675043201_677635201_4FGL_J0535.3+0934_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2022-06-23 04:17:23.571434', job_id='162619', GAL2='0.97', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1655983043.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='169' AND source_name='4FGL J0535.3+0934' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:17:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 162619: <4FGL_J0535.3+0934_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0535.3+0934_monthly_bin169> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Jun 23 01:25:31 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:56:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:56:41 2022
Terminated at Thu Jun 23 04:17:24 2022
Results reported at Thu Jun 23 04:17:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0535.3+0934_monthly_bin169 83.8408 9.5824 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0535.3+0934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   8338.06 sec.
    Max Memory :                                 808 MB
    Average Memory :                             494.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2961 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   8443 sec.
    Turnaround time :                            10313 sec.

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

