/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 4 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 = 7490
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0752.2+3313_daily_bin131
RA = 118.055, Dec = 33.232
tmin = 273283201, tmax = 273542401
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='978956', job_status='RUN', time_executed='2021-08-28 18:02:33.878125', time_epoch_executed='1630198953.88' WHERE source_name='4FGL J0752.2+3313' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978956/ft1_4FGL_J0752.2+3313_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978956/ft1_4FGL_J0752.2+3313_daily_bin131.fits outfile=/scratch/kocevski/978956/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin131.fits ra=118.055 dec=33.232 rad=12.0 tmin=273283201.0 tmax=273542401.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 8.58
user 1.51
sys 7.01

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.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/978956/ft1_filteredMKT_4FGL_J0752.2+3313_daily_bin131.fits evtable="EVENTS" outfile="/scratch/kocevski/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.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 7.38
user 0.33
sys 7.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/978956/ltcube_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.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/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits
.....................!
real 20.12
user 12.09
sys 7.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/978956/ltcube_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.fits outfile=/scratch/kocevski/978956/expmap_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.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/978956/ltcube_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.fits
.....................!
real 200.89
user 186.56
sys 13.88

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

Setting source of interest to:
4FGL J0752.2+3313 @ 118.055 33.232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.fits scfile=/scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits outfile=/scratch/kocevski/978956/cmap_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.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=118.055 yref=33.232 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 7.23
user 0.38
sys 6.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.fits scfile=/scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits outfile=/scratch/kocevski/978956/cmap_HighResolution_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.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=118.055 yref=33.232 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 7.28
user 0.37
sys 6.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/978956/Model_4FGL_J0752.2+3313_daily_bin131.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/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.fits....................!
real 74.67
user 64.22
sys 10.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.fits', '/scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits', expMap='/scratch/kocevski/978956/expmap_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.fits', expCube='/scratch/kocevski/978956/ltcube_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/978956/Model_4FGL_J0752.2+3313_daily_bin131.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0752.2+3313'

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  9.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/978956/ft1_filtered_4FGL_J0752.2+3313_daily_bin131.fits
Spacecraft file(s): /scratch/kocevski/978956/ft2_4FGL_J0752.2+3313_daily_bin131.fits
Exposure map: /scratch/kocevski/978956/expmap_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.fits
Exposure cube: /scratch/kocevski/978956/ltcube_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/978956/Model_4FGL_J0752.2+3313_daily_bin131.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) = 6248.81113375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0721       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3708       1.0000         .10000E-03   10000.    
     4 'norm      '    .85549       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.794       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.055       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9367       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.977       1.0000         .10000E-03   10000.    
    13 'norm      '    .88234       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46571E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1035       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6248.707     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     1783 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5939        .78034       -.14171E-06    .13445E-02
   2  Prefactor     1.0680        9.7209        .15670E-04   -.57669E-03
   3  Prefactor     6.3699        1.0596        .47404E-06    .45805E-03
   4  norm          .86161        2.4604       -.11452E-05    .64847E-05
   5  Prefactor     32.767        2.3923       -.59194E-07   -.28018E-03
   6  Prefactor     15.040        5.2136        .10101E-04    .49597E-03
   7  Prefactor     .10000E-03    14.461        .54705E-05** at limit **
   8  Prefactor     .10001E-03    31.636       -.16972E-04** at limit **
   9  norm          .10000E-03    7.5812       -.10462E-05** at limit **
  10  Prefactor     7.9370        1.0401        .42654E-06    .15592E-03
  11  Prefactor     5.9775        5.4225        .15214E-04    .25084E-04
  12  Prefactor     58.984        1.1740        .23081E-06   -.11389E-03
  13  norm          .88212        .55868       -.80387E-07   -.30290E-02
  14  Prefactor     .10000E-03    11.282       -.75405E-05** at limit **
  15  Prefactor     .10000E-03    8.9180        .62271E-05** at limit **
  16  Prefactor     .34033        62.306       -.12119E-03    .44899E-04
  17  Prefactor     .10025E-03    291.39       -.50486E-04** at limit **
  18  Prefactor     .10000E-03    2.6849       -.13365E-05** at limit **
  19  Normalizat    1.1036        .22234       -.94216E-05   -.27995E-03
  20  Prefactor     .88397        .15242        .13926E-05   -.19752E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5939
  Prefactor  = 1.068
  Prefactor  = 6.36986
  norm       = 0.861613
  Prefactor  = 32.7665
  Prefactor  = 15.0397
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 7.937
  Prefactor  = 5.97754
  Prefactor  = 58.9839
  norm       = 0.882119
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.340333
  Prefactor  = 0.000100253
  Prefactor  = 0.000100001
  Normalizat = 1.10359
  Prefactor  = 0.883969
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.707     FROM HESSE     STATUS=OK           351 CALLS     2134 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5939        .78495        .83995E-02   -1.5455    
   2  Prefactor     1.0680        9.7181        .11711E-01   -1.5501    
   3  Prefactor     6.3699        12.866        .39755E-02   -1.5203    
   4  norm          .86161        2.7195        .47204E-01   -1.5522    
   5  Prefactor     32.767        35.253        .17493E-02   -1.4562    
   6  Prefactor     15.040        16.257        .25807E-02   -1.4932    
   7  Prefactor     .10000E-03    14.397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    31.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.4969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9370        7.7938        .35581E-02   -1.5144    
  11  Prefactor     5.9775        5.5315        .41049E-02   -1.5219    
  12  Prefactor     58.984        33.251        .13060E-02   -1.4170    
  13  norm          .88212        .56329        .99806E-02   -1.5520    
  14  Prefactor     .10000E-03    11.279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .34033        7.8184        .10495       -1.5591    
  17  Prefactor     .10025E-03    9.7830        .13922       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6279        .36194E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1036        .19751        .60131E-01   -.89637    
  20  Prefactor     .88397        .12929        .44801E-01   -.96704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79942e-06
