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


Performing analysis on: 4FGL_J0750.8+1229_daily_bin342
RA = 117.701, Dec = 12.494
tmin = 327974401, tmax = 328233601
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='941437', job_status='RUN', time_executed='2021-08-28 16:01:36.893068', time_epoch_executed='1630191696.89' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941437

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941437/ft1_4FGL_J0750.8+1229_daily_bin342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941437/ft1_4FGL_J0750.8+1229_daily_bin342.fits outfile=/scratch/kocevski/941437/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin342.fits ra=117.701 dec=12.494 rad=12.0 tmin=327974401.0 tmax=328233601.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.30
user 3.28
sys 1.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.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/941437/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin342.fits evtable="EVENTS" outfile="/scratch/kocevski/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.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 2.22
user 0.34
sys 1.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.fits" evtable="EVENTS" scfile=/scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits sctable="SC_DATA" outfile=/scratch/kocevski/941437/ltcube_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.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/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits
.....................!
real 13.95
user 11.68
sys 2.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits sctable="SC_DATA" expcube=/scratch/kocevski/941437/ltcube_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.fits outfile=/scratch/kocevski/941437/expmap_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.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/941437/ltcube_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.fits
.....................!
real 192.95
user 185.04
sys 7.44

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 168 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 J0750.8+1229 @ 117.701 12.494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.fits scfile=/scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits outfile=/scratch/kocevski/941437/cmap_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.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=117.701 yref=12.494 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 2.20
user 0.36
sys 1.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.fits scfile=/scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits outfile=/scratch/kocevski/941437/cmap_HighResolution_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.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=117.701 yref=12.494 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 2.21
user 0.37
sys 1.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/941437/Model_4FGL_J0750.8+1229_daily_bin342.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/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.fits.....................!
real 81.07
user 77.42
sys 3.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.fits', '/scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits', expMap='/scratch/kocevski/941437/expmap_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.fits', expCube='/scratch/kocevski/941437/ltcube_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/941437/Model_4FGL_J0750.8+1229_daily_bin342.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0750.8+1229'

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/941437/ft1_filtered_4FGL_J0750.8+1229_daily_bin342.fits
Spacecraft file(s): /scratch/kocevski/941437/ft2_4FGL_J0750.8+1229_daily_bin342.fits
Exposure map: /scratch/kocevski/941437/expmap_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.fits
Exposure cube: /scratch/kocevski/941437/ltcube_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/941437/Model_4FGL_J0750.8+1229_daily_bin342.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) = 5797.40234393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    76.763       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .90226       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8349       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5188       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.4055       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3345       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1059       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5797.401     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2312 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2768       -.82932E-07** at limit **
   2  norm          .10000E-03    .89483        .40625E-07** at limit **
   3  norm          1.3901        1.3671       -.14593E-06   -.77598E-03
   4  Prefactor     76.756        93.484       -.67407E-05   -.47474E-05
   5  Prefactor     .10000E-03    21.256        .26339E-05** at limit **
   6  norm          .90278        1.0362       -.31534E-07   -.36010E-03
   7  norm          3.8347        2.5321        .39178E-07   -.25388E-03
   8  Prefactor     .10000E-03    5.9557       -.14735E-06** at limit **
   9  Prefactor     .10000E-03    9.2612        .26435E-06** at limit **
  10  Prefactor     .10000E-03    15.801       -.61385E-05** at limit **
  11  Prefactor     .10000E-03    .96501        .82543E-08** at limit **
  12  norm          .10000E-03    17.745        .94234E-05** at limit **
  13  Prefactor     5.5187        8.2259       -.39198E-06   -.17943E-03
  14  Prefactor     .10000E-03    36.368        .78002E-05** at limit **
  15  norm          .10000E-03    75.549       -.67389E-05** at limit **
  16  Prefactor     .10000E-03    36.115        .71922E-05** at limit **
  17  norm          .10000E-03    7.6647       -.32679E-06** at limit **
  18  norm          8.4049        6.5353        .28410E-08   -.84172E-05
  19  Prefactor     .10000E-03    27.042       -.16628E-04** at limit **
  20  Prefactor     6.3363        16.011       -.36042E-06   -.25498E-04
  21  Normalizat    1.1057        .17893        .70717E-07    .27424E-04
  22  Prefactor     .81493        .11601        .34946E-06   -.32953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.39009
  Prefactor  = 76.7562
  Prefactor  = 0.0001
  norm       = 0.902778
  norm       = 3.83465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.51869
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.40488
  Prefactor  = 0.0001
  Prefactor  = 6.33626
  Normalizat = 1.10574
  Prefactor  = 0.814927
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.401     FROM HESSE     STATUS=OK           338 CALLS     2650 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .91466        .14031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3901        1.3549        .83101E-04   -1.5472    
   4  Prefactor     76.756        93.583        .45832E-04   -1.3954    
   5  Prefactor     .10000E-03    21.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .90278        .98857        .80200E-03   -1.5518    
   7  norm          3.8347        2.5282        .93719E-04   -1.5316    
   8  Prefactor     .10000E-03    6.0492        .18081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .98503        .73012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    17.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5187        8.2321        .17103E-03   -1.5238    
  14  Prefactor     .10000E-03    36.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    75.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.6697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.4049        6.5408        .13827E-03   -1.5128    
  19  Prefactor     .10000E-03    27.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3363        16.114        .15948E-03   -1.5204    
  21  Normalizat    1.1057        .20518        .25746E-03   -.89568    
  22  Prefactor     .81493        .13317        .19282E-03   -.99180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78652e-10
