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


Performing analysis on: 4FGL_J0030.6-0212_daily_bin1599
RA = 7.6558, Dec = -2.2014
tmin = 653788801, tmax = 654048001
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='946416', job_status='RUN', time_executed='2021-09-23 00:03:59.899761', time_epoch_executed='1632380639.9' WHERE source_name='4FGL J0030.6-0212' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946416

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946416/ft1_4FGL_J0030.6-0212_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946416/ft1_4FGL_J0030.6-0212_daily_bin1599.fits outfile=/scratch/kocevski/946416/ft1_filteredMKT_4FGL_J0030.6-0212_daily_bin1599.fits ra=7.6558 dec=-2.2014 rad=12.0 tmin=653788801.0 tmax=654048001.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.89
user 3.65
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.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/946416/ft1_filteredMKT_4FGL_J0030.6-0212_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.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.50
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/946416/ltcube_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.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/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits
.....................!
real 14.55
user 14.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/946416/ltcube_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.fits outfile=/scratch/kocevski/946416/expmap_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.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/946416/ltcube_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.fits
.....................!
real 192.71
user 186.07
sys 4.37

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
Added 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J0030.6-0212 @ 7.6558 -2.2014

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.fits scfile=/scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits outfile=/scratch/kocevski/946416/cmap_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.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=7.6558 yref=-2.2014 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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.fits scfile=/scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits outfile=/scratch/kocevski/946416/cmap_HighResolution_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.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=7.6558 yref=-2.2014 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/946416/Model_4FGL_J0030.6-0212_daily_bin1599.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
Working on...
/scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.fits.....................!
real 72.38
user 70.66
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.fits', '/scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits', expMap='/scratch/kocevski/946416/expmap_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.fits', expCube='/scratch/kocevski/946416/ltcube_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/946416/Model_4FGL_J0030.6-0212_daily_bin1599.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0030.6-0212'

4FGL J0030.6-0212
   Spectrum: LogParabola
130         norm:  8.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
131        alpha:  2.299e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
132         beta:  1.284e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
133           Eb:  6.004e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/946416/ft1_filtered_4FGL_J0030.6-0212_daily_bin1599.fits
Spacecraft file(s): /scratch/kocevski/946416/ft2_4FGL_J0030.6-0212_daily_bin1599.fits
Exposure map: /scratch/kocevski/946416/expmap_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.fits
Exposure cube: /scratch/kocevski/946416/ltcube_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/946416/Model_4FGL_J0030.6-0212_daily_bin1599.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) = 7136.29389017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .15847E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.581       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1512       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4568       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.196       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9377       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    28.267       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.583       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.801       1.0000         .10000E-03   10000.    
    19 'norm      '    10.600       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49550E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0553       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4248       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6093       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+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=   7136.290     FROM MIGRAD    STATUS=CONVERGED   1035 CALLS     3762 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3320        8.6725        .15949E-03   -.19744E-04
   2  Prefactor     .10000E-03    25.651        .18142E-02** at limit **
   3  Prefactor     .10000E-03    4.4255        .17351E-02** at limit **
   4  Prefactor     .10000E-03    8.9333        .18142E-02** at limit **
   5  norm          .10000E-03    52.726        .18381E-02** at limit **
   6  Prefactor     33.587        18.795        .69150E-04   -.19729E-04
   7  norm          7.1504        5.1258        .14318E-03   -.70747E-04
   8  norm          6.4564        4.2738        .13753E-03   -.16698E-04
   9  Prefactor     .10000E-03    6.7612        .18142E-02** at limit **
  10  norm          15.196        12.212        .10275E-03   -.43706E-04
  11  Prefactor     1.9372        2.3361        .13693E-03    .25241E-04
  12  Prefactor     .10000E-03    1.3104        .94181E-03** at limit **
  13  norm          .10000E-03    2.8355        .27290E-03** at limit **
  14  norm          28.267        9.1005        .75354E-04   -.34851E-04
  15  Prefactor     .10000E-03    14.503        .18142E-02** at limit **
  16  Prefactor     33.579        30.621        .69148E-04   -.53927E-05
  17  Prefactor     .10000E-03    13.906        .18142E-02** at limit **
  18  Prefactor     14.771        228.51        .10411E-03   -.54600E-06
  19  norm          10.600        2.9823        .65813E-04   -.56486E-04
  20  Prefactor     .10000E-03    35.948        .14863    ** at limit **
  21  Prefactor     .10000E-03    4.8020        .18028E-02** at limit **
  22  Prefactor     8.0543        8.4254        .14127E-03   -.90134E-05
  23  Prefactor     1.4247        5.0483        .34833E-03   -.10411E-04
  24  Normalizat    1.6094        .25475        .27648E-03   -.38117E-04
  25  Prefactor     .75580        .19165        .30444E-03   -.74574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.33198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 33.5866
  norm       = 7.15039
  norm       = 6.45643
  Prefactor  = 0.0001
  norm       = 15.196
  Prefactor  = 1.93717
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.2669
  Prefactor  = 0.0001
  Prefactor  = 33.5793
  Prefactor  = 0.0001
  Prefactor  = 14.7709
  norm       = 10.6003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.05433
  Prefactor  = 1.42475
  Normalizat = 1.60936
  Prefactor  = 0.755799
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.290     FROM HESSE     STATUS=OK           413 CALLS     4175 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3320        8.6718        .63798E-05   -1.5205    
   2  Prefactor     .10000E-03    25.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4256        .34701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    54.700        .73524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.587        18.794        .27660E-05   -1.4548    
   7  norm          7.1504        5.1241        .57271E-05   -1.5173    
   8  norm          6.4564        4.2737        .55012E-05   -1.5200    
   9  Prefactor     .10000E-03    6.7622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.196        12.210        .41098E-05   -1.4928    
  11  Prefactor     1.9372        2.3360        .54770E-05   -1.5430    
  12  Prefactor     .10000E-03    1.3104        .18836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8356        .54580E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          28.267        9.1002        .30141E-05   -1.4644    
  15  Prefactor     .10000E-03    14.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.579        30.620        .13830E-04   -1.4548    
  17  Prefactor     .10000E-03    13.907        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.771        229.24        .41644E-05   -1.4939    
  19  norm          10.600        2.9830        .26325E-05   -1.5057    
  20  Prefactor     .10000E-03    35.578        .14980       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8029        .36056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.0543        8.4252        .56506E-05   -1.5140    
  23  Prefactor     1.4247        5.0477        .13933E-04   -1.5469    
  24  Normalizat    1.6094        .25468        .11059E-04   -.74750    
  25  Prefactor     .75580        .19177        .12178E-04   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15295e-11
