/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 230 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 = 7411
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0712.7+5033_daily_bin1240
RA = 108.188, Dec = 50.5506
tmin = 560736001, tmax = 560995201
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='177953', job_status='RUN', time_executed='2021-08-26 21:49:24.780138', time_epoch_executed='1630039764.78' WHERE source_name='4FGL J0712.7+5033' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/177953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/177953/ft1_4FGL_J0712.7+5033_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/177953/ft1_4FGL_J0712.7+5033_daily_bin1240.fits outfile=/scratch/kocevski/177953/ft1_filteredMKT_4FGL_J0712.7+5033_daily_bin1240.fits ra=108.188 dec=50.5506 rad=12.0 tmin=560736001.0 tmax=560995201.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 4.07
user 3.54
sys 0.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.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/177953/ft1_filteredMKT_4FGL_J0712.7+5033_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.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.78
user 0.33
sys 0.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/177953/ltcube_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.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/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits
.....................!
real 12.46
user 11.78
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/177953/ltcube_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.fits outfile=/scratch/kocevski/177953/expmap_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.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/177953/ltcube_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.fits
.....................!
real 193.81
user 188.80
sys 4.65

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

Setting source of interest to:
4FGL J0712.7+5033 @ 108.188 50.5506

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.fits scfile=/scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits outfile=/scratch/kocevski/177953/cmap_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.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=108.188 yref=50.5506 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.81
user 0.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.fits scfile=/scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits outfile=/scratch/kocevski/177953/cmap_HighResolution_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.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=108.188 yref=50.5506 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.81
user 0.38
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/177953/Model_4FGL_J0712.7+5033_daily_bin1240.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/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.fits..................................!
real 18.31
user 16.65
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.fits', '/scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits', expMap='/scratch/kocevski/177953/expmap_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.fits', expCube='/scratch/kocevski/177953/ltcube_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/177953/Model_4FGL_J0712.7+5033_daily_bin1240.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0712.7+5033'

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  9.082e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.201e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/177953/ft1_filtered_4FGL_J0712.7+5033_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/177953/ft2_4FGL_J0712.7+5033_daily_bin1240.fits
Exposure map: /scratch/kocevski/177953/expmap_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.fits
Exposure cube: /scratch/kocevski/177953/ltcube_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/177953/Model_4FGL_J0712.7+5033_daily_bin1240.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 427.488291831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 422.107818329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0499       1.0000         .10000E-03   10000.    
     2 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3655       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5805       1.0000         .10000E-03   10000.    
     7 'norm      '    .33380E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .81667E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    280.95       1.0000         .10000E-03   10000.    
    10 'norm      '    .29447E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3504       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13329E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0890       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7677       1.0000         .10000E-03   10000.    
    15 'norm      '    25.816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5212       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.8619       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0164       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    469.55       1.0000         .10000E-03   10000.    
    21 'norm      '    576.91       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .57190E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1516       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0004       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0909       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0440       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.4983       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.1668       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .35143       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   422.0969     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      438 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83198E-02    1364.5        .35328E-02   -.31666E-02
   2  norm          .10000E-03    6.6353        .90712E-02** at limit **
   3  Prefactor     4.7116        1.0057         .0000         .0000    
   4  Prefactor     40.873        1.0002       -.53086E-06   -.94582E-04
   5  Prefactor     3.3655        1.0115         .0000         .0000    
   6  Prefactor     4.5805        1.0061         .0000         .0000    
   7  norm          .10000E-03    .24279        .34548E-05** at limit **
   8  norm          .10000E-03    .21255        .26738E-05** at limit **
   9  Prefactor     282.02        1.0018       -.22126E-06   -.68941E-02
  10  norm          .10000E-03    .21019        .71498E-06** at limit **
  11  Prefactor     2.3504        1.0246         .0000         .0000    
  12  Prefactor     .10000E-03    .20571       -.91320E-07** at limit **
  13  Prefactor     .10017E-03    .41364E-01   -.12181E-05** at limit **
  14  Prefactor     5.7677        1.0038         .0000         .0000    
  15  norm          26.599        1.0152       -.25785E-07    .29372E-04
  16  Prefactor     3.5212        1.0104         .0000         .0000    
  17  Prefactor     .32609        .19219       -.65188E-04    .32005E-02
  18  norm          1.0164        1.3026         .0000         .0000    
  19  Prefactor     .46418        .60481       -.46145E-04   -.16789E-02
  20  Prefactor     459.74        .99001       -.58482E-05   -.38830E-01
  21  norm          582.44        1.0045        .33230E-05   -.36122E-01
  22  Prefactor     .10524E-03    .27797       -.85133E-04** at limit **
  23  Prefactor     .13465E-01    .43351E-01   -.43514E-05    .36505E-02
  24  Prefactor     3.0004        1.0146         .0000         .0000    
  25  norm          2.0909        1.0319         .0000         .0000    
  26  norm          2.0440        1.0336         .0000         .0000    
  27  Prefactor     5.4983        1.0042         .0000         .0000    
  28  Prefactor     3.1668        1.0130         .0000         .0000    
  29  Normalizat    .35137        .66338        .25785E-05   -.50816E-05
  30  Prefactor     .91175        1.2566       -.16501E-05   -.29519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00831982
  norm       = 0.0001
  Prefactor  = 4.7116
  Prefactor  = 40.8734
  Prefactor  = 3.36551
  Prefactor  = 4.58054
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 282.018
  norm       = 0.0001
  Prefactor  = 2.35041
  Prefactor  = 0.0001
  Prefactor  = 0.000100168
  Prefactor  = 5.76768
  norm       = 26.599
  Prefactor  = 3.52117
  Prefactor  = 0.326094
  norm       = 1.01645
  Prefactor  = 0.464182
  Prefactor  = 459.74
  norm       = 582.442
  Prefactor  = 0.000105236
  Prefactor  = 0.0134646
  Prefactor  = 3.00044
  norm       = 2.09087
  norm       = 2.04405
  Prefactor  = 5.49826
  Prefactor  = 3.16678
  Normalizat = 0.351365
  Prefactor  = 0.911745
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   422.0969     FROM HESSE     STATUS=FAILED        15 CALLS      453 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83198E-02    1364.5        .35328E-02   -1.5726    
   2  norm          .10000E-03    6.6353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     534.45        529.69         .0000       -1.5274    
   4  Prefactor     40.873        1.0002       -.53086E-06   -1.4428    
   5  Prefactor     3.3655        1.0115         .0000       -1.5341    
   6  Prefactor     4.5805        1.0061         .0000       -1.5280    
   7  norm          .10000E-03    .24279        .34548E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .21255        .26738E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     282.02        1.0018       -.22126E-06   -1.2333    
  10  norm          .10000E-03    .21019        .71498E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3504        1.0246         .0000       -1.5401    
  12  Prefactor     .10000E-03    .20571       -.91320E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10017E-03    .41364E-01   -.12181E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7677        1.0038         .0000       -1.5228    
  15  norm          26.599        1.0152       -.25785E-07   -1.4676    
  16  Prefactor     3.5212        1.0104         .0000       -1.5333    
  17  Prefactor     .32609        .19219       -.65188E-04   -1.5594    
  18  norm          1.0164        1.3026         .0000       -1.5506    
  19  Prefactor     .46418        .60481       -.46145E-04   -1.5844    
  20  Prefactor     459.74        .99001       -.58482E-05   -1.1386    
  21  norm          582.44        1.0045        .33230E-05   -1.0833    
  22  Prefactor     .10524E-03    .27797       -.85133E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .13465E-01    .43351E-01   -.43514E-05   -1.5685    
  24  Prefactor     3.0004        1.0146         .0000       -1.5362    
  25  norm          2.0909        1.0319         .0000       -1.5419    
  26  norm          2.0440        1.0336         .0000       -1.5422    
  27  Prefactor     5.4983        1.0042         .0000       -1.5239    
  28  Prefactor     3.1668        1.0130         .0000       -1.5352    
  29  Normalizat    .35137        .66338        .25785E-05   -1.1990    
  30  Prefactor     .91175        1.2566       -.16501E-05   -.95732    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.24365e-10
