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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin133
RA = 119.286, Dec = 9.9491
tmin = 273801601, tmax = 274060801
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='20154', job_status='RUN', time_executed='2021-08-28 20:14:44.852577', time_epoch_executed='1630206884.85' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20154/ft1_4FGL_J0757.1+0956_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20154/ft2_4FGL_J0757.1+0956_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20154/ft1_4FGL_J0757.1+0956_daily_bin133.fits outfile=/scratch/kocevski/20154/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin133.fits ra=119.286 dec=9.9491 rad=12.0 tmin=273801601.0 tmax=274060801.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.39
user 3.37
sys 0.99

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20154/ft2_4FGL_J0757.1+0956_daily_bin133.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/20154/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin133.fits evtable="EVENTS" outfile="/scratch/kocevski/20154/ft1_filtered_4FGL_J0757.1+0956_daily_bin133.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.25
user 0.32
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20154/ft1_filtered_4FGL_J0757.1+0956_daily_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/20154/ft2_4FGL_J0757.1+0956_daily_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/20154/ltcube_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.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/20154/ft2_4FGL_J0757.1+0956_daily_bin133.fits
.....................!
real 13.58
user 12.38
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20154/ft1_filtered_4FGL_J0757.1+0956_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/20154/ft2_4FGL_J0757.1+0956_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/20154/ltcube_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.fits outfile=/scratch/kocevski/20154/expmap_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.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/20154/ltcube_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.fits
.....................!
real 191.57
user 185.52
sys 5.66

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/20154/ft1_filtered_4FGL_J0757.1+0956_daily_bin133.fits scfile=/scratch/kocevski/20154/ft2_4FGL_J0757.1+0956_daily_bin133.fits outfile=/scratch/kocevski/20154/cmap_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.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.26
user 0.37
sys 0.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20154/ft1_filtered_4FGL_J0757.1+0956_daily_bin133.fits scfile=/scratch/kocevski/20154/ft2_4FGL_J0757.1+0956_daily_bin133.fits outfile=/scratch/kocevski/20154/cmap_HighResolution_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.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.27
user 0.38
sys 0.87

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20154/ft1_filtered_4FGL_J0757.1+0956_daily_bin133.fits', '/scratch/kocevski/20154/ft2_4FGL_J0757.1+0956_daily_bin133.fits', expMap='/scratch/kocevski/20154/expmap_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.fits', expCube='/scratch/kocevski/20154/ltcube_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20154/Model_4FGL_J0757.1+0956_daily_bin133.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/20154/ft1_filtered_4FGL_J0757.1+0956_daily_bin133.fits
Spacecraft file(s): /scratch/kocevski/20154/ft2_4FGL_J0757.1+0956_daily_bin133.fits
Exposure map: /scratch/kocevski/20154/expmap_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.fits
Exposure cube: /scratch/kocevski/20154/ltcube_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20154/Model_4FGL_J0757.1+0956_daily_bin133.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) = 6370.93690822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48278E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.3513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.783       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9360       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8379       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    98.657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6320       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74852       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    40.274       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6238       1.0000         .10000E-03   10000.    
    16 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.1573       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.296       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.8098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.028       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3753       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6370.931     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2138 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7721       -.11749E-05** at limit **
   2  norm          6.3511        1.7607        .18528E-06    .52470E-03
   3  Prefactor     41.587        11.534        .35555E-06   -.38380E-02
   4  Prefactor     21.778        17.296        .38350E-04    .27680E-02
   5  norm          3.9363        1.5138        .23338E-06    .99296E-03
   6  norm          3.8378        2.1349       -.54841E-06    .13051E-03
   7  Prefactor     .10000E-03    7.0169       -.35960E-06** at limit **
   8  Prefactor     98.635        6.9004       -.10800E-05   -.44582E-02
   9  Prefactor     2.6312        3.5358        .13883E-05    .43890E-03
  10  norm          .10000E-03    6.6147        .97236E-07** at limit **
  11  Prefactor     .76230        1.4484       -.84558E-05   -.47618E-03
  12  Prefactor     .10000E-03    50.747       -.21158E-05** at limit **
  13  norm          40.001        83.205       -.70297E-04    .11508E-02
  14  Prefactor     .10000E-03    23.858        .20137E-05** at limit **
  15  norm          2.6230        7.4576        .12421E-04    .10160E-03
  16  norm          .10000E-03    22.298       -.27229E-05** at limit **
  17  norm          8.1575        5.2522       -.64865E-06   -.10697E-03
  18  Prefactor     14.289        15.477        .41522E-04    .14055E-02
  19  Prefactor     .10000E-03    8.5680        .11350E-06** at limit **
  20  norm          5.8095        1.6883        .59422E-07    .50284E-03
  21  Prefactor     27.005        14.177        .20084E-04   -.45523E-02
  22  Normalizat    1.3756        .22878       -.83657E-05    .23413E-03
  23  Prefactor     .63136        .14286        .19806E-05    .12975E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.35113
  Prefactor  = 41.5866
  Prefactor  = 21.7782
  norm       = 3.93628
  norm       = 3.8378
  Prefactor  = 0.0001
  Prefactor  = 98.6352
  Prefactor  = 2.63124
  norm       = 0.0001
  Prefactor  = 0.762299
  Prefactor  = 0.0001
  norm       = 40.0012
  Prefactor  = 0.000100002
  norm       = 2.62296
  norm       = 0.0001
  norm       = 8.15754
  Prefactor  = 14.2892
  Prefactor  = 0.0001
  norm       = 5.8095
  Prefactor  = 27.005
  Normalizat = 1.37557
  Prefactor  = 0.631356
 **********
 **   18 **HESSE 
 **********

 FCN=   6370.931     FROM HESSE     STATUS=OK           434 CALLS     2572 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0463        .45141E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3511        1.7621        .39817E-02   -1.5204    
   3  Prefactor     41.587        49.668        .15534E-02   -1.4417    
   4  Prefactor     21.778        24.880        .21455E-02   -1.4774    
   5  norm          3.9363        1.5251        .50834E-02   -1.5311    
   6  norm          3.8378        2.1434        .51502E-02   -1.5316    
   7  Prefactor     .10000E-03    6.9414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     98.635        51.984        .10118E-02   -1.3718    
   9  Prefactor     2.6312        3.5813        .62837E-02   -1.5384    
  10  norm          .10000E-03    6.6060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .76230        9.6089        .83813E-01   -1.5533    
  12  Prefactor     .10000E-03    50.740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          40.001        86.660        .15791E-02   -1.4442    
  14  Prefactor     .10000E-03    23.775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6230        7.4907        .62943E-02   -1.5384    
  16  norm          .10000E-03    21.967        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.1575        5.2630        .35094E-02   -1.5137    
  18  Prefactor     14.289        25.164        .26484E-02   -1.4952    
  19  Prefactor     .10000E-03    8.5142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.8095        1.6882        .41656E-02   -1.5226    
  21  Prefactor     27.005        33.189        .19264E-02   -1.4668    
  22  Normalizat    1.3756        .20857        .60186E-01   -.81338    
  23  Prefactor     .63136        .12966        .41482E-01   -1.0628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91825e-07
