/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 56 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0753.9+0923_daily_bin22
RA = 118.491, Dec = 9.3904
tmin = 245030401, tmax = 245289601
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='989312', job_status='RUN', time_executed='2021-08-28 18:37:46.874766', time_epoch_executed='1630201066.87' WHERE source_name='4FGL J0753.9+0923' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989312/ft1_4FGL_J0753.9+0923_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989312/ft1_4FGL_J0753.9+0923_daily_bin22.fits outfile=/scratch/kocevski/989312/ft1_filteredMKT_4FGL_J0753.9+0923_daily_bin22.fits ra=118.491 dec=9.3904 rad=12.0 tmin=245030401.0 tmax=245289601.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 5.62
user 1.26
sys 4.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.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/989312/ft1_filteredMKT_4FGL_J0753.9+0923_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.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 4.60
user 0.34
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/989312/ltcube_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.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/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits
.....................!
real 18.33
user 13.34
sys 4.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/989312/ltcube_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.fits outfile=/scratch/kocevski/989312/expmap_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.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/989312/ltcube_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.fits
.....................!
real 199.37
user 186.46
sys 10.71

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 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.
Added 166 point sources and 2 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 J0753.9+0923 @ 118.491 9.3904

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.fits scfile=/scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits outfile=/scratch/kocevski/989312/cmap_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.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.491 yref=9.3904 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 4.66
user 0.39
sys 4.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.fits scfile=/scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits outfile=/scratch/kocevski/989312/cmap_HighResolution_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.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.491 yref=9.3904 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 4.61
user 0.39
sys 4.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/989312/Model_4FGL_J0753.9+0923_daily_bin22.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 Monoceros
adding source Rosette
Working on...
/scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.fits.....................!
real 99.60
user 91.41
sys 6.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.fits', '/scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits', expMap='/scratch/kocevski/989312/expmap_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.fits', expCube='/scratch/kocevski/989312/ltcube_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/989312/Model_4FGL_J0753.9+0923_daily_bin22.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0753.9+0923'

4FGL J0753.9+0923
   Spectrum: LogParabola
259         norm:  2.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        alpha:  2.464e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
261         beta:  3.240e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/989312/ft1_filtered_4FGL_J0753.9+0923_daily_bin22.fits
Spacecraft file(s): /scratch/kocevski/989312/ft2_4FGL_J0753.9+0923_daily_bin22.fits
Exposure map: /scratch/kocevski/989312/expmap_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.fits
Exposure cube: /scratch/kocevski/989312/ltcube_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/989312/Model_4FGL_J0753.9+0923_daily_bin22.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) = 7051.6807097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.114       1.0000         .10000E-03   10000.    
     2 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1457       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8265       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4483       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .92337       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .93743E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.506       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2915       1.0000         .10000E-03   10000.    
    18 'norm      '    17.703       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9876       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .29659       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1384       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7051.674     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2735 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.059        37.594        .60830E-04   -.56740E-05
   2  norm          .10000E-03    .62311       -.35169E-07** at limit **
   3  norm          .10000E-03    .46103        .29129E-07** at limit **
   4  Prefactor     .10000E-03    41.809        .75713E-06** at limit **
   5  Prefactor     9.1528        24.859       -.11475E-04   -.26666E-04
   6  norm          3.8255        1.7550        .71129E-07    .29982E-04
   7  norm          1.4491        1.7027        .17097E-06   -.79051E-03
   8  Prefactor     .10000E-03    6.5144        .39106E-07** at limit **
   9  Prefactor     .10000E-03    19.943       -.16321E-06** at limit **
  10  Prefactor     .10000E-03    16.174        .14396E-06** at limit **
  11  Prefactor     .92262        3.1555       -.18892E-05   -.15068E-02
  12  norm          .10000E-03    6.0303       -.12800E-06** at limit **
  13  Prefactor     5.4693        10.765        .44137E-05   -.42415E-04
  14  Prefactor     .10000E-03    72.963       -.29533E-05** at limit **
  15  norm          .10000E-03    554.77       -.14276E-03** at limit **
  16  Prefactor     10.490        33.909        .17646E-04    .46296E-05
  17  norm          6.2924        6.8690        .50965E-06   -.90712E-04
  18  norm          17.702        25.308       -.26765E-05   -.26308E-04
  19  norm          4.9882        4.0378       -.34619E-06   -.33284E-03
  20  Prefactor     .10000E-03    9.5106       -.27895E-07** at limit **
  21  Prefactor     .10000E-03    2.4797       -.19112E-07** at limit **
  22  norm          .29614        .92360       -.39241E-06   -.10994E-02
  23  Normalizat    1.1387        .19554        .14894E-05    .72483E-04
  24  Prefactor     .96265        .11663       -.24959E-05    .52454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0589
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.15279
  norm       = 3.82546
  norm       = 1.44915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.922621
  norm       = 0.0001
  Prefactor  = 5.46933
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 10.4903
  norm       = 6.29238
  norm       = 17.7017
  norm       = 4.98818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.29614
  Normalizat = 1.1387
  Prefactor  = 0.962649
 **********
 **   18 **HESSE 
 **********

 FCN=   7051.674     FROM HESSE     STATUS=OK           401 CALLS     3136 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.059        37.374        .12017E-03   -1.5043    
   2  norm          .10000E-03    .99180        .12817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .47736        .11120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1528        24.847        .13253E-03   -1.5103    
   6  norm          3.8255        1.7519        .72564E-04   -1.5317    
   7  norm          1.4491        1.6807        .11183E-03   -1.5467    
   8  Prefactor     .10000E-03    6.5488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .92262        3.1915        .25074E-03   -1.5516    
  12  norm          .10000E-03    6.0349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4693        10.702        .17174E-03   -1.5240    
  14  Prefactor     .10000E-03    72.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    555.89        .18194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.490        33.735        .12361E-03   -1.5060    
  17  norm          6.2924        6.8630        .16003E-03   -1.5206    
  18  norm          17.702        25.168        .95192E-04   -1.4866    
  19  norm          4.9882        4.0317        .14532E-03   -1.5261    
  20  Prefactor     .10000E-03    9.5139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4803        .12914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .29614        1.1555        .13229E-02   -1.5599    
  23  Normalizat    1.1387        .22367        .28699E-03   -.88519    
  24  Prefactor     .96265        .13467        .19518E-03   -.93985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.503e-09