Minuit parameter uncertainties:
  1  6.86063
  2  1.32688e-07
  3  1.00574
  4  1.00023
  5  1.01148
  6  1.00608
  7  5.41038e-06
  8  5.9394e-06
  9  1.00185
  10  4.02156e-07
  11  1.02464
  12  5.48586e-08
  13  0.000166781
  14  1.00381
  15  1.01521
  16  1.01045
  17  0.192187
  18  1.30263
  19  0.604814
  20  0.990006
  21  1.00449
  22  0.00241287
  23  0.0433516
  24  1.01461
  25  1.03191
  26  1.03358
  27  1.00419
  28  1.01304
  29  0.679123
  30  1.30036
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 422.096920401

Extracting fit parameters...

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  1.002e-04  1.668e-04  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.201e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  9.117e-01  1.300e+00  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  3.514e-01  6.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 108.188 50.551
Photon Flux Upper Limit: 7.54e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/177953/likelihoodResults_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.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) = 422.096927664
delta logL = -7.26290340936e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 422.096927661
delta logL = -7.26033147203e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96299E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2007       1.0000          .0000       10.000    
     3 'Normalizat'    .35136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   422.0969     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      198 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1632.1        .90718E-02** at limit **
   2  Index         2.1783        6.1991        .50000        .27531E-06
   3  Normalizat    .35136        .48494E-01    .37419E-01    .55748E-05
   4  Prefactor     .91175        .19440E-01    .45155E-01    .29361E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17835
  Normalizat = 0.351364
  Prefactor  = 0.911746
 **********
 **   18 **HESSE 
 **********

 FCN=   422.0969     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      229 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8168.0        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1783        6.5507        .50000       -.59962    
   3  Normalizat    .35136        .10842        .74508E-03   -1.1990    
   4  Prefactor     .91175        .43464E-01    .18829E-03   -.95732    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.49907e-08
Minuit parameter uncertainties:
  1  0.00380066
  2  4328.5
  3  0.108482
  4  0.043466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/177953': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 422.096920399
delta logL = 1.65221081261e-09

Extracting fit parameters...

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  3.801e-03  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.178e+00  4.329e+03  0.000e+00  1.000e+01 (-1.000e+00)
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  9.117e-01  4.347e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  3.514e-01  1.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 108.188 50.551

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/177953/cmap_HighResolution_560736001_560995201_4FGL_J0712.7+5033_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-01', job_status='DONE', photon_flux_upper_limit='7.54e-06', time_completed='2021-08-26 21:55:07.174468', job_id='177953', GAL2='0.91', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1630040107.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.91', dlogl='1.65e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1240' AND source_name='4FGL J0712.7+5033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 21:55:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 177953: <4FGL_J0712.7+5033_daily_bin1240> in cluster <slac> Done

Job <4FGL_J0712.7+5033_daily_bin1240> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 21:45:20 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 21:45:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 21:45:21 2021
Terminated at Thu Aug 26 21:55:07 2021
Results reported at Thu Aug 26 21:55:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0712.7+5033_daily_bin1240 108.188 50.5506 560736001 560995201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0712.7+5033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   346.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            587 sec.

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

