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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin270
RA = 183.001, Dec = -23.4494
tmin = 309312001, tmax = 309571201
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='403850', job_status='RUN', time_executed='2021-09-05 03:44:30.421618', time_epoch_executed='1630838670.42' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403850/ft1_4FGL_J1212.0-2326_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403850/ft1_4FGL_J1212.0-2326_daily_bin270.fits outfile=/scratch/kocevski/403850/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin270.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=309312001.0 tmax=309571201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.04
user 3.75
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.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/403850/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/403850/ltcube_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.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/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits
.....................!
real 11.65
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/403850/ltcube_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.fits outfile=/scratch/kocevski/403850/expmap_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.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/403850/ltcube_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.fits
.....................!
real 190.63
user 185.89
sys 4.35

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.fits scfile=/scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits outfile=/scratch/kocevski/403850/cmap_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.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=183.001 yref=-23.4494 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.fits scfile=/scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits outfile=/scratch/kocevski/403850/cmap_HighResolution_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.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=183.001 yref=-23.4494 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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403850/Model_4FGL_J1212.0-2326_daily_bin270.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/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.fits.....................!
real 54.11
user 52.85
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.fits', '/scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits', expMap='/scratch/kocevski/403850/expmap_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.fits', expCube='/scratch/kocevski/403850/ltcube_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/403850/Model_4FGL_J1212.0-2326_daily_bin270.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/403850/ft1_filtered_4FGL_J1212.0-2326_daily_bin270.fits
Spacecraft file(s): /scratch/kocevski/403850/ft2_4FGL_J1212.0-2326_daily_bin270.fits
Exposure map: /scratch/kocevski/403850/expmap_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.fits
Exposure cube: /scratch/kocevski/403850/ltcube_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/403850/Model_4FGL_J1212.0-2326_daily_bin270.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) = 6129.99554978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6015       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.937       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3726       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.215       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1656       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4889       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1295       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1011       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6129.954     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2351 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.974       -.37407E-05** at limit **
   2  Prefactor     1.2107        543.34       -.77709E-04    .28502E-05
   3  norm          5.8315        2.1264        .27143E-06    .53607E-03
   4  Prefactor     .10000E-03    38.824        .15659E-04** at limit **
   5  Prefactor     .10000E-03    4.2083       -.19249E-05** at limit **
   6  Prefactor     .10000E-03    12.285        .43561E-05** at limit **
   7  norm          .10000E-03    13.139       -.13505E-05** at limit **
   8  Prefactor     59.895        29.121        .26802E-04    .44516E-03
   9  norm          3.3807        6.7758       -.14780E-04   -.85488E-03
  10  Prefactor     .10000E-03    3.5028       -.37016E-06** at limit **
  11  Prefactor     .10000E-03    27.390       -.79966E-05** at limit **
  12  Prefactor     .10000E-03    59.573       -.11498E-04** at limit **
  13  Prefactor     .10000E-03    8.6231       -.91514E-07** at limit **
  14  Prefactor     .10000E-03    19.691        .31631E-05** at limit **
  15  Prefactor     .10000E-03    13.953       -.26498E-05** at limit **
  16  Prefactor     .10000E-03    2.4822        .11049E-06** at limit **
  17  Prefactor     10.215        3.3215        .90611E-07    .49949E-04
  18  Prefactor     .10000E-03    5.8498        .11617E-06** at limit **
  19  norm          1.1654        1.1152        .71075E-07   -.45749E-03
  20  Prefactor     .10000E-03    42.447       -.69526E-06** at limit **
  21  norm          .10000E-03    5.7466        .64127E-07** at limit **
  22  Prefactor     2.4896        4.7070       -.36745E-06   -.50061E-03
  23  Normalizat    1.1288        .28632       -.95755E-05    .45856E-03
  24  Prefactor     1.1015        .13943        .21103E-05    .24711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.21074
  norm       = 5.83153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.8954
  norm       = 3.38068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2149
  Prefactor  = 0.0001
  norm       = 1.16542
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.48957
  Normalizat = 1.12876
  Prefactor  = 1.10146
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.954     FROM HESSE     STATUS=OK           385 CALLS     2736 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2107        559.95        .33498E-03   -1.5488    
   3  norm          5.8315        2.1210        .66020E-04   -1.5225    
   4  Prefactor     .10000E-03    38.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.158        .30991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.895        29.277        .51824E-04   -1.4159    
   9  norm          3.3807        6.8270        .22034E-03   -1.5340    
  10  Prefactor     .10000E-03    3.5241        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.6271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4875        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.215        3.3212        .79098E-04   -1.5069    
  18  Prefactor     .10000E-03    5.8673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1654        1.0908        .77592E-04   -1.5492    
  20  Prefactor     .10000E-03    42.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.8081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4896        4.6761        .22534E-03   -1.5392    
  23  Normalizat    1.1288        .33233        .38523E-03   -.88834    
  24  Prefactor     1.1015        .16341        .19166E-03   -.89420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4022e-09
Minuit parameter uncertainties:
  1  0.000340871
  2  52.575
  3  2.12108
  4  2.40668e-05
  5  7.46721e-05
  6  3.94479e-05
  7  1.07021e-05
  8  29.2842
  9  6.82853
  10  7.23564e-05
  11  0.000212321
  12  0.000242786
  13  5.18226e-05
  14  9.74671e-05
  15  1.03154e-05
  16  5.18884e-06
  17  3.32121
  18  7.54996e-06
  19  1.09081
  20  4.22833e-05
  21  2.80662e-05
  22  4.67683
  23  0.332954
  24  0.163484
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.182e-05  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.101e+00  1.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.129e+00  3.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/403850/likelihoodResults_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.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) = 6129.95424563
delta logL = -0.000550333892534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6129.95369781
delta logL = -2.51655001193e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6129.954     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.77        .90712E-02** at limit **
   2  Index         1.8489        8.6227        .50000        .19469E-04
   3  Normalizat    1.1288        .24513E-01    .86991E-01    .34650E-04
   4  Prefactor     1.1015        .12131E-01    .37539E-01    .34195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.84888
  Normalizat = 1.12875
  Prefactor  = 1.10146
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.954     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8489        5.9051        .50000       -.68184    
   3  Normalizat    1.1288        .32243        .38523E-03   -.88834    
   4  Prefactor     1.1015        .16012        .19166E-03   -.89420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83745e-10
Minuit parameter uncertainties:
  1  0.000347796
  2  3.93385
  3  0.323
  4  0.160193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403850': 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) = 6129.95369504
delta logL = 2.57045030594e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.478e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.849e+00  3.934e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.101e+00  1.602e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.129e+00  3.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/403850/cmap_HighResolution_309312001_309571201_4FGL_J1212.0-2326_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-05 03:55:13.635867', job_id='403850', GAL2='1.10', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630839313.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='270' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:55:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 403850: <4FGL_J1212.0-2326_daily_bin270> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin270> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 03:40:49 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:40:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:40:51 2021
Terminated at Sun Sep  5 03:55:14 2021
Results reported at Sun Sep  5 03:55:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin270 183.001 -23.4494 309312001 309571201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

