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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin940
RA = 119.286, Dec = 9.9491
tmin = 482976001, tmax = 483235201
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='25990', job_status='RUN', time_executed='2021-08-28 20:32:51.613849', time_epoch_executed='1630207971.61' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25990/ft1_4FGL_J0757.1+0956_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25990/ft2_4FGL_J0757.1+0956_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25990/ft1_4FGL_J0757.1+0956_daily_bin940.fits outfile=/scratch/kocevski/25990/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin940.fits ra=119.286 dec=9.9491 rad=12.0 tmin=482976001.0 tmax=483235201.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.61
user 3.93
sys 0.65

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25990/ft1_filtered_4FGL_J0757.1+0956_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/25990/ft2_4FGL_J0757.1+0956_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/25990/ltcube_482976001_483235201_4FGL_J0757.1+0956_daily_bin940.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/25990/ft2_4FGL_J0757.1+0956_daily_bin940.fits
.....................!
real 12.49
user 11.63
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25990/ft1_filtered_4FGL_J0757.1+0956_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/25990/ft2_4FGL_J0757.1+0956_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/25990/ltcube_482976001_483235201_4FGL_J0757.1+0956_daily_bin940.fits outfile=/scratch/kocevski/25990/expmap_482976001_483235201_4FGL_J0757.1+0956_daily_bin940.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/25990/ltcube_482976001_483235201_4FGL_J0757.1+0956_daily_bin940.fits
.....................!
real 192.61
user 187.67
sys 4.56

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/25990/ft1_filtered_4FGL_J0757.1+0956_daily_bin940.fits scfile=/scratch/kocevski/25990/ft2_4FGL_J0757.1+0956_daily_bin940.fits outfile=/scratch/kocevski/25990/cmap_482976001_483235201_4FGL_J0757.1+0956_daily_bin940.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 0.94
user 0.35
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25990/ft1_filtered_4FGL_J0757.1+0956_daily_bin940.fits scfile=/scratch/kocevski/25990/ft2_4FGL_J0757.1+0956_daily_bin940.fits outfile=/scratch/kocevski/25990/cmap_HighResolution_482976001_483235201_4FGL_J0757.1+0956_daily_bin940.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 0.95
user 0.36
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2704       1.0000         .10000E-03   10000.    
     2 'norm      '    .75598       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4662       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3011       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.4774       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.601       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5555       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8919       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32366E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67448E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7463       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1117       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1144       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=   7801.005     FROM MIGRAD    STATUS=CONVERGED    929 CALLS     2602 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2707        1.9633        .14473E-03   -.34327E-04
   2  norm          .75787        .86639        .97513E-03   -.89114E-03
   3  Prefactor     .10000E-03    32.624        .18142E-02** at limit **
   4  Prefactor     .10000E-03    13.331        .18142E-02** at limit **
   5  norm          6.4663        2.1679        .72484E-04    .53484E-04
   6  norm          3.3015        1.7582        .82041E-04   -.81066E-04
   7  Prefactor     .10000E-03    7.2657        .18142E-02** at limit **
   8  Prefactor     .10000E-03    23.331        .18142E-02** at limit **
   9  Prefactor     .10000E-03    2.7932        .28287E-03** at limit **
  10  norm          9.4719        15.314        .13018E-03    .89953E-05
  11  Prefactor     .29243        141.56        .50175E-02    .16487E-03
  12  Prefactor     .10000E-03    33.380        .18142E-02** at limit **
  13  norm          .10000E-03    37.607        .18142E-02** at limit **
  14  Prefactor     .10000E-03    18.055        .18142E-02** at limit **
  15  norm          21.615        12.836        .86181E-04   -.79150E-05
  16  norm          1.5559        107.41        .17067E-02   -.20210E-04
  17  norm          8.8936        4.2559        .12158E-03   -.27397E-04
  18  Prefactor     .10002E-03    49.729        .14619    ** at limit **
  19  Prefactor     .10018E-03    114.25        .59737E-02** at limit **
  20  norm          2.7465        1.3932        .70846E-04   -.45895E-04
  21  Prefactor     .10000E-03    13.172        .18142E-02** at limit **
  22  Normalizat    1.1113        .23575        .32230E-03   -.60142E-04
  23  Prefactor     1.1145        .15082        .21123E-03    .36275E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27069
  norm       = 0.757874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.4663
  norm       = 3.30149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.47188
  Prefactor  = 0.292434
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.6147
  norm       = 1.55586
  norm       = 8.89357
  Prefactor  = 0.00010002
  Prefactor  = 0.000100176
  norm       = 2.74652
  Prefactor  = 0.0001
  Normalizat = 1.11125
  Prefactor  = 1.11453
 **********
 **   18 **HESSE 
 **********

 FCN=   7801.005     FROM HESSE     STATUS=OK           360 CALLS     2962 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2707        1.9629        .57892E-05   -1.5483    
   2  norm          .75787        .86599        .39005E-04   -1.5534    
   3  Prefactor     .10000E-03    32.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4663        2.1674        .28994E-05   -1.5199    
   6  norm          3.3015        1.7579        .32816E-05   -1.5345    
   7  Prefactor     .10000E-03    7.2671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7933        .56575E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.4719        14.950        .52070E-05   -1.5092    
  11  Prefactor     .29243        138.08        .20070E-03   -1.5600    
  12  Prefactor     .10000E-03    33.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    37.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.615        12.835        .34472E-05   -1.4778    
  16  norm          1.5559        105.96        .68270E-04   -1.5458    
  17  norm          8.8936        4.2545        .48633E-05   -1.5111    
  18  Prefactor     .10002E-03    49.150        .14631       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10018E-03    117.67        .23895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7465        1.3928        .28338E-05   -1.5377    
  21  Prefactor     .10000E-03    13.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1113        .23473        .12892E-04   -.89391    
  23  Prefactor     1.1145        .15088        .84494E-05   -.89004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55466e-09