Minuit parameter uncertainties:
  1  0.78495
  2  6.44438
  3  12.8717
  4  2.71994
  5  35.2752
  6  16.2617
  7  6.99821e-05
  8  0.00130067
  9  0.000122367
  10  7.79476
  11  5.53196
  12  33.2614
  13  0.563295
  14  0.000243358
  15  0.000242361
  16  3.26242
  17  0.00314691
  18  6.02388e-05
  19  0.197638
  20  0.12933
Done.

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

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  1.224e-04  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  8.840e-01  1.293e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.104e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 118.055 33.232
Photon Flux Upper Limit: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978956/likelihoodResults_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.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) = 6248.70726069
delta logL = -0.000628840623904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6248.70663195
delta logL = -1.03921593109e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3015       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+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=   6248.707     FROM MIGRAD    STATUS=FAILED        93 CALLS      235 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1367.8        .18142E-02** at limit **
   2  alpha         2.1373        3.9311        .16527        .55445E-07
   3  Normalizat    1.1036        .94904E-01    .26594E-03   -.15475E-04
   4  Prefactor     .88397        .66683E-01    .20518E-03   -.17342E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6248.707     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      413 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1367.8        .51167E-03** at limit **
   2  alpha         2.1373        3.9311        .42274E-06    .55445E-07
   3  Normalizat    1.1036        .94904E-01    .35226E-07   -.15475E-04
   4  Prefactor     .88397        .66683E-01    .47589E-08   -.17342E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6248.707     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      441 TOTAL
                     EDM=   .60E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7892        .36285E-03** at limit **
   2  alpha         2.1353        3.7693        .66107E-02   -.30955E-08
   3  Normalizat    1.1036        .21625        .10638E-04   -.16031E-04
   4  Prefactor     .88397        .15198        .82074E-05   -.18007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.13526
  Normalizat = 1.10359
  Prefactor  = 0.883968
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.707     FROM HESSE     STATUS=OK            23 CALLS      464 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7877        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1353        3.7846        .13221E-02   -.14642    
   3  Normalizat    1.1036        .21590        .21275E-05   -.89637    
   4  Prefactor     .88397        .15172        .16415E-05   -.96704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36213e-13
Minuit parameter uncertainties:
  1  6.4258e-06
  2  289.796
  3  0.216069
  4  0.15179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978956': 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) = 6248.70663168
delta logL = 1.7441016098e-07

Extracting fit parameters...

4FGL J0752.2+3313
   Spectrum: LogParabola
290         norm:  1.000e-04  6.426e-06  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.135e+00  2.898e+02  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.191e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  5.149e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  8.840e-01  1.518e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.104e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 118.055 33.232

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/978956/cmap_HighResolution_273283201_273542401_4FGL_J0752.2+3313_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-05', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-08-28 18:14:46.087415', job_id='978956', GAL2='0.88', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630199686.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='131' AND source_name='4FGL J0752.2+3313' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:14:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 978956: <4FGL_J0752.2+3313_daily_bin131> in cluster <slac> Done

Job <4FGL_J0752.2+3313_daily_bin131> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 18:00:30 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:00:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 18:00:31 2021
Terminated at Sat Aug 28 18:14:47 2021
Results reported at Sat Aug 28 18:14:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0752.2+3313_daily_bin131 118.055 33.232 273283201 273542401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0752.2+3313 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

