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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin743
RA = 119.286, Dec = 9.9491
tmin = 431913601, tmax = 432172801
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='24718', job_status='RUN', time_executed='2021-08-28 20:26:04.323123', time_epoch_executed='1630207564.32' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24718/ft1_4FGL_J0757.1+0956_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24718/ft1_4FGL_J0757.1+0956_daily_bin743.fits outfile=/scratch/kocevski/24718/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin743.fits ra=119.286 dec=9.9491 rad=12.0 tmin=431913601.0 tmax=432172801.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.78
user 4.92
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.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/24718/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.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 1.11
user 0.33
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/24718/ltcube_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.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/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits
.....................!
real 12.65
user 11.62
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/24718/ltcube_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.fits outfile=/scratch/kocevski/24718/expmap_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.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/24718/ltcube_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.fits
.....................!
real 191.99
user 185.58
sys 5.95

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 169 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 J0757.1+0956 @ 119.286 9.9491

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.fits scfile=/scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits outfile=/scratch/kocevski/24718/cmap_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.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=119.286 yref=9.9491 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 1.05
user 0.37
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.fits scfile=/scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits outfile=/scratch/kocevski/24718/cmap_HighResolution_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.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=119.286 yref=9.9491 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 1.11
user 0.37
sys 0.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/24718/Model_4FGL_J0757.1+0956_daily_bin743.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/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.fits.....................!
real 89.98
user 87.75
sys 1.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.fits', '/scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits', expMap='/scratch/kocevski/24718/expmap_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.fits', expCube='/scratch/kocevski/24718/ltcube_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/24718/Model_4FGL_J0757.1+0956_daily_bin743.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0757.1+0956'

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  8.647e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/24718/ft1_filtered_4FGL_J0757.1+0956_daily_bin743.fits
Spacecraft file(s): /scratch/kocevski/24718/ft2_4FGL_J0757.1+0956_daily_bin743.fits
Exposure map: /scratch/kocevski/24718/expmap_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.fits
Exposure cube: /scratch/kocevski/24718/ltcube_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/24718/Model_4FGL_J0757.1+0956_daily_bin743.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) = 6793.03298304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62969       1.0000         .10000E-03   10000.    
     2 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6502       1.0000         .10000E-03   10000.    
     5 'norm      '    5.3000       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39546       1.0000         .10000E-03   10000.    
    10 'norm      '    10.488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    90.500       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.586       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3851       1.0000         .10000E-03   10000.    
    16 'norm      '    22.064       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8113       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.864       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83279       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6793.016     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2597 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62696        1.6464        .73568E-06    .17513E-03
   2  norm          .10000E-03    .42740        .49786E-06** at limit **
   3  Prefactor     .10000E-03    30.233        .37912E-06** at limit **
   4  Prefactor     3.6409        36.472        .30123E-06   -.24828E-04
   5  norm          5.2984        2.9392        .18801E-06   -.56635E-03
   6  norm          2.9599        1.6321        .76024E-07   -.33650E-03
   7  Prefactor     7.0637        17.233       -.95049E-06   -.11581E-03
   8  Prefactor     70.352        56.705        .93297E-07   -.63103E-04
   9  Prefactor     .40139        1.7626        .15694E-06   -.31512E-04
  10  norm          10.488        12.278        .17024E-07   -.76536E-04
  11  Prefactor     .10000E-03    4.4184        .78645E-07** at limit **
  12  Prefactor     .10000E-03    82.163       -.15459E-05** at limit **
  13  norm          90.406        126.41        .14515E-04    .29827E-04
  14  Prefactor     22.472        34.626        .61756E-06   -.71993E-04
  15  norm          1.3827        19.687        .51918E-05   -.24906E-04
  16  norm          22.098        21.922       -.58066E-06   -.86037E-04
  17  norm          1.8148        3.9782        .57571E-05   -.56413E-03
  18  Prefactor     .10000E-03    23.706       -.28827E-06** at limit **
  19  Prefactor     .10000E-03    3.8534        .57589E-07** at limit **
  20  norm          .10000E-03    .30872        .18499E-06** at limit **
  21  Prefactor     42.853        41.068        .18608E-05   -.11534E-04
  22  Normalizat    .83206        .19249       -.33215E-05   -.53770E-03
  23  Prefactor     .99521        .12335       -.77019E-06   -.78448E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.626959
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.64091
  norm       = 5.29844
  norm       = 2.9599
  Prefactor  = 7.06373
  Prefactor  = 70.3518
  Prefactor  = 0.401389
  norm       = 10.4877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 90.4062
  Prefactor  = 22.4724
  norm       = 1.38265
  norm       = 22.0977
  norm       = 1.81485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.8531
  Normalizat = 0.832055
  Prefactor  = 0.995206
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.016     FROM HESSE     STATUS=OK           378 CALLS     2975 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62696        1.6501        .15847E-03   -1.5550    
   2  norm          .10000E-03    .60884        .10448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6409        36.155        .21144E-03   -1.5326    
   5  norm          5.2984        2.9917        .71418E-04   -1.5248    
   6  norm          2.9599        1.6299        .74649E-04   -1.5364    
   7  Prefactor     7.0637        17.466        .15106E-03   -1.5176    
   8  Prefactor     70.352        56.560        .47861E-04   -1.4028    
   9  Prefactor     .40139        6.0207        .20075E-02   -1.5581    
  10  norm          10.488        12.259        .12372E-03   -1.5060    
  11  Prefactor     .10000E-03    4.4264        .16910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    82.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          90.406        126.84        .21120E-03   -1.3803    
  14  Prefactor     22.472        34.687        .84283E-04   -1.4760    
  15  norm          1.3827        19.890        .36956E-03   -1.5473    
  16  norm          22.098        21.885        .85273E-04   -1.4767    
  17  norm          1.8148        3.9909        .11472E-02   -1.5439    
  18  Prefactor     .10000E-03    23.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8586        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .45333        .88976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     42.853        41.189        .61232E-04   -1.4398    
  22  Normalizat    .83206        .22289        .31120E-03   -.98890    
  23  Prefactor     .99521        .14376        .19126E-03   -.92889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00645e-08