Minuit parameter uncertainties:
  1  8.67351
  2  5.64429e-06
  3  8.55579e-07
  4  1.81662e-05
  5  0.00042206
  6  18.797
  7  5.12441
  8  4.27391
  9  6.71031e-06
  10  12.2117
  11  2.33608
  12  3.34237e-07
  13  2.77718e-06
  14  9.10067
  15  3.75192e-06
  16  30.6346
  17  5.17467e-07
  18  116.918
  19  2.98308
  20  5.49289e-06
  21  9.9162e-07
  22  8.42644
  23  5.04916
  24  0.254883
  25  0.19194
Done.

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

Extracting fit parameters...

4FGL J0030.6-0212
   Spectrum: LogParabola
130         norm:  1.520e+01  1.221e+01  1.000e-04  1.000e+04 ( 1.000e-12)
131        alpha:  2.299e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
132         beta:  1.284e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
133           Eb:  6.004e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  7.558e-01  1.919e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.609e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 7.656 -2.201
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.91e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.62e-05

TS (Fixed Index): 2.80
Ra Dec: 7.656 -2.201
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946416/likelihoodResults_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.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) = 7133.75857104
delta logL = 2.53113002817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7133.74904596
delta logL = 2.54065510094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5591       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1593       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+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=   7133.749     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      293 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5588        10.851        .77928E-04    .16744E-02
   2  alpha         4.1600        1.2745        .13020E-01    .86905E-04
   3  Normalizat    1.4074        .25789        .29094E-03    .15513E-04
   4  Prefactor     .86365        .19889        .28666E-03   -.42753E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55876
  alpha      = 4.15995
  Normalizat = 1.40736
  Prefactor  = 0.863651
 **********
 **   18 **HESSE 
 **********

 FCN=   7133.749     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5588        6.8939        .31171E-05   -1.5236    
   2  alpha         4.1600        .85684        .52080E-03    .72613    
   3  Normalizat    1.4074        .25745        .11638E-04   -.80416    
   4  Prefactor     .86365        .19777        .11466E-04   -.97423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41508e-10
Minuit parameter uncertainties:
  1  6.89492
  2  0.890089
  3  0.257683
  4  0.197937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946416': 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) = 7133.74904352
delta logL = 2.5406575441

Extracting fit parameters...

4FGL J0030.6-0212
   Spectrum: LogParabola
130         norm:  5.559e+00  6.895e+00  1.000e-04  1.000e+04 ( 1.000e-12)
131        alpha:  4.160e+00  8.901e-01  0.000e+00  5.000e+00 ( 1.000e+00)
132         beta:  1.284e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
133           Eb:  6.004e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.637e-01  1.979e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.407e+00  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.53
Ra Dec: 7.656 -2.201
Photon Index (Free Index): 4.16 +/- 0.89
Photon Flux (Free Index): 2.29e-07 +/- 1.03e-07
Energy Flux (Free Index): 3.48e-05 +/- 1.51e-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/946416/cmap_HighResolution_653788801_654048001_4FGL_J0030.6-0212_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-05', comment='SUCCESS', photon_flux='5.91e-08', energy_flux2='3.48e-05', photon_flux_error='4.75e-08', dlogl='2.54e+00', energy_flux='2.01e-05', photon_flux2='2.29e-07', job_status='DONE', time_completed='2021-09-23 00:17:56.455217', photon_index_error2='0.89', photon_index2='4.16', ts='2.80', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.51e-05', EG='1.61', time_epoch_completed='1632381476.46', return_code='0', job_id='946416', GAL2='0.86', EG2='1.41', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='1.03e-07', ts2='8.53', photon_index='2.30' WHERE bin_id='1599' AND source_name='4FGL J0030.6-0212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:17:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 946416: <4FGL_J0030.6-0212_daily_bin1599> in cluster <slac> Done

Job <4FGL_J0030.6-0212_daily_bin1599> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 23 00:01:42 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:01:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:01:47 2021
Terminated at Thu Sep 23 00:17:57 2021
Results reported at Thu Sep 23 00:17:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0030.6-0212_daily_bin1599 7.6558 -2.2014 653788801 654048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0030.6-0212 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   831.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            975 sec.

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

