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


Performing analysis on: 4FGL_J0750.8+1229_daily_bin658
RA = 117.701, Dec = 12.494
tmin = 409881601, tmax = 410140801
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='944341', job_status='RUN', time_executed='2021-08-28 16:12:55.738040', time_epoch_executed='1630192375.74' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944341/ft1_4FGL_J0750.8+1229_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944341/ft2_4FGL_J0750.8+1229_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944341/ft1_4FGL_J0750.8+1229_daily_bin658.fits outfile=/scratch/kocevski/944341/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin658.fits ra=117.701 dec=12.494 rad=12.0 tmin=409881601.0 tmax=410140801.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 7.33
user 5.99
sys 1.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/944341/ft2_4FGL_J0750.8+1229_daily_bin658.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/944341/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/944341/ft1_filtered_4FGL_J0750.8+1229_daily_bin658.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.85
user 0.33
sys 1.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944341/ft1_filtered_4FGL_J0750.8+1229_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/944341/ft2_4FGL_J0750.8+1229_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/944341/ltcube_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.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/944341/ft2_4FGL_J0750.8+1229_daily_bin658.fits
.....................!
real 14.09
user 12.56
sys 1.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944341/ft1_filtered_4FGL_J0750.8+1229_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/944341/ft2_4FGL_J0750.8+1229_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/944341/ltcube_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.fits outfile=/scratch/kocevski/944341/expmap_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.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/944341/ltcube_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.fits
.....................!
real 192.25
user 185.74
sys 6.07

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/944341/ft1_filtered_4FGL_J0750.8+1229_daily_bin658.fits scfile=/scratch/kocevski/944341/ft2_4FGL_J0750.8+1229_daily_bin658.fits outfile=/scratch/kocevski/944341/cmap_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.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 1.57
user 0.37
sys 1.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944341/ft1_filtered_4FGL_J0750.8+1229_daily_bin658.fits scfile=/scratch/kocevski/944341/ft2_4FGL_J0750.8+1229_daily_bin658.fits outfile=/scratch/kocevski/944341/cmap_HighResolution_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.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 1.68
user 0.38
sys 1.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/944341/ft1_filtered_4FGL_J0750.8+1229_daily_bin658.fits', '/scratch/kocevski/944341/ft2_4FGL_J0750.8+1229_daily_bin658.fits', expMap='/scratch/kocevski/944341/expmap_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.fits', expCube='/scratch/kocevski/944341/ltcube_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/944341/Model_4FGL_J0750.8+1229_daily_bin658.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/944341/ft1_filtered_4FGL_J0750.8+1229_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/944341/ft2_4FGL_J0750.8+1229_daily_bin658.fits
Exposure map: /scratch/kocevski/944341/expmap_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.fits
Exposure cube: /scratch/kocevski/944341/ltcube_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/944341/Model_4FGL_J0750.8+1229_daily_bin658.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) = 7000.3336359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0763       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.9103       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7033       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21051       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6172       1.0000         .10000E-03   10000.    
    12 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11911E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.819       1.0000         .10000E-03   10000.    
    17 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9420       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11469E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .76997E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3287       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82144       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7000.171     FROM MIGRAD    STATUS=FAILED       886 CALLS     2456 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9667        .18142E-02** at limit **
   2  norm          5.0762        2.4898        .87646E-04   -.44232E-04
   3  norm          1.0472        1.4397        .11170E-03   -.10813E-02
   4  Prefactor     .10000E-03    24.311        .18142E-02** at limit **
   5  Prefactor     .10000E-03    11.633        .18142E-02** at limit **
   6  norm          5.8945        4.4590        .69553E-04   -.10433E-02
   7  norm          1.7034        1.7077        .10617E-03   -.29649E-03
   8  Prefactor     .35376        450.42        .41363E-02   -.43696E-03
   9  Prefactor     .10000E-03    9.6275        .18142E-02** at limit **
  10  Prefactor     .73906        268.27        .79786E-02   -.11062E-03
  11  Prefactor     5.6164        4.4647        .14541E-03   -.30194E-03
  12  norm          .10000E-03    14.348        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.5757        .15441E-02** at limit **
  14  Prefactor     .10000E-03    40.132        .18142E-02** at limit **
  15  norm          .10000E-03    58.352        .18142E-02** at limit **
  16  Prefactor     14.820        23.663        .10405E-03   -.13112E-05
  17  norm          .10000E-03    9.4691        .18142E-02** at limit **
  18  norm          2.9427        3.1290        .14841E-03    .69326E-04
  19  Prefactor     .10000E-03    19.127        .18142E-02** at limit **
  20  Prefactor     .10001E-03    45.487        .41032E-02** at limit **
  21  Normalizat    1.3280        .24086        .28325E-03    .15894E-04
  22  Prefactor     .82183        .14049        .21486E-03    .73284E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7000.171     FROM SIMPLEX   STATUS=UNCHANGED   1154 CALLS     3610 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9667        .34702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0762        2.4898        .10511E-05   -1.5257    
   3  norm          1.0472        1.4397        .10678E-05   -1.5503    
   4  Prefactor     .10000E-03    24.311        .55733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.633        .37492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.8945        4.4590        .10487E-05   -1.5222    
   7  norm          1.7034        1.7077        .10651E-05   -1.5447    
   8  Prefactor     .35376        450.42        .11605E-05   -1.5589    
   9  Prefactor     .10000E-03    9.6275        .30687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .73906        268.27        .12542E-05   -1.5536    
  11  Prefactor     5.6164        4.4647        .10508E-05   -1.5234    
  12  norm          .10000E-03    14.348        .52728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5757        .12905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.132        .31391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    58.352        .34050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.820        23.663        .10279E-05   -1.4938    
  17  norm          .10000E-03    9.4691        .11210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9427        3.1290        .10576E-05   -1.5365    
  19  Prefactor     .10000E-03    19.127        .65035E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    45.487        .68225E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3280        .24086        .56932E-06   -.82735    
  22  Prefactor     .82183        .14049        .68082E-06   -.98928    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7000.171     FROM MIGRAD    STATUS=CONVERGED    328 CALLS     3938 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9679        .36285E-03** at limit **
   2  norm          5.0763        2.4896        .35058E-05   -.36968E-04
   3  norm          1.0472        1.4341        .44681E-05   -.85697E-03
   4  Prefactor     .10000E-03    24.311        .36285E-03** at limit **
   5  Prefactor     .10000E-03    11.633        .36285E-03** at limit **
   6  norm          5.8942        3.2127        .27821E-05   -.33941E-02
   7  norm          1.7034        1.7072        .42470E-05   -.14830E-03
   8  Prefactor     .35598        229.53        .16545E-03   -.13598E-03
   9  Prefactor     .10000E-03    9.6279        .36285E-03** at limit **
  10  Prefactor     .73905        263.78        .31915E-03   -.98602E-04
  11  Prefactor     5.6164        4.4634        .58164E-05   -.33971E-03
  12  norm          .10000E-03    14.359        .36285E-03** at limit **
  13  Prefactor     .10000E-03    3.5758        .30882E-03** at limit **
  14  Prefactor     .10000E-03    40.132        .36285E-03** at limit **
  15  norm          .10000E-03    58.354        .36285E-03** at limit **
  16  Prefactor     14.820        23.642        .41618E-05   -.16390E-05
  17  norm          .10000E-03    9.4703        .36285E-03** at limit **
  18  norm          2.9427        3.1287        .59364E-05    .33322E-04
  19  Prefactor     .10000E-03    19.128        .36285E-03** at limit **
  20  Prefactor     .10000E-03    46.305        .82063E-03** at limit **
  21  Normalizat    1.3280        .23322        .11330E-04   -.24644E-03
  22  Prefactor     .82184        .13899        .85942E-05   -.20319E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.07625
  norm       = 1.0472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.8942
  norm       = 1.70344
  Prefactor  = 0.355983
  Prefactor  = 0.0001
  Prefactor  = 0.73905
  Prefactor  = 5.61638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.8202
  norm       = 0.0001
  norm       = 2.94266
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.32796
  Prefactor  = 0.821836
 **********
 **   18 **HESSE 
 **********

 FCN=   7000.171     FROM HESSE     STATUS=OK           320 CALLS     4258 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9679        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0763        2.4898        .70117E-06   -1.5257    
   3  norm          1.0472        1.4343        .89361E-06   -1.5503    
   4  Prefactor     .10000E-03    24.311        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.633        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.8942        3.1903        .55642E-06   -1.5222    
   7  norm          1.7034        1.7071        .84940E-06   -1.5447    
   8  Prefactor     .35598        226.29        .66181E-05   -1.5589    
   9  Prefactor     .10000E-03    9.6279        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .73905        263.76        .12766E-04   -1.5536    
  11  Prefactor     5.6164        4.4644        .11633E-05   -1.5234    
  12  norm          .10000E-03    14.359        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5758        .61763E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.132        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    58.354        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.820        23.762        .83236E-06   -1.4938    
  17  norm          .10000E-03    9.4704        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9427        3.1286        .11873E-05   -1.5365    
  19  Prefactor     .10000E-03    19.128        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.339        .16413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3280        .23315        .22660E-05   -.82736    
  22  Prefactor     .82184        .13899        .17188E-05   -.98928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86051e-09