Minuit parameter uncertainties:
  1  1.65022
  2  1.56268e-05
  3  4.00393e-05
  4  22.9643
  5  2.9918
  6  1.6299
  7  17.4781
  8  56.6037
  9  3.10911
  10  12.2618
  11  1.10282e-05
  12  3.66018e-06
  13  127.22
  14  34.7178
  15  10.4921
  16  21.8934
  17  3.99149
  18  3.64817e-05
  19  8.1931e-06
  20  4.77288e-06
  21  41.2163
  22  0.223132
  23  0.143818
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.103e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.952e-01  1.438e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.321e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 119.286 9.949
Photon Flux Upper Limit: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/24718/likelihoodResults_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.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) = 6793.01676356
delta logL = -0.00107422023757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6793.01568908
delta logL = 2.52321115113e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1256       1.0000          .0000       10.000    
     3 'Normalizat'    .83206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+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.

 FCN=   6793.016     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10131E-03    38.826        .17311E-02** at limit **
   2  Index         2.0699        7.2695        .50000        .35971E-04
   3  Normalizat    .83206        .13628E-01    .31120E-03   -.26376E-04
   4  Prefactor     .99521        .91466E-02    .19126E-03    .57658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101315
  Index      = 2.06987
  Normalizat = 0.832056
  Prefactor  = 0.995207
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.016     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10131E-03    166.68        .34621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0699        5.8052        .50000       -.62614    
   3  Normalizat    .83206        .29162E-01    .12448E-04   -.98890    
   4  Prefactor     .99521        .19572E-01    .38252E-04   -.92889    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16758e-08
Minuit parameter uncertainties:
  1  0.029692
  2  361.963
  3  0.0291627
  4  0.0195724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24718': 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) = 6793.01568866
delta logL = 6.72232090437e-07

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.013e-04  2.969e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.070e+00  3.620e+02  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.952e-01  1.957e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.321e-01  2.916e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 119.286 9.949

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/24718/cmap_HighResolution_431913601_432172801_4FGL_J0757.1+0956_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-08-28 20:38:13.598107', job_id='24718', GAL2='1.00', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630208293.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='743' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:38:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 24718: <4FGL_J0757.1+0956_daily_bin743> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin743> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 20:25:41 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:25:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 20:25:42 2021
Terminated at Sat Aug 28 20:38:14 2021
Results reported at Sat Aug 28 20:38:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin743 119.286 9.9491 431913601 432172801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0757.1+0956 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