Minuit parameter uncertainties:
  1  1.96297
  2  0.866007
  3  2.37708e-05
  4  9.18762e-06
  5  2.16748
  6  1.75794
  7  8.36057e-06
  8  2.61571e-05
  9  9.43655e-06
  10  14.9555
  11  12.7362
  12  3.05554e-05
  13  9.32296e-05
  14  1.32469e-05
  15  12.8363
  16  25.7257
  17  4.25462
  18  0.00196623
  19  0.00912803
  20  1.39278
  21  2.3472e-05
  22  0.234946
  23  0.150936
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  2.924e-01  1.274e+01  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:  1.115e+00  1.509e-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.111e+00  2.349e-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: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25990/likelihoodResults_482976001_483235201_4FGL_J0757.1+0956_daily_bin940.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) = 7800.52562919
delta logL = 0.479743680711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7800.49343054
delta logL = 0.511942331501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19100E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.3967       1.0000          .0000       10.000    
     3 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1520       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=   7800.493     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18616E-01    .27453        .26996E-02    .92526E-02
   2  Index         5.4086        2.3039        .10025        .22235E-03
   3  Normalizat    1.0198        .40909E-01    .75685E-01    .32783E-04
   4  Prefactor     1.1521        .26954E-01    .35878E-01   -.62503E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0186155
  Index      = 5.40861
  Normalizat = 1.01982
  Prefactor  = 1.15212
 **********
 **   18 **HESSE 
 **********

 FCN=   7800.493     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18616E-01    .93566        .12326E-03   -1.5681    
   2  Index         5.4086        7.3925        .56536E-02    .81813E-01
   3  Normalizat    1.0198        .16077        .33494E-03   -.92369    
   4  Prefactor     1.1521        .10268        .20829E-03   -.87818    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22866e-07
Minuit parameter uncertainties:
  1  0.263247
  2  5.71986
  3  0.160847
  4  0.102698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25990': 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) = 7800.49342163
delta logL = 0.511951240601

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.862e-02  2.632e-01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  5.409e+00  5.720e+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:  1.152e+00  1.027e-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.020e+00  1.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 119.286 9.949
Photon Index (Free Index): 5.41 +/- 5.72
Photon Flux (Free Index): 7.35e-08 +/- 7.25e-08
Energy Flux (Free Index): 9.48e-06 +/- 1.07e-05

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/25990/cmap_HighResolution_482976001_483235201_4FGL_J0757.1+0956_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', comment='SUCCESS', energy_flux2='9.48e-06', dlogl='5.12e-01', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-08-28 20:45:53.996823', photon_index_error2='5.72', photon_index2='5.41', ts='0.00', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='1.07e-05', EG='1.11', time_epoch_completed='1630208754.0', return_code='0', job_id='25990', GAL2='1.15', EG2='1.02', return_code2='102', photon_flux_error2='7.25e-08', ts2='1.17', photon_index='2.15' WHERE bin_id='940' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 25990: <4FGL_J0757.1+0956_daily_bin940> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin940> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 20:30:39 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:30:40 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:30:40 2021
Terminated at Sat Aug 28 20:45:54 2021
Results reported at Sat Aug 28 20:45:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin940 119.286 9.9491 482976001 483235201 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 :                                   782.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