Minuit parameter uncertainties:
  1  2.93886e-06
  2  2.4899
  3  1.43431
  4  1.60536e-06
  5  8.81837e-08
  6  3.19043
  7  1.70715
  8  18.0166
  9  4.48498e-06
  10  28.0472
  11  4.46465
  12  2.2641e-06
  13  5.93329e-09
  14  6.72741e-06
  15  1.82517e-05
  16  23.777
  17  1.02307e-05
  18  3.12882
  19  8.77337e-06
  20  0.000757493
  21  0.233335
  22  0.139052
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  5.616e+00  4.465e+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

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.218e-01  1.391e-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.328e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 117.701 12.494
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 6.02e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.72e-05

TS (Fixed Index): 2.06
Ra Dec: 117.701 12.494
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/944341/likelihoodResults_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.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) = 6999.60002301
delta logL = 0.570887316426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6999.58122537
delta logL = 0.589684957882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6248       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3034       1.0000          .0000       10.000    
     3 'Normalizat'    1.2729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84483       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=   6999.581     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6205        25.882        .62931E-02    .55245E-03
   2  Index         3.3044        2.8519        .13822        .14342E-03
   3  Normalizat    1.2729        .66633E-01    .65142E-01   -.32036E-05
   4  Prefactor     .84483        .40608E-01    .44298E-01   -.14611E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62051
  Index      = 3.30439
  Normalizat = 1.27286
  Prefactor  = 0.844834
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.581     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6205        5.5354        .78820E-04   -1.5384    
   2  Index         3.3044        1.2394        .50397E-02   -.34598    
   3  Normalizat    1.2729        .23045        .28816E-03   -.84380    
   4  Prefactor     .84483        .13744        .21226E-03   -.98096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41943e-08