Minuit parameter uncertainties:
  1  37.4532
  2  2.10304e-06
  3  2.32287e-06
  4  0.000102692
  5  24.8751
  6  1.75191
  7  1.68078
  8  1.11823e-05
  9  1.08047e-05
  10  1.28663e-05
  11  3.19209
  12  2.91946e-05
  13  10.7058
  14  6.72605e-05
  15  0.00318761
  16  33.7965
  17  6.86387
  18  25.1828
  19  4.03194
  20  1.08165e-05
  21  5.5562e-08
  22  1.15563
  23  0.223856
  24  0.134712
Done.

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

Extracting fit parameters...

4FGL J0753.9+0923
   Spectrum: LogParabola
259         norm:  1.000e-04  2.919e-05  1.000e-04  1.000e+04 ( 1.000e-13)
260        alpha:  2.464e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
261         beta:  3.240e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.626e-01  1.347e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.139e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 118.491 9.390
Photon Flux Upper Limit: 3.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/989312/likelihoodResults_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.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) = 7051.6748486
delta logL = -0.000788112295595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7051.67406039
delta logL = 9.62609192356e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4458       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96264       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+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=   7051.674     FROM MIGRAD    STATUS=FAILED        97 CALLS      246 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    266.98        .18142E-01** at limit **
   2  alpha         1.6708        3.2286        .16466        .17123E-06
   3  Normalizat    1.1387        .29386E-01    .28699E-03    .45436E-04
   4  Prefactor     .96265        .18653E-01    .19518E-03    .96283E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7051.674     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      426 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    266.98        .43559E-03** at limit **
   2  alpha         1.6708        3.2286        .39327E-05    .17123E-06
   3  Normalizat    1.1387        .29386E-01    .34700E-07    .45436E-04
   4  Prefactor     .96265        .18653E-01    .13346E-07    .96283E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7051.674     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      454 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3102        .23447E-02** at limit **
   2  alpha         1.6655        2.5105        .65862E-02    .97354E-07
   3  Normalizat    1.1387        .20341        .11480E-04    .44961E-04
   4  Prefactor     .96265        .12917        .39036E-04    .95584E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.66547
  Normalizat = 1.13871
  Prefactor  = 0.962647
 **********
 **   18 **HESSE 
 **********

 FCN=   7051.674     FROM HESSE     STATUS=OK            23 CALLS      477 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1906        .46894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6655        3.1102        .13172E-02   -.34035    
   3  Normalizat    1.1387        .20342        .22959E-05   -.88519    
   4  Prefactor     .96265        .12918        .78071E-05   -.93985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66732e-10
Minuit parameter uncertainties:
  1  0.000274901
  2  413.427
  3  0.203565
  4  0.12922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989312': 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) = 7051.67405831
delta logL = 2.17918477574e-06

Extracting fit parameters...

4FGL J0753.9+0923
   Spectrum: LogParabola
259         norm:  1.000e-04  2.749e-04  1.000e-04  1.000e+04 ( 1.000e-13)
260        alpha:  1.665e+00  4.134e+02  0.000e+00  5.000e+00 ( 1.000e+00)
261         beta:  3.240e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.626e-01  1.292e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.139e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 118.491 9.390

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/989312/cmap_HighResolution_245030401_245289601_4FGL_J0753.9+0923_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-05', job_status='DONE', photon_flux_upper_limit='3.74e-08', time_completed='2021-08-28 18:51:33.499145', job_id='989312', GAL2='0.96', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630201893.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='22' AND source_name='4FGL J0753.9+0923' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 18:51:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 989312: <4FGL_J0753.9+0923_daily_bin22> in cluster <slac> Done

Job <4FGL_J0753.9+0923_daily_bin22> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 28 18:35:32 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:35:33 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:35:33 2021
Terminated at Sat Aug 28 18:51:34 2021
Results reported at Sat Aug 28 18:51:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0753.9+0923_daily_bin22 118.491 9.3904 245030401 245289601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0753.9+0923 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   880.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            962 sec.

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