Minuit parameter uncertainties:
  1  1.15157e-05
  2  1.76215
  3  49.7173
  4  24.8921
  5  1.52515
  6  2.14345
  7  7.63196e-05
  8  52.0077
  9  3.58155
  10  6.22866e-07
  11  5.41362
  12  2.41548e-06
  13  86.9341
  14  0.000448039
  15  7.49335
  16  2.67148e-06
  17  5.26328
  18  25.1831
  19  5.15744e-06
  20  1.68821
  21  33.2121
  22  0.208699
  23  0.129719
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  7.623e-01  5.414e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  6.314e-01  1.297e-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:  1.376e+00  2.087e-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: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20154/likelihoodResults_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.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) = 6370.72324556
delta logL = 0.208095943219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6370.64463748
delta logL = 0.28670401906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29932E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.0029       1.0000          .0000       10.000    
     3 'Normalizat'    1.3185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65487       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.

 FCN=   6370.645     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      276 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28528E-01    .45751        .39832E-02    .14237E-01
   2  Index         5.0232        1.9430        .15358        .23597E-03
   3  Normalizat    1.3184        .31913E-01    .61286E-01    .14647E-03
   4  Prefactor     .65493        .20612E-01    .41797E-01   -.19920E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0285275
  Index      = 5.0232
  Normalizat = 1.31841
  Prefactor  = 0.654932
 **********
 **   18 **HESSE 
 **********

 FCN=   6370.645     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      307 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28528E-01    2.6421        .17983E-04   -1.5674    
   2  Index         5.0232        7.5109        .53058E-02    .46399E-02
   3  Normalizat    1.3184        .18459        .27106E-03   -.83018    
   4  Prefactor     .65493        .11610        .23856E-03   -1.0532    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02049e-09
Minuit parameter uncertainties:
  1  0.548145
  2  7.99752
  3  0.184679
  4  0.116145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20154': 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) = 6370.64462438
delta logL = 0.286717120639

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  2.853e-02  5.481e-01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  5.023e+00  7.998e+00  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:  6.549e-01  1.161e-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:  1.318e+00  1.847e-01  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/20154/cmap_HighResolution_273801601_274060801_4FGL_J0757.1+0956_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2021-08-28 20:26:10.251476', job_id='20154', GAL2='0.65', fit_tolerance='1e-08', EG2='1.32', EG='1.38', time_epoch_completed='1630207570.25', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.87e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='133' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:26:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 20154: <4FGL_J0757.1+0956_daily_bin133> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin133> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 20:10:49 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:10:51 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:10:51 2021
Terminated at Sat Aug 28 20:26:11 2021
Results reported at Sat Aug 28 20:26:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin133 119.286 9.9491 273801601 274060801 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 :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

