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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin326
RA = 119.286, Dec = 9.9491
tmin = 323827201, tmax = 324086401
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='21684', job_status='RUN', time_executed='2021-08-28 20:18:50.023106', time_epoch_executed='1630207130.02' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21684/ft1_4FGL_J0757.1+0956_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21684/ft2_4FGL_J0757.1+0956_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21684/ft1_4FGL_J0757.1+0956_daily_bin326.fits outfile=/scratch/kocevski/21684/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin326.fits ra=119.286 dec=9.9491 rad=12.0 tmin=323827201.0 tmax=324086401.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 3.96
user 3.12
sys 0.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21684/ft1_filtered_4FGL_J0757.1+0956_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/21684/ft2_4FGL_J0757.1+0956_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/21684/ltcube_323827201_324086401_4FGL_J0757.1+0956_daily_bin326.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/21684/ft2_4FGL_J0757.1+0956_daily_bin326.fits
.....................!
real 12.71
user 11.56
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21684/ft1_filtered_4FGL_J0757.1+0956_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/21684/ft2_4FGL_J0757.1+0956_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/21684/ltcube_323827201_324086401_4FGL_J0757.1+0956_daily_bin326.fits outfile=/scratch/kocevski/21684/expmap_323827201_324086401_4FGL_J0757.1+0956_daily_bin326.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/21684/ltcube_323827201_324086401_4FGL_J0757.1+0956_daily_bin326.fits
.....................!
real 190.68
user 185.20
sys 5.10

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/21684/ft1_filtered_4FGL_J0757.1+0956_daily_bin326.fits scfile=/scratch/kocevski/21684/ft2_4FGL_J0757.1+0956_daily_bin326.fits outfile=/scratch/kocevski/21684/cmap_323827201_324086401_4FGL_J0757.1+0956_daily_bin326.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.14
user 0.35
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21684/ft1_filtered_4FGL_J0757.1+0956_daily_bin326.fits scfile=/scratch/kocevski/21684/ft2_4FGL_J0757.1+0956_daily_bin326.fits outfile=/scratch/kocevski/21684/cmap_HighResolution_323827201_324086401_4FGL_J0757.1+0956_daily_bin326.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.26
user 0.38
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.5181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.3945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3284       1.0000         .10000E-03   10000.    
    10 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.198       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.875       1.0000         .10000E-03   10000.    
    16 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .77907       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1486       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84865       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=   6470.078     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2554 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .92735       -.13180E-06** at limit **
   2  norm          7.5183        1.8241       -.84375E-07    .75195E-04
   3  Prefactor     49.609        39.893        .11347E-05    .37817E-05
   4  Prefactor     .10000E-03    14.726        .10128E-04** at limit **
   5  norm          .10000E-03    .97455        .80929E-08** at limit **
   6  norm          7.3944        2.5399       -.16456E-06   -.10915E-03
   7  Prefactor     17.247        9.1583        .88558E-06    .19715E-03
   8  Prefactor     3.4098        111.72       -.44362E-04   -.14500E-04
   9  Prefactor     3.3267        3.3635       -.26365E-06   -.38765E-03
  10  norm          .10000E-03    6.1007       -.38774E-07** at limit **
  11  Prefactor     13.196        11.724       -.81838E-06   -.79529E-03
  12  Prefactor     .10000E-03    136.00       -.23986E-06** at limit **
  13  norm          .10000E-03    26.755        .87761E-05** at limit **
  14  Prefactor     .10000E-03    13.959       -.88075E-05** at limit **
  15  norm          19.870        15.082        .14660E-05    .66336E-05
  16  norm          .10000E-03    19.863        .23641E-05** at limit **
  17  norm          10.362        4.5738        .10419E-06    .94512E-03
  18  Prefactor     51.998        36.680       -.11633E-04    .32984E-04
  19  Prefactor     .10000E-03    9.9169        .22057E-06** at limit **
  20  norm          .77896        1.0712       -.22894E-06   -.11114E-02
  21  Prefactor     .10000E-03    23.031       -.12629E-04** at limit **
  22  Normalizat    1.1489        .21366        .50146E-05   -.30626E-04
  23  Prefactor     .84841        .13697       -.10762E-05    .35350E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.51833
  Prefactor  = 49.6088
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.39437
  Prefactor  = 17.2474
  Prefactor  = 3.40977
  Prefactor  = 3.32667
  norm       = 0.0001
  Prefactor  = 13.1964
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.8696
  norm       = 0.0001
  norm       = 10.3615
  Prefactor  = 51.9977
  Prefactor  = 0.0001
  norm       = 0.778962
  Prefactor  = 0.0001
  Normalizat = 1.14895
  Prefactor  = 0.848412
 **********
 **   18 **HESSE 
 **********

 FCN=   6470.078     FROM HESSE     STATUS=OK           368 CALLS     2922 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5390        .14942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5183        1.8254        .51123E-04   -1.5160    
   3  Prefactor     49.609        39.815        .56937E-04   -1.4298    
   4  Prefactor     .10000E-03    14.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .99218        .15281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.3944        2.5411        .71733E-04   -1.5164    
   7  Prefactor     17.247        9.0171        .96431E-04   -1.4877    
   8  Prefactor     3.4098        112.57        .21848E-03   -1.5339    
   9  Prefactor     3.3267        3.3630        .13893E-03   -1.5343    
  10  norm          .10000E-03    6.1016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.196        11.801        .55128E-03   -1.4981    
  12  Prefactor     .10000E-03    136.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    26.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.870        15.082        .89842E-04   -1.4816    
  16  norm          .10000E-03    20.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.362        4.5792        .55414E-03   -1.5064    
  18  Prefactor     51.998        36.633        .55607E-04   -1.4265    
  19  Prefactor     .10000E-03    9.9714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .77896        1.0467        .93242E-04   -1.5531    
  21  Prefactor     .10000E-03    23.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1489        .25060        .28801E-03   -.88195    
  23  Prefactor     .84841        .16019        .22247E-03   -.97968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54483e-09