Minuit parameter uncertainties:
  1  5.53651
  2  1.25418
  3  0.230631
  4  0.137501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944341': 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) = 6999.58122463
delta logL = 0.589685698326

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  2.621e+00  5.537e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  3.304e+00  1.254e+00  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.448e-01  1.375e-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.273e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 117.701 12.494
Photon Index (Free Index): 3.30 +/- 1.25
Photon Flux (Free Index): 1.23e-07 +/- 7.94e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.56e-05

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/944341/cmap_HighResolution_409881601_410140801_4FGL_J0750.8+1229_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='2.17e-05', photon_flux_error='6.02e-08', dlogl='5.90e-01', energy_flux='2.16e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-08-28 16:27:01.259506', photon_index_error2='1.25', photon_index2='3.30', ts='2.06', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.56e-05', EG='1.33', time_epoch_completed='1630193221.26', return_code='0', job_id='944341', GAL2='0.84', EG2='1.27', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.94e-08', ts2='3.40', photon_index='2.52' WHERE bin_id='658' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 944341: <4FGL_J0750.8+1229_daily_bin658> in cluster <slac> Done

Job <4FGL_J0750.8+1229_daily_bin658> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 16:10:24 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 16:10:26 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:10:26 2021
Terminated at Sat Aug 28 16:27:02 2021
Results reported at Sat Aug 28 16:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin658 117.701 12.494 409881601 410140801 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 :                                   856.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