Minuit parameter uncertainties:
  1  1.84947e-06
  2  7.59046e-06
  3  1.35498
  4  93.763
  5  2.2382e-05
  6  0.988593
  7  2.52831
  8  3.7742e-06
  9  2.46803e-06
  10  4.35796e-06
  11  2.96044e-07
  12  2.44128e-05
  13  8.23377
  14  2.30595e-06
  15  1.04931e-06
  16  1.58012e-05
  17  6.93998e-08
  18  6.54133
  19  1.77247e-05
  20  16.1255
  21  0.20533
  22  0.133225
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.960e-07  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.149e-01  1.332e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.106e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.701 12.494
Photon Flux Upper Limit: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/941437/likelihoodResults_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.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) = 5797.40596954
delta logL = -0.00478654964536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5797.40118534
delta logL = -2.35302650253e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4900       1.0000          .0000       10.000    
     3 'Normalizat'    1.1056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5797.401     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      215 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5314        .90712E-02** at limit **
   2  Index         1.9047        7.8529        .50000       -.26789E-06
   3  Normalizat    1.1057        .10291E-01    .58218E-01   -.20286E-03
   4  Prefactor     .81492        .67549E-02    .43913E-01   -.70183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.90474
  Normalizat = 1.10574
  Prefactor  = 0.814924
 **********
 **   18 **HESSE 
 **********

 FCN=   5797.401     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      244 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.136        .89608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9047        8.6002        .50000       -.66753    
   3  Normalizat    1.1057        .35394E-01    .25746E-03   -.89568    
   4  Prefactor     .81492        .23241E-01    .19282E-03   -.99181    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34778e-08
Minuit parameter uncertainties:
  1  0.000694357
  2  388.356
  3  0.0353945
  4  0.0232416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941437': 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) = 5797.40116606
delta logL = 1.69240302057e-05

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  6.944e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  1.905e+00  3.884e+02  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.149e-01  2.324e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.106e+00  3.539e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.701 12.494

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/941437/cmap_HighResolution_327974401_328233601_4FGL_J0750.8+1229_daily_bin342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-08-28 16:12:34.112837', job_id='941437', GAL2='0.81', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630192354.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.69e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='342' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:12:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 941437: <4FGL_J0750.8+1229_daily_bin342> in cluster <slac> Done

Job <4FGL_J0750.8+1229_daily_bin342> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 16:00:54 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 16:00:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 16:00:55 2021
Terminated at Sat Aug 28 16:12:35 2021
Results reported at Sat Aug 28 16:12:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin342 117.701 12.494 327974401 328233601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0750.8+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            701 sec.

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