Minuit parameter uncertainties:
  1  2.21456e-05
  2  1.82537
  3  39.8367
  4  2.31142e-05
  5  4.49729e-06
  6  2.54115
  7  9.01786
  8  39.263
  9  3.36319
  10  7.21088e-06
  11  11.8031
  12  9.85657e-06
  13  5.40392e-06
  14  2.57697e-05
  15  15.085
  16  0.000184373
  17  4.57935
  18  36.6489
  19  1.60063e-05
  20  1.0467
  21  3.24579e-05
  22  0.250856
  23  0.160274
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.320e+01  1.180e+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:  8.484e-01  1.603e-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.149e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.53e-05

TS (Fixed Index): 1.93
Ra Dec: 119.286 9.949
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21684/likelihoodResults_323827201_324086401_4FGL_J0757.1+0956_daily_bin326.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): 0
logL (Free Index) = 6469.50772289
delta logL = 0.57075771482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6469.49532372
delta logL = 0.583156886263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8440       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8455       1.0000          .0000       10.000    
     3 'Normalizat'    1.1155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86228       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6469.495     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      286 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8440        11.362        .66135E-03   -.19365E-03
   2  Index         2.8453        .94447        .47536E-02    .53657E-03
   3  Normalizat    1.1154        .23558        .29152E-03   -.28468E-05
   4  Prefactor     .86235        .15771        .22080E-03    .10298E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84397
  Index      = 2.84534
  Normalizat = 1.11543
  Prefactor  = 0.862353
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.495     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8440        8.5761        .26454E-04   -1.5224    
   2  Index         2.8453        .71476        .95071E-03   -.44553    
   3  Normalizat    1.1154        .23572        .11661E-04   -.89258    
   4  Prefactor     .86235        .15777        .88322E-05   -.97469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67118e-11
Minuit parameter uncertainties:
  1  8.57788
  2  0.717789
  3  0.235942
  4  0.157857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21684': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6469.49532348
delta logL = 0.583157125385

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  5.844e+00  8.578e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.845e+00  7.178e-01  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:  8.624e-01  1.579e-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.115e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 119.286 9.949
Photon Index (Free Index): 2.85 +/- 0.72
Photon Flux (Free Index): 6.06e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.32e-05 +/- 9.82e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/21684/cmap_HighResolution_323827201_324086401_4FGL_J0757.1+0956_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='1.32e-05', photon_flux_error='3.10e-08', dlogl='5.83e-01', energy_flux='1.71e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-08-28 20:30:45.930948', photon_index_error2='0.72', photon_index2='2.85', ts='1.93', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='9.82e-06', EG='1.15', time_epoch_completed='1630207845.93', return_code='0', job_id='21684', GAL2='0.86', EG2='1.12', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.55e-08', ts2='3.15', photon_index='2.15' WHERE bin_id='326' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:30:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 21684: <4FGL_J0757.1+0956_daily_bin326> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin326> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 20:15:28 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:15:29 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:15:29 2021
Terminated at Sat Aug 28 20:30:47 2021
Results reported at Sat Aug 28 20:30:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin326 119.286 9.9491 323827201 324086401 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 :                                   723.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

